Feature/v2/watermark (#4215)

Add watermark feature

Auto scroll on review

---------

Co-authored-by: Connor Yoh <[email protected]>
This commit is contained in:
ConnorYoh
2025-08-19 10:31:44 +01:00
committed by GitHub
co-authored by Connor Yoh
parent acbebd67a3
commit c1b7911518
24 changed files with 1410 additions and 78 deletions
+3 -2
View File
@@ -17,6 +17,7 @@ export type ModeType =
| 'sanitize'
| 'addPassword'
| 'changePermissions'
| 'watermark'
| 'removePassword';
export type ViewType = 'viewer' | 'pageEditor' | 'fileEditor';
@@ -108,12 +109,12 @@ export interface FileContextActions {
removeFiles: (fileIds: string[], deleteFromStorage?: boolean) => void;
replaceFile: (oldFileId: string, newFile: File) => Promise<void>;
clearAllFiles: () => void;
// File pinning
pinFile: (file: File) => void;
unpinFile: (file: File) => void;
isFilePinned: (file: File) => boolean;
// File consumption (replace unpinned files with outputs)
consumeFiles: (inputFiles: File[], outputFiles: File[]) => Promise<void>;
+8 -6
View File
@@ -1,13 +1,15 @@
export interface TooltipTip {
title?: string;
description?: string;
bullets?: string[];
body?: React.ReactNode;
}
export interface TooltipContent {
header?: {
title: string;
logo?: string | React.ReactNode;
};
tips?: Array<{
title?: string;
description?: string;
bullets?: string[];
body?: React.ReactNode;
}>;
tips?: TooltipTip[];
content?: React.ReactNode;
}