Socket
Socket
Sign inDemoInstall

@sanity/presentation

Package Overview
Dependencies
12
Maintainers
44
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.2 to 1.9.0

dist/_chunks/BroadcastDisplayedDocument-DzPEPGDt.cjs

6

dist/index.d.ts

@@ -52,2 +52,8 @@ /// <reference types="react" />

/** @internal */
export declare interface FrameState {
title: string | undefined
url: string | undefined
}
/** @internal */
export declare type LiveQueriesState = Record<string, LiveQueriesStateValue>

@@ -54,0 +60,0 @@

2

dist/index.js

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

export{p as presentationTool,u as usePresentationNavigate,e as usePresentationParams}from"./_chunks/index-sPgST9GN.js";//# sourceMappingURL=index.js.map
export{p as presentationTool,u as usePresentationNavigate,e as usePresentationParams}from"./_chunks/index-BJ7SvJmu.js";//# sourceMappingURL=index.js.map
{
"name": "@sanity/presentation",
"version": "1.8.2",
"version": "1.9.0",
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/presentation#readme",

@@ -105,4 +105,4 @@ "bugs": {

"dependencies": {
"@sanity/icons": "^2.10.1",
"@sanity/preview-url-secret": "^1.6.1",
"@sanity/icons": "^2.10.2",
"@sanity/preview-url-secret": "^1.6.2",
"@sanity/ui": "^2.0.2",

@@ -112,3 +112,3 @@ "@sanity/uuid": "3.0.2",

"fast-deep-equal": "3.1.3",
"framer-motion": "^11.0.3",
"framer-motion": "^11.0.5",
"lodash.isequal": "^4.5.0",

@@ -123,8 +123,8 @@ "mendoza": "3.0.4",

"@sanity/client": "^6.12.4",
"@sanity/pkg-utils": "^4.1.5",
"@sanity/visual-editing-helpers": "0.2.6",
"@sanity/pkg-utils": "^4.2.0",
"@sanity/visual-editing-helpers": "0.3.0",
"happy-dom": "^13.3.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanity": "^3.28.0",
"sanity": "^3.29.1",
"styled-components": "6.1.8",

@@ -131,0 +131,0 @@ "typescript": "^5.3.3",

@@ -7,2 +7,5 @@ import { ComposeIcon } from '@sanity/icons'

// @todo import from core sanity package
export const COMMENTS_INSPECTOR_NAME = 'sanity/structure/comments'
export const EDIT_INTENT_MODE = 'presentation'

@@ -9,0 +12,0 @@

@@ -121,1 +121,7 @@ import type { ClientPerspective, QueryParams } from '@sanity/client'

}
/** @internal */
export interface FrameState {
title: string | undefined
url: string | undefined
}

@@ -8,2 +8,3 @@ import { MutableRefObject, useEffect, useMemo, useRef } from 'react'

DeskDocumentPaneParams,
FrameState,
PresentationNavigate,

@@ -28,3 +29,3 @@ PresentationParams,

routerSearchParams,
previewRef,
frameStateRef,
}: {

@@ -37,3 +38,3 @@ initialPreviewUrl: URL

}
previewRef: MutableRefObject<string | undefined>
frameStateRef: MutableRefObject<FrameState>
}): {

@@ -144,3 +145,3 @@ deskParams: DeskDocumentPaneParams

const replace =
forceReplace ?? searchState.preview === previewRef.current
forceReplace ?? searchState.preview === frameStateRef.current.url

@@ -151,3 +152,3 @@ routerNavigate(state, { replace })

),
[routerNavigate, previewRef],
[routerNavigate, frameStateRef],
)

@@ -154,0 +155,0 @@

Sorry, the diff of this file is too big to display

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc