jagran-react-doc-viewer
Version:
A highly customizable React document viewer with support for PDF, DOCX, PPTX, images, and more
53 lines • 1.62 kB
TypeScript
import React from 'react';
interface ScreenshotProtectionConfig {
enabled?: boolean;
blackoutOnCapture?: boolean;
blockContextMenu?: boolean;
blockKeyboardShortcuts?: boolean;
customBlackoutMessage?: string;
}
export declare const useScreenshotProtection: (config?: ScreenshotProtectionConfig) => {
isProtected: boolean;
isBlackedOut: boolean;
protectionStyles: {
userSelect: "none";
WebkitUserSelect: "none";
MozUserSelect: "none";
msUserSelect: "none";
WebkitTouchCallout: "none";
WebkitUserDrag: "none";
KhtmlUserSelect: "none";
pointerEvents: "auto";
} | {
userSelect?: undefined;
WebkitUserSelect?: undefined;
MozUserSelect?: undefined;
msUserSelect?: undefined;
WebkitTouchCallout?: undefined;
WebkitUserDrag?: undefined;
KhtmlUserSelect?: undefined;
pointerEvents?: undefined;
};
BlackoutOverlay: React.DetailedReactHTMLElement<{
style: {
position: "fixed";
top: number;
left: number;
right: number;
bottom: number;
backgroundColor: "#000";
zIndex: number;
display: "flex";
alignItems: "center";
justifyContent: "center";
color: "#fff";
fontSize: string;
fontWeight: "bold";
textAlign: "center";
pointerEvents: "none";
userSelect: "none";
};
}, HTMLElement> | null;
};
export {};
//# sourceMappingURL=useScreenshotProtection.d.ts.map