Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: types
Marc Seitz68425eb861d8
diff --git a/components/links/link-sheet/dataroom-link-sheet.tsx b/components/links/link-sheet/dataroom-link-sheet.tsxindex aa3f5e9d..88284a60 100644--- a/components/links/link-sheet/dataroom-link-sheet.tsx+++ b/components/links/link-sheet/dataroom-link-sheet.tsx@@ -1,6 +1,11 @@"use client";-import { DataroomLinkSheet as DataroomLinkSheetEE } from "@/ee/features/permissions/components/dataroom-link-sheet";+import {+ DataroomLinkSheet as DataroomLinkSheetEE,+ type ItemPermission as ItemPermissionEE,+} from "@/ee/features/permissions/components/dataroom-link-sheet";++export type ItemPermission = ItemPermissionEE;export function DataroomLinkSheet(props: any) {return <DataroomLinkSheetEE {...props} />;diff --git a/components/links/link-sheet/index.tsx b/components/links/link-sheet/index.tsxindex 2a7c571a..331c2f86 100644--- a/components/links/link-sheet/index.tsx+++ b/components/links/link-sheet/index.tsx@@ -43,6 +43,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";import { ButtonTooltip } from "@/components/ui/tooltip";import { CustomFieldData } from "./custom-fields-panel";+import { type ItemPermission } from "./dataroom-link-sheet";import DomainSection from "./domain-section";import { LinkOptions } from "./link-options";import TagSection from "./tags/tag-section";@@ -131,7 +132,7 @@ export type DEFAULT_LINK_TYPE = {uploadFolderId: string | null;uploadFolderName: string;enableIndexFile: boolean;- permissions?: Record<string, unknown> | null; // For dataroom links file permissions+ permissions?: ItemPermission | null; // For dataroom links file permissionspermissionGroupId?: string | null;};diff --git a/ee/features/permissions/components/dataroom-link-sheet.tsx b/ee/features/permissions/components/dataroom-link-sheet.tsxindex ad1345f3..ccb2444b 100644--- a/ee/features/permissions/components/dataroom-link-sheet.tsx+++ b/ee/features/permissions/components/dataroom-link-sheet.tsx@@ -64,7 +64,7 @@ export const DEFAULT_LINK_PROPS = (permissions: null,});-type ItemPermission = Record<+export type ItemPermission = Record<string,{ view: boolean; download: boolean; itemType: ItemType }>;@@ -700,8 +700,6 @@ export function DataroomLinkSheet({<SelectonValueChange={(value) => {if (value === "add_group") {- // Open the group sheet- console.log("add_group redirect");return;}