Socket
Socket
Sign inDemoInstall

@sanity/presentation

Package Overview
Dependencies
Maintainers
44
Versions
135
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.7.2 to 1.7.3

dist/_chunks/index-FG1d-U0J.js

7

CHANGELOG.md
# Changelog
## [1.7.3](https://github.com/sanity-io/visual-editing/compare/presentation-v1.7.2...presentation-v1.7.3) (2024-01-30)
### Bug Fixes
* **presentation:** preserve preview if omitted on create intent ([0ef7633](https://github.com/sanity-io/visual-editing/commit/0ef76333ce6398bdbb0bcaf2b3e09975940c3680))
## [1.7.2](https://github.com/sanity-io/visual-editing/compare/presentation-v1.7.1...presentation-v1.7.2) (2024-01-29)

@@ -5,0 +12,0 @@

2

dist/index.js

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

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

@@ -5,0 +5,0 @@ "bugs": {

@@ -20,2 +20,3 @@ import { uuid } from '@sanity/uuid'

const { id, mode, path, presentation, type, ...searchParams } = params
if (intent === 'edit' && id) {

@@ -29,4 +30,8 @@ return {

}
if (intent === 'create') {
searchParams.preview = searchParams.preview || '/'
searchParams.preview =
searchParams.preview ||
new URLSearchParams(window.location.search).get('preview') ||
'/'
return {

@@ -33,0 +38,0 @@ type: type || '*',

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