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

@sanity/preview-url-secret

Package Overview
Dependencies
Maintainers
63
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/preview-url-secret - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

7

CHANGELOG.md

@@ -9,2 +9,9 @@ <!-- markdownlint-disable --><!-- textlint-disable -->

## [2.0.2](https://github.com/sanity-io/visual-editing/compare/preview-url-secret-v2.0.1...preview-url-secret-v2.0.2) (2024-11-07)
### Bug Fixes
* **docs:** update img tags to markdown format ([cd9706d](https://github.com/sanity-io/visual-editing/commit/cd9706d7799326968fd3ae74c6dace712a116e4f))
## [2.0.1](https://github.com/sanity-io/visual-editing/compare/preview-url-secret-v2.0.0...preview-url-secret-v2.0.1) (2024-11-06)

@@ -11,0 +18,0 @@

4

package.json
{
"name": "@sanity/preview-url-secret",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/preview-url-secret#readme",

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

"vitest": "^2.1.4",
"@repo/eslint-config": "0.0.0",
"@repo/package.config": "0.0.0",
"@repo/eslint-config": "0.0.0",
"@repo/prettier-config": "0.0.0"

@@ -126,0 +126,0 @@ },

@@ -70,4 +70,5 @@ # @sanity/preview-url-secret

When preview sharing is enabled, Presentation Tool will show a "Share" menu:
<img width="688" alt="image" src="https://github.com/user-attachments/assets/186bdd20-cad3-44c7-948a-f23aabf7ef6a">
![Example preview sharing QR code](https://github.com/user-attachments/assets/186bdd20-cad3-44c7-948a-f23aabf7ef6a)
### Control who has access to a shared preview

@@ -92,4 +93,5 @@

With everything setup correctly, users assigned to this role should see the following when attempting to use the "Share" menu:
<img width="418" alt="image" src="https://github.com/user-attachments/assets/9e748f49-4f82-453c-bd83-cae6e86302f2">
![An alert shows an improper permission warning](https://github.com/user-attachments/assets/9e748f49-4f82-453c-bd83-cae6e86302f2)
If you're still able to see the QR code with the new role assigned, make sure you're not assigned to "Viewer" or other roles that may be granting access to "All documents: Read".

@@ -101,4 +103,5 @@

If anyone without permission attempts to toggle it they'll see a message like this:
<img width="399" alt="image" src="https://github.com/user-attachments/assets/798c9c32-88ac-40ba-9111-2ef4e8fc9a2b">
![An alert shows an improper toggle permission warning](https://github.com/user-attachments/assets/798c9c32-88ac-40ba-9111-2ef4e8fc9a2b)
Enterprise customers can customize this in the following way:

@@ -105,0 +108,0 @@

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