@sanity/presentation
Advanced tools
Comparing version 1.8.2 to 1.9.0
@@ -52,2 +52,8 @@ /// <reference types="react" /> | ||
/** @internal */ | ||
export declare interface FrameState { | ||
title: string | undefined | ||
url: string | undefined | ||
} | ||
/** @internal */ | ||
export declare type LiveQueriesState = Record<string, LiveQueriesStateValue> | ||
@@ -54,0 +60,0 @@ |
@@ -1,1 +0,1 @@ | ||
export{p as presentationTool,u as usePresentationNavigate,e as usePresentationParams}from"./_chunks/index-sPgST9GN.js";//# sourceMappingURL=index.js.map | ||
export{p as presentationTool,u as usePresentationNavigate,e as usePresentationParams}from"./_chunks/index-BJ7SvJmu.js";//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sanity/presentation", | ||
"version": "1.8.2", | ||
"version": "1.9.0", | ||
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/presentation#readme", | ||
@@ -105,4 +105,4 @@ "bugs": { | ||
"dependencies": { | ||
"@sanity/icons": "^2.10.1", | ||
"@sanity/preview-url-secret": "^1.6.1", | ||
"@sanity/icons": "^2.10.2", | ||
"@sanity/preview-url-secret": "^1.6.2", | ||
"@sanity/ui": "^2.0.2", | ||
@@ -112,3 +112,3 @@ "@sanity/uuid": "3.0.2", | ||
"fast-deep-equal": "3.1.3", | ||
"framer-motion": "^11.0.3", | ||
"framer-motion": "^11.0.5", | ||
"lodash.isequal": "^4.5.0", | ||
@@ -123,8 +123,8 @@ "mendoza": "3.0.4", | ||
"@sanity/client": "^6.12.4", | ||
"@sanity/pkg-utils": "^4.1.5", | ||
"@sanity/visual-editing-helpers": "0.2.6", | ||
"@sanity/pkg-utils": "^4.2.0", | ||
"@sanity/visual-editing-helpers": "0.3.0", | ||
"happy-dom": "^13.3.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"sanity": "^3.28.0", | ||
"sanity": "^3.29.1", | ||
"styled-components": "6.1.8", | ||
@@ -131,0 +131,0 @@ "typescript": "^5.3.3", |
@@ -7,2 +7,5 @@ import { ComposeIcon } from '@sanity/icons' | ||
// @todo import from core sanity package | ||
export const COMMENTS_INSPECTOR_NAME = 'sanity/structure/comments' | ||
export const EDIT_INTENT_MODE = 'presentation' | ||
@@ -9,0 +12,0 @@ |
@@ -121,1 +121,7 @@ import type { ClientPerspective, QueryParams } from '@sanity/client' | ||
} | ||
/** @internal */ | ||
export interface FrameState { | ||
title: string | undefined | ||
url: string | undefined | ||
} |
@@ -8,2 +8,3 @@ import { MutableRefObject, useEffect, useMemo, useRef } from 'react' | ||
DeskDocumentPaneParams, | ||
FrameState, | ||
PresentationNavigate, | ||
@@ -28,3 +29,3 @@ PresentationParams, | ||
routerSearchParams, | ||
previewRef, | ||
frameStateRef, | ||
}: { | ||
@@ -37,3 +38,3 @@ initialPreviewUrl: URL | ||
} | ||
previewRef: MutableRefObject<string | undefined> | ||
frameStateRef: MutableRefObject<FrameState> | ||
}): { | ||
@@ -144,3 +145,3 @@ deskParams: DeskDocumentPaneParams | ||
const replace = | ||
forceReplace ?? searchState.preview === previewRef.current | ||
forceReplace ?? searchState.preview === frameStateRef.current.url | ||
@@ -151,3 +152,3 @@ routerNavigate(state, { replace }) | ||
), | ||
[routerNavigate, previewRef], | ||
[routerNavigate, frameStateRef], | ||
) | ||
@@ -154,0 +155,0 @@ |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
842436
6083
Updated@sanity/icons@^2.10.2
Updatedframer-motion@^11.0.5