Socket
Socket
Sign inDemoInstall

@sanity/presentation

Package Overview
Dependencies
Maintainers
41
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 0.6.6-pink-lizard to 0.6.7-pink-lizard

dist/_chunks/index-SgCJFq9k.cjs

15

CHANGELOG.md
# Changelog
## [0.6.7-pink-lizard](https://github.com/sanity-io/visual-editing/compare/presentation-v0.6.6-pink-lizard...presentation-v0.6.7-pink-lizard) (2023-11-08)
### Bug Fixes
* **deps:** update dependency @sanity/client to v6.8.0-pink-lizard.7 ([#288](https://github.com/sanity-io/visual-editing/issues/288)) ([7d63682](https://github.com/sanity-io/visual-editing/commit/7d63682b533495e75cdcef446e818e10b742329b))
* use `studioPath` utils from `@sanity/client/csm` ([a804364](https://github.com/sanity-io/visual-editing/commit/a80436410083ae88f6dc46a259ae3a08a7f4b59f))
### Dependencies
* The following workspace dependencies were updated
* dependencies
* @sanity/groq-store bumped to 5.2.2-pink-lizard
## [0.6.6-pink-lizard](https://github.com/sanity-io/visual-editing/compare/presentation-v0.6.5-pink-lizard...presentation-v0.6.6-pink-lizard) (2023-11-08)

@@ -4,0 +19,0 @@

2

dist/index.js

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

export { presentationTool, usePresentationNavigate, usePresentationParams } from './_chunks/index-4ftYudPQ.js';
export { presentationTool, usePresentationNavigate, usePresentationParams } from './_chunks/index-Xlzq-IhJ.js';
//# sourceMappingURL=index.js.map
{
"name": "@sanity/presentation",
"version": "0.6.6-pink-lizard",
"version": "0.6.7-pink-lizard",
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/presentation#readme",

@@ -114,6 +114,6 @@ "bugs": {

"rxjs": "^7.8.1",
"@sanity/groq-store": "5.2.1-pink-lizard"
"@sanity/groq-store": "5.2.2-pink-lizard"
},
"devDependencies": {
"@sanity/client": "6.8.0-pink-lizard.5",
"@sanity/client": "6.8.0-pink-lizard.7",
"@sanity/pkg-utils": "^3.2.3",

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

"peerDependencies": {
"@sanity/client": "6.8.0-pink-lizard.5",
"@sanity/client": "6.8.0-pink-lizard.7",
"react": "^18.2.0",

@@ -133,0 +133,0 @@ "react-dom": "^18.2.0",

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

import { pathToString, urlStringToPath } from 'visual-editing-helpers'
import { studioPath } from '@sanity/client/csm'
import { urlStringToPath } from 'visual-editing-helpers'

@@ -18,3 +19,3 @@ export function parsePath(rawPath: string | undefined): {

segments.length > 2
? pathToString(urlStringToPath(segments.slice(2).join('.')))
? studioPath.toString(urlStringToPath(segments.slice(2).join('.')))
: undefined,

@@ -28,5 +29,5 @@ }

segments.length > 1
? pathToString(urlStringToPath(segments.slice(1).join('.')))
? studioPath.toString(urlStringToPath(segments.slice(1).join('.')))
: undefined,
}
}

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

import { studioPath } from '@sanity/client/csm'
import isEqual from 'lodash.isequal'

@@ -9,3 +10,3 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'

} from 'sanity/router'
import { pathToUrlString, stringToPath } from 'visual-editing-helpers'
import { pathToUrlString } from 'visual-editing-helpers'

@@ -146,3 +147,5 @@ import { debounce } from './lib/debounce'

? pathToUrlString(
stringToPath([params.id, params.path].filter(Boolean).join('.')),
studioPath.fromString(
[params.id, params.path].filter(Boolean).join('.'),
),
)

@@ -149,0 +152,0 @@ : undefined

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