Socket
Socket
Sign inDemoInstall

@sanity/presentation

Package Overview
Dependencies
Maintainers
44
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/presentation - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1

dist/_chunks/index-CxnS6dlH.cjs

2

dist/index.d.ts

@@ -100,2 +100,3 @@ /// <reference types="react" />

perspective?: string
viewport?: string
}

@@ -127,2 +128,3 @@

perspective?: string
viewport?: string
}

@@ -129,0 +131,0 @@

2

dist/index.js

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

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

@@ -106,3 +106,3 @@ "bugs": {

"@sanity/icons": "^2.10.2",
"@sanity/preview-url-secret": "^1.6.2",
"@sanity/preview-url-secret": "^1.6.3",
"@sanity/ui": "^2.0.2",

@@ -121,5 +121,5 @@ "@sanity/uuid": "3.0.2",

"@sanity/channels": "0.4.0",
"@sanity/client": "^6.12.4",
"@sanity/pkg-utils": "^4.2.0",
"@sanity/visual-editing-helpers": "0.3.0",
"@sanity/client": "^6.13.3",
"@sanity/pkg-utils": "^4.2.2",
"@sanity/visual-editing-helpers": "0.3.1",
"happy-dom": "^13.3.8",

@@ -134,3 +134,3 @@ "react": "^18.2.0",

"peerDependencies": {
"@sanity/client": "^6.12.4"
"@sanity/client": "^6.13.3"
},

@@ -137,0 +137,0 @@ "engines": {

@@ -92,2 +92,3 @@ import type { ClientPerspective, QueryParams } from '@sanity/client'

perspective?: string
viewport?: string
}

@@ -98,2 +99,3 @@

perspective?: string
viewport?: string
}

@@ -100,0 +102,0 @@

@@ -5,2 +5,4 @@ import type { ClientPerspective } from '@sanity/client'

import type { PresentationState } from './reducers/presentationReducer'
export type DocumentOnPage = {

@@ -14,6 +16,9 @@ _id: string

export function useDocumentsOnPage(
perspective: ClientPerspective,
perspective: PresentationState['perspective'],
): [
DocumentOnPage[],
(perspective: ClientPerspective, state: DocumentOnPage[]) => void,
(
perspective: PresentationState['perspective'],
state: DocumentOnPage[],
) => void,
] {

@@ -20,0 +25,0 @@ if (perspective !== 'published' && perspective !== 'previewDrafts') {

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

perspective: routerSearchParams.perspective,
viewport: routerSearchParams.viewport,
inspect: routerSearchParams.inspect,

@@ -55,0 +56,0 @@ rev: routerSearchParams.rev,

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

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