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

@contentful/live-preview

Package Overview
Dependencies
Maintainers
176
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 3.0.0-alpha.15 to 3.0.0-alpha.16

dist/index-BWHYUhSv.js

8

dist/helpers/index.d.ts

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

export * from './debug';
export * from './pollUrlChanges';
export * from './utils';
export * from './uuid';
export * from './debug.js';
export * from './pollUrlChanges.js';
export * from './utils.js';
export * from './uuid.js';
import { DocumentNode, SelectionNode } from 'graphql';
import type { EditorMessage } from '../messages';
import { PostMessageMethods } from '../messages';
import type { EditorMessage } from '../messages.js';
import { PostMessageMethods } from '../messages.js';
type Params = Map<string, {

@@ -5,0 +5,0 @@ alias: Map<string, string>;

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

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

@@ -0,8 +1,9 @@

import { encodeGraphQLResponse } from '@contentful/content-source-maps';
import { type DocumentNode } from 'graphql';
import { InspectorMode } from './inspectorMode';
import { type InspectorModeTags } from './inspectorMode/types';
import { LiveUpdates } from './liveUpdates';
import { type EditorMessage, type PostMessageMethods } from './messages';
import { SaveEvent } from './saveEvent';
import type { Argument, LivePreviewAssetProps, LivePreviewEntryProps, LivePreviewProps, SubscribeCallback } from './types';
import { InspectorMode } from './inspectorMode/index.js';
import { type InspectorModeTags } from './inspectorMode/types.js';
import { LiveUpdates } from './liveUpdates.js';
import { type EditorMessage, type PostMessageMethods } from './messages.js';
import { SaveEvent } from './saveEvent.js';
import type { Argument, LivePreviewAssetProps, LivePreviewEntryProps, LivePreviewProps, SubscribeCallback } from './types.js';
export type { LivePreviewAssetProps, LivePreviewEntryProps, LivePreviewProps };

@@ -53,3 +54,4 @@ export declare const VERSION: string;

}
export { LIVE_PREVIEW_EDITOR_SOURCE, LIVE_PREVIEW_SDK_SOURCE } from './constants';
export * from './messages';
export { LIVE_PREVIEW_EDITOR_SOURCE, LIVE_PREVIEW_SDK_SOURCE } from './constants.js';
export * from './messages.js';
export { encodeGraphQLResponse };

@@ -1,12 +0,13 @@

import { C as t, I as E, L as o, a, b as i, V as I, c as n, o as r } from "./index-B2yCBNfB.js";
import { C as t, I as o, L as E, a, b as n, V as i, n as I, c as r, o as R } from "./index-BWHYUhSv.js";
export {
t as ContentfulLivePreview,
E as InspectorModeEventMethods,
o as LIVE_PREVIEW_EDITOR_SOURCE,
o as InspectorModeEventMethods,
E as LIVE_PREVIEW_EDITOR_SOURCE,
a as LIVE_PREVIEW_SDK_SOURCE,
i as LivePreviewPostMessageMethods,
I as VERSION,
n as openAssetInEditorUtility,
r as openEntryInEditorUtility
n as LivePreviewPostMessageMethods,
i as VERSION,
I as encodeGraphQLResponse,
r as openAssetInEditorUtility,
R as openEntryInEditorUtility
};
//# sourceMappingURL=index.js.map

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

import { type MessageFromEditor } from '../messages';
import { type MessageFromEditor } from '../messages.js';
type InspectorModeOptions = {

@@ -3,0 +3,0 @@ locale: string;

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

import { InspectorModeAttributes } from './types';
import { InspectorModeAttributes } from './types.js';
/**

@@ -10,3 +10,3 @@ * Parses the necessary information from the element and returns them.

*/
export declare function getAllTaggedElements(_root?: Document, _ignoreManual?: boolean): Element[];
export declare function getAllTaggedElements(root?: Document, ignoreManual?: boolean): Element[];
/**

@@ -13,0 +13,0 @@ * Returns a list of tagged entries on the page

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

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

@@ -3,0 +3,0 @@ * LiveUpdates for the Contentful Live Preview mode

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

@@ -7,0 +7,0 @@ CONNECTED = "CONNECTED",

import { useEffect, type PropsWithChildren, type ReactElement } from 'react';
import { DocumentNode } from 'graphql';
import { ContentfulLivePreviewInitConfig } from './index';
import type { InspectorModeTags } from './inspectorMode/types';
import { Argument, LivePreviewAssetProps, LivePreviewEntryProps, LivePreviewProps } from './types';
import { ContentfulLivePreviewInitConfig } from './index.js';
import type { InspectorModeTags } from './inspectorMode/types.js';
import { Argument, LivePreviewAssetProps, LivePreviewEntryProps, LivePreviewProps } from './types.js';
type UseEffectParams = Parameters<typeof useEffect>;

@@ -7,0 +7,0 @@ type EffectCallback = UseEffectParams[0];

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-B2yCBNfB.js";
import { C as Ur, d as Ft } from "./index-BWHYUhSv.js";
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};

@@ -4,0 +4,0 @@ function Lt(f) {

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

import { EntrySavedMessage, MessageFromEditor } from './messages';
import { SubscribeCallback } from './types';
import { EntrySavedMessage, MessageFromEditor } from './messages.js';
import { SubscribeCallback } from './types.js';
export declare class SaveEvent {

@@ -4,0 +4,0 @@ locale: string;

{
"name": "@contentful/live-preview",
"version": "3.0.0-alpha.15",
"version": "3.0.0-alpha.16",
"author": "Contentful GmbH",
"license": "MIT",
"description": "Preview SDK for both the field tagging connection + live content updates",
"source": "./src/index.tsx",
"source": "./src/index.ts",
"main": "./dist/index.cjs",

@@ -47,3 +47,3 @@ "module": "./dist/index.js",

"dependencies": {
"@contentful/content-source-maps": "^0.2.0-alpha.10",
"@contentful/content-source-maps": "^0.2.0-alpha.11",
"@contentful/rich-text-types": "^16.2.0",

@@ -61,3 +61,3 @@ "flatted": "^3.2.9",

"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react-swc": "^3.0.0",
"@vitejs/plugin-react-swc": "3.6.0",
"contentful": "^10.3.4",

@@ -75,3 +75,3 @@ "contentful-management": "^11.0.1",

},
"gitHead": "c0da1331dcc2733be2e7779b44b2f6fcffd3bb96"
"gitHead": "f653b81d9f93e5ae357a9a8441ae220c5563592e"
}

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