diff --git a/packages/presentation/src/PresentationTool.tsx b/packages/presentation/src/PresentationTool.tsx index bd0ed3a6f..280bdc7df 100644 --- a/packages/presentation/src/PresentationTool.tsx +++ b/packages/presentation/src/PresentationTool.tsx @@ -108,6 +108,16 @@ export default function PresentationTool(props: { canCreateUrlPreviewSecrets, ) const canSharePreviewAccess = useMemo(() => { + if ( + _previewUrl && + typeof _previewUrl === 'object' && + 'draftMode' in _previewUrl && + _previewUrl.draftMode + ) { + // eslint-disable-next-line no-console + console.warn('previewUrl.draftMode is deprecated, use previewUrl.previewMode instead') + return _previewUrl.draftMode.shareAccess !== false + } if ( _previewUrl && typeof _previewUrl === 'object' &&