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

@contentful/live-preview

Package Overview
Dependencies
Maintainers
175
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 2.15.1 to 3.0.0-alpha.1

dist/index-F691Sp0i.js

1

dist/constants.d.ts

@@ -1,3 +0,2 @@

export declare const MAX_DEPTH = 10;
export declare const LIVE_PREVIEW_EDITOR_SOURCE: "live-preview-editor";
export declare const LIVE_PREVIEW_SDK_SOURCE: "live-preview-sdk";
export * from './debug';
export * from './field';
export * from './pollUrlChanges';
export * from './utils';
export * from './uuid';
export * from './pollUrlChanges';
export * from './resolveReference';

@@ -0,3 +1,13 @@

import { DocumentNode, SelectionNode } from 'graphql';
import type { EditorMessage } from '../messages';
import { PostMessageMethods } from '../messages';
import type { EditorMessage } from '../messages';
type Params = Map<string, {
alias: Map<string, string>;
fields: Set<string>;
}>;
type Generated = {
__typename: string;
alias?: string;
name: string;
};
/**

@@ -34,5 +44,35 @@ * Sends the given message to the editor

*/
export declare function clone<T extends Record<any, any> | Array<any>>(incoming: T): T;
export declare function clone<T extends Record<string, unknown> | Array<unknown>>(incoming: T): T;
/** Detects if the current page is shown inside an iframe */
export declare function isInsideIframe(): boolean;
/**
* Takes a list of graphql fields and extract the field names and aliases for the live update processing
*/
export declare function gatherFieldInformation(selections: Readonly<SelectionNode[]>, typename: string): Generated[];
/**
* Parses the GraphQL query information and extracts the information,
* we're using for processing the live updates (requested fields, alias)
*/
export declare function parseGraphQLParams(query: DocumentNode): Params;
/**
* Generates the typename for the next node
* If it's inside a collection it will provide the typename from the collection name
*/
export declare function getTypeName(selection: {
name: {
value: string;
};
}, prevTypeName: string): string;
/**
* Extract the name of an entry from the collection (e.g. "postCollection" => "Post")
* Returns undefined if the name doesn't has the collection suffix.
*/
export declare function extractNameFromCollectionName(collection: string): string | undefined;
/**
* Generates the type name by capitalizing the first letter of the content type ID.
*
* @param {string} contentTypeId - The content type ID.
* @return {string} The generated type name.
*/
export declare function generateTypeName(contentTypeId: string): string;
export {};

@@ -0,4 +1,4 @@

import { DocumentNode } from 'graphql';
import type { ContentfulSubscribeConfig } from '..';
import { Argument, SubscribeCallback } from '../types';
import { DocumentNode } from 'graphql';
type ValidatedConfig = {

@@ -5,0 +5,0 @@ data: Argument;

@@ -1,2 +0,2 @@

import { C as t, I as o, L as E, a, b as i, P as I, V as n, e as r, o as P } from "./index-5EhyqOw8.js";
import { C as t, I as o, L as E, a, b as i, P as I, V as n, c as r, o as P } from "./index-F691Sp0i.js";
export {

@@ -3,0 +3,0 @@ t as ContentfulLivePreview,

@@ -1,2 +0,2 @@

import type { ContentfulSubscribeConfig, MessageFromEditor } from '.';
import type { ContentfulSubscribeConfig, MessageFromEditor } from './index';
/**

@@ -15,13 +15,2 @@ * LiveUpdates for the Contentful Live Preview mode

});
private mergeEntity;
/**
* Merges the `dataFromPreviewApp` together with the `updateFromEntryEditor`
* If there is not direct match, it will try to merge things together recursively
* caches the result if cache is enabled and the entity has a `sys.id`.
* Caching should not be enabled for every entry,
* because nested references could be merged differently together and this could solve to data loss.
*/
private mergeNestedReference;
private merge;
private isCfEntity;
/** Receives the data from the message event handler and calls the subscriptions */

@@ -28,0 +17,0 @@ receiveMessage(message: MessageFromEditor): Promise<void>;

@@ -6,4 +6,4 @@ import type { RequestEntitiesMessage, RequestedEntitiesMessage } from '@contentful/visual-sdk';

import type { LIVE_PREVIEW_EDITOR_SOURCE, LIVE_PREVIEW_SDK_SOURCE } from './constants';
import { type InspectorModeAttributes, type InspectorModeChangedMessage, InspectorModeEventMethods, type InspectorModeMouseMoveMessage, type InspectorModeResizeMessage, type InspectorModeScrollMessage, type InspectorModeTaggedElementsMessage } from './inspectorMode/types';
import type { ContentType, EntityReferenceMap } from './types';
import { InspectorModeEventMethods, type InspectorModeAttributes, type InspectorModeChangedMessage, type InspectorModeMouseMoveMessage, type InspectorModeResizeMessage, type InspectorModeScrollMessage, type InspectorModeTaggedElementsMessage } from './inspectorMode/types';
import type { Argument, ContentType, EntityReferenceMap } from './types';
declare enum LivePreviewPostMessageMethods {

@@ -32,3 +32,3 @@ CONNECTED = "CONNECTED",

}
export { StorePostMessageMethods, LivePreviewPostMessageMethods, RequestEntitiesMessage, RequestedEntitiesMessage, InspectorModeEventMethods, };
export { InspectorModeEventMethods, LivePreviewPostMessageMethods, RequestEntitiesMessage, RequestedEntitiesMessage, StorePostMessageMethods, };
export type PostMessageMethods = LivePreviewPostMessageMethods | StorePostMessageMethods | InspectorModeEventMethods;

@@ -69,2 +69,4 @@ export type ConnectedMessage = {

event: 'edit' | 'save';
id: string;
config: string;
};

@@ -77,3 +79,3 @@ export type ErrorMessage = {

/** Additional information that could be helpful about this error (e.g. entryId) */
payload: Record<string, any>;
payload: Record<string, unknown>;
};

@@ -93,5 +95,4 @@ export type EditorMessage = ConnectedMessage | TaggedFieldClickMessage | UnknownEntityMessage | UrlChangedMessage | SubscribedMessage | RequestEntitiesMessage | ErrorMessage | InspectorModeMouseMoveMessage | InspectorModeScrollMessage | InspectorModeResizeMessage | InspectorModeTaggedElementsMessage;

method: LivePreviewPostMessageMethods.ENTRY_UPDATED;
entity: Entry | Asset;
data: Entry | Asset;
contentType: ContentType;
entityReferenceMap: EntityReferenceMap;
};

@@ -102,3 +103,2 @@ export type EntrySavedMessage = {

contentType: ContentType;
entityReferenceMap: EntityReferenceMap;
};

@@ -118,2 +118,3 @@ /** @deprecated use RequestEntitiesMessage instead */

export type MessageFromEditor = (EntryUpdatedMessage | EntrySavedMessage | UnknownReferenceLoaded | InspectorModeChangedMessage | DebugModeEnabledMessage | RequestedEntitiesMessage) & {
data: Argument;
method: PostMessageMethods;

@@ -120,0 +121,0 @@ /** @deprecated use source instead */

@@ -1,3 +0,7 @@

import Zr, { createContext as At, useRef as mr, useMemo as $r, useEffect as jt, useState as Dt, useContext as Qr, useCallback as It } from "react";
import { c as Er, g as Ft, C as Ur, d as Lt } from "./index-5EhyqOw8.js";
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-F691Sp0i.js";
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Lt(f) {
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
}
var Mr = { exports: {} }, Me = {};

@@ -16,3 +20,3 @@ /**

return Jr || (Jr = 1, process.env.NODE_ENV !== "production" && function() {
var d = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), j = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), ie = Symbol.for("react.offscreen"), Ue = Symbol.iterator, de = "@@iterator";
var f = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), U = Symbol.for("react.provider"), j = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), ie = Symbol.for("react.offscreen"), Ue = Symbol.iterator, de = "@@iterator";
function Ne(r) {

@@ -24,7 +28,7 @@ if (r === null || typeof r != "object")

}
var X = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var X = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function E(r) {
{
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
i[s - 1] = arguments[s];
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), u = 1; u < a; u++)
i[u - 1] = arguments[u];
We("error", r, i);

@@ -35,14 +39,14 @@ }

{
var s = X.ReactDebugCurrentFrame, p = s.getStackAddendum();
var u = X.ReactDebugCurrentFrame, p = u.getStackAddendum();
p !== "" && (a += "%s", i = i.concat([p]));
var l = i.map(function(c) {
return String(c);
var c = i.map(function(d) {
return String(d);
});
l.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, l);
c.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, c);
}
}
var Rr = !1, Ye = !1, pe = !1, ze = !1, wr = !1, Be;
var wr = !1, Ye = !1, pe = !1, ze = !1, Rr = !1, Be;
Be = Symbol.for("react.module.reference");
function we(r) {
return !!(typeof r == "string" || typeof r == "function" || r === x || r === I || wr || r === A || r === Y || r === w || ze || r === ie || Rr || Ye || pe || typeof r == "object" && r !== null && (r.$$typeof === H || r.$$typeof === F || r.$$typeof === U || r.$$typeof === j || r.$$typeof === _ || // This needs to include all possible module reference object
function Re(r) {
return !!(typeof r == "string" || typeof r == "function" || r === A || r === I || Rr || r === x || r === Y || r === R || ze || r === ie || wr || Ye || pe || typeof r == "object" && r !== null && (r.$$typeof === H || r.$$typeof === F || r.$$typeof === U || r.$$typeof === j || r.$$typeof === _ || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -54,5 +58,5 @@ // we don't know which Flight build this will end up being used

function Ge(r, a, i) {
var s = r.displayName;
if (s)
return s;
var u = r.displayName;
if (u)
return u;
var p = a.displayName || a.name || "";

@@ -72,3 +76,3 @@ return p !== "" ? i + "(" + p + ")" : i;

switch (r) {
case x:
case A:
return "Fragment";

@@ -79,7 +83,7 @@ case P:

return "Profiler";
case A:
case x:
return "StrictMode";
case Y:
return "Suspense";
case w:
case R:
return "SuspenseList";

@@ -98,8 +102,8 @@ }

case F:
var s = r.displayName || null;
return s !== null ? s : z(r.type) || "Memo";
var u = r.displayName || null;
return u !== null ? u : z(r.type) || "Memo";
case H: {
var p = r, l = p._payload, c = p._init;
var p = r, c = p._payload, d = p._init;
try {
return z(c(l));
return z(d(c));
} catch {

@@ -112,3 +116,3 @@ return null;

}
var k = Object.assign, se = 0, qe, He, Ke, ke, Ve, Je, Xe;
var k = Object.assign, ue = 0, qe, He, Ke, ke, Ve, Je, Xe;
function Ze() {

@@ -119,3 +123,3 @@ }

{
if (se === 0) {
if (ue === 0) {
qe = console.log, He = console.info, Ke = console.warn, ke = console.error, Ve = console.group, Je = console.groupCollapsed, Xe = console.groupEnd;

@@ -138,3 +142,3 @@ var r = {

}
se++;
ue++;
}

@@ -144,3 +148,3 @@ }

{
if (se--, se === 0) {
if (ue--, ue === 0) {
var r = {

@@ -175,3 +179,3 @@ configurable: !0,

}
se < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
ue < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}

@@ -186,4 +190,4 @@ }

} catch (p) {
var s = p.stack.trim().match(/\n( *(at )?)/);
Ce = s && s[1] || "";
var u = p.stack.trim().match(/\n( *(at )?)/);
Ce = u && u[1] || "";
}

@@ -194,6 +198,6 @@ return `

}
var ge = !1, ue;
var ge = !1, se;
{
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
ue = new Qe();
se = new Qe();
}

@@ -204,18 +208,18 @@ function _e(r, a) {

{
var i = ue.get(r);
var i = se.get(r);
if (i !== void 0)
return i;
}
var s;
var u;
ge = !0;
var p = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var l;
l = ve.current, ve.current = null, Cr();
var c;
c = ve.current, ve.current = null, Cr();
try {
if (a) {
var c = function() {
var d = function() {
throw Error();
};
if (Object.defineProperty(c.prototype, "props", {
if (Object.defineProperty(d.prototype, "props", {
set: function() {

@@ -226,14 +230,14 @@ throw Error();

try {
Reflect.construct(c, []);
Reflect.construct(d, []);
} catch (G) {
s = G;
u = G;
}
Reflect.construct(r, [], c);
Reflect.construct(r, [], d);
} else {
try {
c.call();
d.call();
} catch (G) {
s = G;
u = G;
}
r.call(c.prototype);
r.call(d.prototype);
}

@@ -244,3 +248,3 @@ } else {

} catch (G) {
s = G;
u = G;
}

@@ -250,15 +254,15 @@ r();

} catch (G) {
if (G && s && typeof G.stack == "string") {
for (var f = G.stack.split(`
`), S = s.stack.split(`
`), y = f.length - 1, m = S.length - 1; y >= 1 && m >= 0 && f[y] !== S[m]; )
if (G && u && typeof G.stack == "string") {
for (var l = G.stack.split(`
`), S = u.stack.split(`
`), y = l.length - 1, m = S.length - 1; y >= 1 && m >= 0 && l[y] !== S[m]; )
m--;
for (; y >= 1 && m >= 0; y--, m--)
if (f[y] !== S[m]) {
if (l[y] !== S[m]) {
if (y !== 1 || m !== 1)
do
if (y--, m--, m < 0 || f[y] !== S[m]) {
var R = `
` + f[y].replace(" at new ", " at ");
return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && ue.set(r, R), R;
if (y--, m--, m < 0 || l[y] !== S[m]) {
var w = `
` + l[y].replace(" at new ", " at ");
return r.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", r.displayName)), typeof r == "function" && se.set(r, w), w;
}

@@ -270,6 +274,6 @@ while (y >= 1 && m >= 0);

} finally {
ge = !1, ve.current = l, g(), Error.prepareStackTrace = p;
ge = !1, ve.current = c, g(), Error.prepareStackTrace = p;
}
var re = r ? r.displayName || r.name : "", pr = re ? L(re) : "";
return typeof r == "function" && ue.set(r, pr), pr;
return typeof r == "function" && se.set(r, pr), pr;
}

@@ -293,3 +297,3 @@ function er(r, a, i) {

return L("Suspense");
case w:
case R:
return L("SuspenseList");

@@ -304,5 +308,5 @@ }

case H: {
var s = r, p = s._payload, l = s._init;
var u = r, p = u._payload, c = u._init;
try {
return he(l(p), a, i);
return he(c(p), a, i);
} catch {

@@ -322,18 +326,18 @@ }

}
function Sr(r, a, i, s, p) {
function Sr(r, a, i, u, p) {
{
var l = Function.call.bind(ye);
for (var c in r)
if (l(r, c)) {
var f = void 0;
var c = Function.call.bind(ye);
for (var d in r)
if (c(r, d)) {
var l = void 0;
try {
if (typeof r[c] != "function") {
var S = Error((s || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
if (typeof r[d] != "function") {
var S = Error((u || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw S.name = "Invariant Violation", S;
}
f = r[c](a, c, s, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
l = r[d](a, d, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (y) {
f = y;
l = y;
}
f && !(f instanceof Error) && (be(p), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", i, c, typeof f), be(null)), f instanceof Error && !(f.message in tr) && (tr[f.message] = !0, be(p), E("Failed %s type: %s", i, f.message), be(null));
l && !(l instanceof Error) && (be(p), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, d, typeof l), be(null)), l instanceof Error && !(l.message in tr) && (tr[l.message] = !0, be(p), E("Failed %s type: %s", i, l.message), be(null));
}

@@ -352,3 +356,3 @@ }

}
function xr(r) {
function Ar(r) {
try {

@@ -364,3 +368,3 @@ return ar(r), !1;

function ir(r) {
if (xr(r))
if (Ar(r))
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pr(r)), ar(r);

@@ -383,3 +387,3 @@ }

}
function Ar(r) {
function xr(r) {
if (ye.call(r, "key")) {

@@ -392,3 +396,3 @@ var a = Object.getOwnPropertyDescriptor(r, "key").get;

}
function sr(r, a) {
function ur(r, a) {
if (typeof r.ref == "string" && K.current && a && K.current.stateNode !== a) {

@@ -410,3 +414,3 @@ var i = z(K.current.type);

}
function ur(r, a) {
function sr(r, a) {
{

@@ -422,4 +426,4 @@ var i = function() {

}
var fr = function(r, a, i, s, p, l, c) {
var f = {
var fr = function(r, a, i, u, p, c, d) {
var l = {
// This tag allows us to uniquely identify this as a React Element

@@ -431,7 +435,7 @@ $$typeof: v,

ref: i,
props: c,
props: d,
// Record the component responsible for creating this element.
_owner: l
_owner: c
};
return f._store = {}, Object.defineProperty(f._store, "validated", {
return l._store = {}, Object.defineProperty(l._store, "validated", {
configurable: !1,

@@ -441,8 +445,8 @@ enumerable: !1,

value: !1
}), Object.defineProperty(f, "_self", {
}), Object.defineProperty(l, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: s
}), Object.defineProperty(f, "_source", {
value: u
}), Object.defineProperty(l, "_source", {
configurable: !1,

@@ -452,32 +456,32 @@ enumerable: !1,

value: p
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
};
function jr(r, a, i, s, p) {
function jr(r, a, i, u, p) {
{
var l, c = {}, f = null, S = null;
i !== void 0 && (ir(i), f = "" + i), Ar(a) && (ir(a.key), f = "" + a.key), or(a) && (S = a.ref, sr(a, p));
for (l in a)
ye.call(a, l) && !Oe.hasOwnProperty(l) && (c[l] = a[l]);
var c, d = {}, l = null, S = null;
i !== void 0 && (ir(i), l = "" + i), xr(a) && (ir(a.key), l = "" + a.key), or(a) && (S = a.ref, ur(a, p));
for (c in a)
ye.call(a, c) && !Oe.hasOwnProperty(c) && (d[c] = a[c]);
if (r && r.defaultProps) {
var y = r.defaultProps;
for (l in y)
c[l] === void 0 && (c[l] = y[l]);
for (c in y)
d[c] === void 0 && (d[c] = y[c]);
}
if (f || S) {
if (l || S) {
var m = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
f && me(c, m), S && ur(c, m);
l && me(d, m), S && sr(d, m);
}
return fr(r, f, S, p, s, K.current, c);
return fr(r, l, S, p, u, K.current, d);
}
}
var B = X.ReactCurrentOwner, xe = X.ReactDebugCurrentFrame;
var B = X.ReactCurrentOwner, Ae = X.ReactDebugCurrentFrame;
function Z(r) {
if (r) {
var a = r._owner, i = he(r.type, r._source, a ? a.type : null);
xe.setExtraStackFrame(i);
Ae.setExtraStackFrame(i);
} else
xe.setExtraStackFrame(null);
Ae.setExtraStackFrame(null);
}
var Ae;
Ae = !1;
var xe;
xe = !1;
function fe(r) {

@@ -531,4 +535,4 @@ return typeof r == "object" && r !== null && r.$$typeof === v;

Te[i] = !0;
var s = "";
r && r._owner && r._owner !== B.current && (s = " It was passed a child from " + z(r._owner.type) + "."), Z(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, s), Z(null);
var u = "";
r && r._owner && r._owner !== B.current && (u = " It was passed a child from " + z(r._owner.type) + "."), Z(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), Z(null);
}

@@ -542,4 +546,4 @@ }

for (var i = 0; i < r.length; i++) {
var s = r[i];
fe(s) && ee(s, a);
var u = r[i];
fe(u) && ee(u, a);
}

@@ -551,4 +555,4 @@ else if (fe(r))

if (typeof p == "function" && p !== r.entries)
for (var l = p.call(r), c; !(c = l.next()).done; )
fe(c.value) && ee(c.value, a);
for (var c = p.call(r), d; !(d = c.next()).done; )
fe(d.value) && ee(d.value, a);
}

@@ -572,6 +576,6 @@ }

if (i) {
var s = z(a);
Sr(i, r.props, "prop", s, r);
} else if (a.PropTypes !== void 0 && !Ae) {
Ae = !0;
var u = z(a);
Sr(i, r.props, "prop", u, r);
} else if (a.PropTypes !== void 0 && !xe) {
xe = !0;
var p = z(a);

@@ -586,5 +590,5 @@ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");

for (var a = Object.keys(r.props), i = 0; i < a.length; i++) {
var s = a[i];
if (s !== "children" && s !== "key") {
Z(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), Z(null);
var u = a[i];
if (u !== "children" && u !== "key") {
Z(r), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Z(null);
break;

@@ -596,30 +600,30 @@ }

}
function cr(r, a, i, s, p, l) {
function cr(r, a, i, u, p, c) {
{
var c = we(r);
if (!c) {
var f = "";
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var d = Re(r);
if (!d) {
var l = "";
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var S = je(p);
S ? f += S : f += Q();
S ? l += S : l += Q();
var y;
r === null ? y = "null" : Se(r) ? y = "array" : r !== void 0 && r.$$typeof === v ? (y = "<" + (z(r.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : y = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, f);
r === null ? y = "null" : Se(r) ? y = "array" : r !== void 0 && r.$$typeof === v ? (y = "<" + (z(r.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, l);
}
var m = jr(r, a, i, p, l);
var m = jr(r, a, i, p, c);
if (m == null)
return m;
if (c) {
var R = a.children;
if (R !== void 0)
if (s)
if (Se(R)) {
for (var re = 0; re < R.length; re++)
lr(R[re], r);
Object.freeze && Object.freeze(R);
if (d) {
var w = a.children;
if (w !== void 0)
if (u)
if (Se(w)) {
for (var re = 0; re < w.length; re++)
lr(w[re], r);
Object.freeze && Object.freeze(w);
} else
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
lr(R, r);
lr(w, r);
}
return r === x ? Ir(m) : Dr(m), m;
return r === A ? Ir(m) : Dr(m), m;
}

@@ -634,3 +638,3 @@ }

var Ie = dr, V = Fr;
Me.Fragment = x, Me.jsx = Ie, Me.jsxs = V;
Me.Fragment = A, Me.jsx = Ie, Me.jsxs = V;
}()), Me;

@@ -653,12 +657,12 @@ }

Xr = 1;
var d = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, A = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
var f = Zr, v = Symbol.for("react.element"), P = Symbol.for("react.fragment"), A = Object.prototype.hasOwnProperty, x = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
function U(j, _, Y) {
var w, F = {}, H = null, ie = null;
var R, F = {}, H = null, ie = null;
Y !== void 0 && (H = "" + Y), _.key !== void 0 && (H = "" + _.key), _.ref !== void 0 && (ie = _.ref);
for (w in _)
x.call(_, w) && !I.hasOwnProperty(w) && (F[w] = _[w]);
for (R in _)
A.call(_, R) && !I.hasOwnProperty(R) && (F[R] = _[R]);
if (j && j.defaultProps)
for (w in _ = j.defaultProps, _)
F[w] === void 0 && (F[w] = _[w]);
return { $$typeof: v, type: j, key: H, ref: ie, props: F, _owner: A.current };
for (R in _ = j.defaultProps, _)
F[R] === void 0 && (F[R] = _[R]);
return { $$typeof: v, type: j, key: H, ref: ie, props: F, _owner: x.current };
}

@@ -670,6 +674,6 @@ return $e.Fragment = P, $e.jsx = U, $e.jsxs = U, $e;

Tr.exports;
(function(d, v) {
var P = 200, x = "__lodash_hash_undefined__", A = 1, I = 2, U = 9007199254740991, j = "[object Arguments]", _ = "[object Array]", Y = "[object AsyncFunction]", w = "[object Boolean]", F = "[object Date]", H = "[object Error]", ie = "[object Function]", Ue = "[object GeneratorFunction]", de = "[object Map]", Ne = "[object Number]", X = "[object Null]", E = "[object Object]", We = "[object Promise]", Rr = "[object Proxy]", Ye = "[object RegExp]", pe = "[object Set]", ze = "[object String]", wr = "[object Symbol]", Be = "[object Undefined]", we = "[object WeakMap]", Ge = "[object ArrayBuffer]", oe = "[object DataView]", z = "[object Float32Array]", k = "[object Float64Array]", se = "[object Int8Array]", qe = "[object Int16Array]", He = "[object Int32Array]", Ke = "[object Uint8Array]", ke = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", Je = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Cr = /^(?:0|[1-9]\d*)$/, g = {};
g[z] = g[k] = g[se] = g[qe] = g[He] = g[Ke] = g[ke] = g[Ve] = g[Je] = !0, g[j] = g[_] = g[Ge] = g[w] = g[oe] = g[F] = g[H] = g[ie] = g[de] = g[Ne] = g[E] = g[Ye] = g[pe] = g[ze] = g[we] = !1;
var ve = typeof Er == "object" && Er && Er.Object === Object && Er, Ce = typeof self == "object" && self && self.Object === Object && self, L = ve || Ce || Function("return this")(), ge = v && !v.nodeType && v, ue = ge && !0 && d && !d.nodeType && d, Qe = ue && ue.exports === ge, _e = Qe && ve.process, er = function() {
(function(f, v) {
var P = 200, A = "__lodash_hash_undefined__", x = 1, I = 2, U = 9007199254740991, j = "[object Arguments]", _ = "[object Array]", Y = "[object AsyncFunction]", R = "[object Boolean]", F = "[object Date]", H = "[object Error]", ie = "[object Function]", Ue = "[object GeneratorFunction]", de = "[object Map]", Ne = "[object Number]", X = "[object Null]", E = "[object Object]", We = "[object Promise]", wr = "[object Proxy]", Ye = "[object RegExp]", pe = "[object Set]", ze = "[object String]", Rr = "[object Symbol]", Be = "[object Undefined]", Re = "[object WeakMap]", Ge = "[object ArrayBuffer]", oe = "[object DataView]", z = "[object Float32Array]", k = "[object Float64Array]", ue = "[object Int8Array]", qe = "[object Int16Array]", He = "[object Int32Array]", Ke = "[object Uint8Array]", ke = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", Je = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, Ze = /^\[object .+?Constructor\]$/, Cr = /^(?:0|[1-9]\d*)$/, g = {};
g[z] = g[k] = g[ue] = g[qe] = g[He] = g[Ke] = g[ke] = g[Ve] = g[Je] = !0, g[j] = g[_] = g[Ge] = g[R] = g[oe] = g[F] = g[H] = g[ie] = g[de] = g[Ne] = g[E] = g[Ye] = g[pe] = g[ze] = g[Re] = !1;
var ve = typeof Er == "object" && Er && Er.Object === Object && Er, Ce = typeof self == "object" && self && self.Object === Object && self, L = ve || Ce || Function("return this")(), ge = v && !v.nodeType && v, se = ge && !0 && f && !f.nodeType && f, Qe = se && se.exports === ge, _e = Qe && ve.process, er = function() {
try {

@@ -681,7 +685,7 @@ return _e && _e.binding && _e.binding("util");

function he(e, t) {
for (var n = -1, o = e == null ? 0 : e.length, h = 0, u = []; ++n < o; ) {
for (var n = -1, o = e == null ? 0 : e.length, h = 0, s = []; ++n < o; ) {
var T = e[n];
t(T, n, e) && (u[h++] = T);
t(T, n, e) && (s[h++] = T);
}
return u;
return s;
}

@@ -726,3 +730,3 @@ function ye(e, t) {

}
function xr(e) {
function Ar(e) {
var t = -1, n = Array(e.size);

@@ -736,5 +740,5 @@ return e.forEach(function(o) {

return e ? "Symbol(src)_1." + e : "";
}(), or = K.toString, Ar = RegExp(
}(), or = K.toString, xr = RegExp(
"^" + Pe.call(M).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
), sr = Qe ? L.Buffer : void 0, me = L.Symbol, ur = L.Uint8Array, fr = K.propertyIsEnumerable, jr = ar.splice, B = me ? me.toStringTag : void 0, xe = Object.getOwnPropertySymbols, Z = sr ? sr.isBuffer : void 0, Ae = Pr(Object.keys, Object), fe = Re(L, "DataView"), Q = Re(L, "Map"), je = Re(L, "Promise"), Te = Re(L, "Set"), De = Re(L, "WeakMap"), ee = Re(Object, "create"), lr = le(fe), Dr = le(Q), Ir = le(je), cr = le(Te), Fr = le(De), dr = me ? me.prototype : void 0, Ie = dr ? dr.valueOf : void 0;
), ur = Qe ? L.Buffer : void 0, me = L.Symbol, sr = L.Uint8Array, fr = K.propertyIsEnumerable, jr = ar.splice, B = me ? me.toStringTag : void 0, Ae = Object.getOwnPropertySymbols, Z = ur ? ur.isBuffer : void 0, xe = Pr(Object.keys, Object), fe = we(L, "DataView"), Q = we(L, "Map"), je = we(L, "Promise"), Te = we(L, "Set"), De = we(L, "WeakMap"), ee = we(Object, "create"), lr = le(fe), Dr = le(Q), Ir = le(je), cr = le(Te), Fr = le(De), dr = me ? me.prototype : void 0, Ie = dr ? dr.valueOf : void 0;
function V(e) {

@@ -758,7 +762,7 @@ var t = -1, n = e == null ? 0 : e.length;

var n = t[e];
return n === x ? void 0 : n;
return n === A ? void 0 : n;
}
return M.call(t, e) ? t[e] : void 0;
}
function s(e) {
function u(e) {
var t = this.__data__;

@@ -769,6 +773,6 @@ return ee ? t[e] !== void 0 : M.call(t, e);

var n = this.__data__;
return this.size += this.has(e) ? 0 : 1, n[e] = ee && t === void 0 ? x : t, this;
return this.size += this.has(e) ? 0 : 1, n[e] = ee && t === void 0 ? A : t, this;
}
V.prototype.clear = r, V.prototype.delete = a, V.prototype.get = i, V.prototype.has = s, V.prototype.set = p;
function l(e) {
V.prototype.clear = r, V.prototype.delete = a, V.prototype.get = i, V.prototype.has = u, V.prototype.set = p;
function c(e) {
var t = -1, n = e == null ? 0 : e.length;

@@ -780,6 +784,6 @@ for (this.clear(); ++t < n; ) {

}
function c() {
function d() {
this.__data__ = [], this.size = 0;
}
function f(e) {
function l(e) {
var t = this.__data__, n = gr(t, e);

@@ -802,4 +806,4 @@ if (n < 0)

}
l.prototype.clear = c, l.prototype.delete = f, l.prototype.get = S, l.prototype.has = y, l.prototype.set = m;
function R(e) {
c.prototype.clear = d, c.prototype.delete = l, c.prototype.get = S, c.prototype.has = y, c.prototype.set = m;
function w(e) {
var t = -1, n = e == null ? 0 : e.length;

@@ -814,3 +818,3 @@ for (this.clear(); ++t < n; ) {

hash: new V(),
map: new (Q || l)(),
map: new (Q || c)(),
string: new V()

@@ -833,10 +837,10 @@ };

}
R.prototype.clear = re, R.prototype.delete = pr, R.prototype.get = G, R.prototype.has = et, R.prototype.set = rt;
w.prototype.clear = re, w.prototype.delete = pr, w.prototype.get = G, w.prototype.has = et, w.prototype.set = rt;
function vr(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.__data__ = new R(); ++t < n; )
for (this.__data__ = new w(); ++t < n; )
this.add(e[t]);
}
function tt(e) {
return this.__data__.set(e, x), this;
return this.__data__.set(e, A), this;
}

@@ -848,7 +852,7 @@ function nt(e) {

function te(e) {
var t = this.__data__ = new l(e);
var t = this.__data__ = new c(e);
this.size = t.size;
}
function at() {
this.__data__ = new l(), this.size = 0;
this.__data__ = new c(), this.size = 0;
}

@@ -862,18 +866,18 @@ function it(e) {

}
function st(e) {
function ut(e) {
return this.__data__.has(e);
}
function ut(e, t) {
function st(e, t) {
var n = this.__data__;
if (n instanceof l) {
if (n instanceof c) {
var o = n.__data__;
if (!Q || o.length < P - 1)
return o.push([e, t]), this.size = ++n.size, this;
n = this.__data__ = new R(o);
n = this.__data__ = new w(o);
}
return n.set(e, t), this.size = n.size, this;
}
te.prototype.clear = at, te.prototype.delete = it, te.prototype.get = ot, te.prototype.has = st, te.prototype.set = ut;
te.prototype.clear = at, te.prototype.delete = it, te.prototype.get = ot, te.prototype.has = ut, te.prototype.set = st;
function ft(e, t) {
var n = hr(e), o = !n && wt(e), h = !n && !o && Lr(e), u = !n && !o && !h && kr(e), T = n || o || h || u, C = T ? nr(e.length, String) : [], O = C.length;
var n = hr(e), o = !n && Rt(e), h = !n && !o && Lr(e), s = !n && !o && !h && kr(e), T = n || o || h || s, C = T ? nr(e.length, String) : [], O = C.length;
for (var b in e)

@@ -883,3 +887,3 @@ (t || M.call(e, b)) && !(T && // Safari 9 has enumerable `arguments.length` in strict mode.

h && (b == "offset" || b == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
u && (b == "buffer" || b == "byteLength" || b == "byteOffset") || // Skip index properties.
s && (b == "buffer" || b == "byteLength" || b == "byteOffset") || // Skip index properties.
bt(b, O))) && C.push(b);

@@ -899,3 +903,3 @@ return C;

function Fe(e) {
return e == null ? e === void 0 ? Be : X : B && B in Object(e) ? ht(e) : Rt(e);
return e == null ? e === void 0 ? Be : X : B && B in Object(e) ? ht(e) : wt(e);
}

@@ -908,3 +912,3 @@ function Wr(e) {

}
function ct(e, t, n, o, h, u) {
function ct(e, t, n, o, h, s) {
var T = hr(e), C = hr(t), O = T ? _ : ne(e), b = C ? _ : ne(t);

@@ -919,11 +923,11 @@ O = O == j ? E : O, b = b == j ? E : b;

if (D && !$)
return u || (u = new te()), T || kr(e) ? zr(e, t, n, o, h, u) : gt(e, t, O, n, o, h, u);
if (!(n & A)) {
return s || (s = new te()), T || kr(e) ? zr(e, t, n, o, h, s) : gt(e, t, O, n, o, h, s);
if (!(n & x)) {
var N = $ && M.call(e, "__wrapped__"), W = q && M.call(t, "__wrapped__");
if (N || W) {
var ae = N ? e.value() : e, J = W ? t.value() : t;
return u || (u = new te()), h(ae, J, n, o, u);
return s || (s = new te()), h(ae, J, n, o, s);
}
}
return D ? (u || (u = new te()), _t(e, t, n, o, h, u)) : !1;
return D ? (s || (s = new te()), _t(e, t, n, o, h, s)) : !1;
}

@@ -933,3 +937,3 @@ function dt(e) {

return !1;
var t = qr(e) ? Ar : Ze;
var t = qr(e) ? xr : Ze;
return t.test(le(e));

@@ -942,3 +946,3 @@ }

if (!Tt(e))
return Ae(e);
return xe(e);
var t = [];

@@ -949,14 +953,14 @@ for (var n in Object(e))

}
function zr(e, t, n, o, h, u) {
var T = n & A, C = e.length, O = t.length;
function zr(e, t, n, o, h, s) {
var T = n & x, C = e.length, O = t.length;
if (C != O && !(T && O > C))
return !1;
var b = u.get(e);
if (b && u.get(t))
var b = s.get(e);
if (b && s.get(t))
return b == t;
var $ = -1, q = !0, D = n & I ? new vr() : void 0;
for (u.set(e, t), u.set(t, e); ++$ < C; ) {
for (s.set(e, t), s.set(t, e); ++$ < C; ) {
var N = e[$], W = t[$];
if (o)
var ae = T ? o(W, N, $, t, e, u) : o(N, W, $, e, t, u);
var ae = T ? o(W, N, $, t, e, s) : o(N, W, $, e, t, s);
if (ae !== void 0) {

@@ -970,3 +974,3 @@ if (ae)

if (!tr(t, function(J, ce) {
if (!Sr(D, ce) && (N === J || h(N, J, n, o, u)))
if (!Sr(D, ce) && (N === J || h(N, J, n, o, s)))
return D.push(ce);

@@ -977,3 +981,3 @@ })) {

}
} else if (!(N === W || h(N, W, n, o, u))) {
} else if (!(N === W || h(N, W, n, o, s))) {
q = !1;

@@ -983,5 +987,5 @@ break;

}
return u.delete(e), u.delete(t), q;
return s.delete(e), s.delete(t), q;
}
function gt(e, t, n, o, h, u, T) {
function gt(e, t, n, o, h, s, T) {
switch (n) {

@@ -993,4 +997,4 @@ case oe:

case Ge:
return !(e.byteLength != t.byteLength || !u(new ur(e), new ur(t)));
case w:
return !(e.byteLength != t.byteLength || !s(new sr(e), new sr(t)));
case R:
case F:

@@ -1007,4 +1011,4 @@ case Ne:

case pe:
var O = o & A;
if (C || (C = xr), e.size != t.size && !O)
var O = o & x;
if (C || (C = Ar), e.size != t.size && !O)
return !1;

@@ -1015,5 +1019,5 @@ var b = T.get(e);

o |= I, T.set(e, t);
var $ = zr(C(e), C(t), o, h, u, T);
var $ = zr(C(e), C(t), o, h, s, T);
return T.delete(e), $;
case wr:
case Rr:
if (Ie)

@@ -1024,4 +1028,4 @@ return Ie.call(e) == Ie.call(t);

}
function _t(e, t, n, o, h, u) {
var T = n & A, C = Br(e), O = C.length, b = Br(t), $ = b.length;
function _t(e, t, n, o, h, s) {
var T = n & x, C = Br(e), O = C.length, b = Br(t), $ = b.length;
if (O != $ && !T)

@@ -1034,7 +1038,7 @@ return !1;

}
var N = u.get(e);
if (N && u.get(t))
var N = s.get(e);
if (N && s.get(t))
return N == t;
var W = !0;
u.set(e, t), u.set(t, e);
s.set(e, t), s.set(t, e);
for (var ae = T; ++q < O; ) {

@@ -1044,4 +1048,4 @@ D = C[q];

if (o)
var Vr = T ? o(ce, J, D, t, e, u) : o(J, ce, D, e, t, u);
if (!(Vr === void 0 ? J === ce || h(J, ce, n, o, u) : Vr)) {
var Vr = T ? o(ce, J, D, t, e, s) : o(J, ce, D, e, t, s);
if (!(Vr === void 0 ? J === ce || h(J, ce, n, o, s) : Vr)) {
W = !1;

@@ -1056,3 +1060,3 @@ break;

}
return u.delete(e), u.delete(t), W;
return s.delete(e), s.delete(t), W;
}

@@ -1066,3 +1070,3 @@ function Br(e) {

}
function Re(e, t) {
function we(e, t) {
var n = Or(e, t);

@@ -1081,8 +1085,8 @@ return dt(n) ? n : void 0;

}
var yt = xe ? function(e) {
return e == null ? [] : (e = Object(e), he(xe(e), function(t) {
var yt = Ae ? function(e) {
return e == null ? [] : (e = Object(e), he(Ae(e), function(t) {
return fr.call(e, t);
}));
} : Pt, ne = Fe;
(fe && ne(new fe(new ArrayBuffer(1))) != oe || Q && ne(new Q()) != de || je && ne(je.resolve()) != We || Te && ne(new Te()) != pe || De && ne(new De()) != we) && (ne = function(e) {
(fe && ne(new fe(new ArrayBuffer(1))) != oe || Q && ne(new Q()) != de || je && ne(je.resolve()) != We || Te && ne(new Te()) != pe || De && ne(new De()) != Re) && (ne = function(e) {
var t = Fe(e), n = t == E ? e.constructor : void 0, o = n ? le(n) : "";

@@ -1100,3 +1104,3 @@ if (o)

case Fr:
return we;
return Re;
}

@@ -1119,3 +1123,3 @@ return t;

}
function Rt(e) {
function wt(e) {
return or.call(e);

@@ -1139,3 +1143,3 @@ }

}
var wt = Wr(/* @__PURE__ */ function() {
var Rt = Wr(/* @__PURE__ */ function() {
return arguments;

@@ -1148,3 +1152,3 @@ }()) ? Wr : function(e) {

}
var Lr = Z || xt;
var Lr = Z || At;
function St(e, t) {

@@ -1157,3 +1161,3 @@ return Yr(e, t);

var t = Fe(e);
return t == ie || t == Ue || t == Y || t == Rr;
return t == ie || t == Ue || t == Y || t == wr;
}

@@ -1177,23 +1181,23 @@ function Hr(e) {

}
function xt() {
function At() {
return !1;
}
d.exports = St;
f.exports = St;
})(Tr, Tr.exports);
var Nt = Tr.exports;
const Wt = /* @__PURE__ */ Ft(Nt);
function Yt(d) {
const v = mr(d), P = mr(0);
return Wt(d, v.current) || (v.current = d, P.current += 1), $r(() => v.current, [P.current]);
const Wt = /* @__PURE__ */ Lt(Nt);
function Yt(f) {
const v = mr(f), P = mr(0);
return Wt(f, v.current) || (v.current = f, P.current += 1), $r(() => v.current, [P.current]);
}
function zt(d, v) {
return jt(d, Yt(v));
function zt(f, v) {
return jt(f, Yt(v));
}
const Nr = At(null);
const Nr = xt(null);
function qt({
children: d,
children: f,
locale: v,
debugMode: P = !1,
enableInspectorMode: x = !0,
enableLiveUpdates: A = !0,
enableInspectorMode: A = !0,
enableLiveUpdates: x = !0,
targetOrigin: I

@@ -1208,31 +1212,31 @@ }) {

debugMode: P,
enableInspectorMode: x,
enableLiveUpdates: A,
enableInspectorMode: A,
enableLiveUpdates: x,
targetOrigin: I
});
const U = $r(
() => ({ locale: v, debugMode: P, enableInspectorMode: x, enableLiveUpdates: A, targetOrigin: I }),
[v, P, x, A, I]
() => ({ locale: v, debugMode: P, enableInspectorMode: A, enableLiveUpdates: x, targetOrigin: I }),
[v, P, A, x, I]
);
return /* @__PURE__ */ Ut.jsx(Nr.Provider, { value: U, children: d });
return /* @__PURE__ */ Ut.jsx(Nr.Provider, { value: U, children: f });
}
function Ht(d, v, P = !1) {
const [x, A] = Dt({ data: d, version: 1 }), I = mr(d), U = mr(Lt(A)), j = Qr(Nr), _ = typeof v == "object" ? v : { locale: v, skip: P }, Y = $r(() => j && !j.enableLiveUpdates || _.skip ? !1 : !!(Array.isArray(d) && d.length || d && typeof d == "object" && Object.keys(d).length), [j, _.skip, d]);
function Ht(f, v, P = !1) {
const [A, x] = Dt({ data: f, version: 1 }), I = mr(f), U = mr(Ft(x)), j = Qr(Nr), _ = typeof v == "object" ? v : { locale: v, skip: P }, Y = $r(() => j && !j.enableLiveUpdates || _.skip ? !1 : !!(Array.isArray(f) && f.length || f && typeof f == "object" && Object.keys(f).length), [j, _.skip, f]);
return zt(() => {
if (I.current !== d && (A({ data: d, version: 1 }), I.current = d), !!Y)
if (I.current !== f && (x({ data: f, version: 1 }), I.current = f), !!Y)
return Ur.subscribe("edit", {
data: d,
data: f,
locale: _.locale,
query: _.query,
callback: (w) => {
U.current((F) => ({ data: w, version: F.version + 1 }));
callback: (R) => {
U.current((F) => ({ data: R, version: F.version + 1 }));
}
});
}, [d, Y, _.locale, _.query]), x.data;
}, [f, Y, _.locale, _.query]), A.data;
}
function Kt(d) {
function Kt(f) {
const v = Qr(Nr);
return It(
(P) => v != null && v.enableInspectorMode ? Ur.getProps({ ...d, ...P }) : null,
[v == null ? void 0 : v.enableInspectorMode, d]
(P) => v != null && v.enableInspectorMode ? Ur.getProps({ ...f, ...P }) : null,
[v == null ? void 0 : v.enableInspectorMode, f]
);

@@ -1239,0 +1243,0 @@ }

@@ -1,2 +0,2 @@

import { MessageFromEditor } from './messages';
import { EntrySavedMessage, MessageFromEditor } from './messages';
import { SubscribeCallback } from './types';

@@ -10,3 +10,3 @@ export declare class SaveEvent {

subscribe(cb: SubscribeCallback): VoidFunction;
receiveMessage(message: Omit<MessageFromEditor, 'from' | 'source'>): void;
receiveMessage(message: Omit<MessageFromEditor, 'from' | 'source'> | EntrySavedMessage): void;
}
import type { Asset, Entry } from 'contentful';
import type { ContentTypeProps } from 'contentful-management';
import { SendMessage } from './helpers';
export type ContentType = ContentTypeProps;

@@ -48,3 +47,2 @@ export declare const ASSET_TYPENAME = "Asset";

gqlParams?: GraphQLParams;
sendMessage: SendMessage;
};

@@ -58,3 +56,2 @@ export type UpdateFieldProps = {

gqlParams?: GraphQLParams;
sendMessage: SendMessage;
};

@@ -71,3 +68,2 @@ export type UpdateReferenceFieldProps = {

gqlParams?: GraphQLParams;
sendMessage: SendMessage;
};

@@ -74,0 +70,0 @@ /**

{
"name": "@contentful/live-preview",
"version": "2.15.1",
"version": "3.0.0-alpha.1",
"author": "Contentful GmbH",

@@ -14,4 +14,3 @@ "license": "MIT",

"dist",
"react",
"style.css"
"react"
],

@@ -28,6 +27,2 @@ "exports": {

"types": "./dist/react.d.ts"
},
"./style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}

@@ -55,4 +50,4 @@ },

"@contentful/rich-text-types": "^16.2.0",
"@contentful/visual-sdk": "^1.0.0-alpha.34",
"@vercel/stega": "^0.1.0",
"@contentful/visual-sdk": "^1.0.0-alpha.40",
"flatted": "^3.2.9",
"graphql-tag": "^2.12.6",

@@ -86,3 +81,3 @@ "json-pointer": "^0.6.2",

},
"gitHead": "4b03d09d5ffc261d73af4c45ef4373440c4ba005"
"gitHead": "d6d14819ff16343aeccd170bbc31644a80b1cedb"
}

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

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