@sanity/preview-url-secret
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -9,2 +9,9 @@ <!-- markdownlint-disable --><!-- textlint-disable --> | ||
## [2.0.7](https://github.com/sanity-io/visual-editing/compare/preview-url-secret-v2.0.6...preview-url-secret-v2.0.7) (2025-01-09) | ||
### Bug Fixes | ||
* ship react 19 ready typings ([67b9187](https://github.com/sanity-io/visual-editing/commit/67b9187bbfd6d31fca437dd9c9eb80b1f1c296a4)) | ||
## [2.0.6](https://github.com/sanity-io/visual-editing/compare/preview-url-secret-v2.0.5...preview-url-secret-v2.0.6) (2025-01-09) | ||
@@ -11,0 +18,0 @@ |
@@ -6,3 +6,2 @@ import { defineType, definePlugin } from "sanity"; | ||
type: "document", | ||
// @ts-expect-error - fix later | ||
icon: LockIcon, | ||
@@ -40,3 +39,2 @@ name: schemaType, | ||
}, | ||
// @ts-expect-error - fix later | ||
prepare(data) { | ||
@@ -43,0 +41,0 @@ const url = data.studioUrl ? new URL(data.studioUrl, location.origin) : void 0, updatedAt = new Date(data.updatedAt).getTime(), expiresAt = new Date(updatedAt + 1e3 * SECRET_TTL), expired = expiresAt < /* @__PURE__ */ new Date(), icon = expired ? CloseCircleIcon : CheckmarkCircleIcon; |
{ | ||
"name": "@sanity/preview-url-secret", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/preview-url-secret#readme", | ||
@@ -122,4 +122,4 @@ "bugs": { | ||
"vitest": "^2.1.8", | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/prettier-config": "0.0.0", | ||
"@repo/eslint-config": "0.0.0", | ||
"@repo/package.config": "0.0.0" | ||
@@ -126,0 +126,0 @@ }, |
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
Sorry, the diff of this file is not supported yet
165519
1596