Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Move the access form footer flag to Edge Config, always show the privacy policy line

Marc Seitzdfaf43cc3c25
diff --git a/components/view/access-form/agreement-section.tsx b/components/view/access-form/agreement-section.tsx
index d6e3f47f..61b525d3 100644
--- a/components/view/access-form/agreement-section.tsx
+++ b/components/view/access-form/agreement-section.tsx
@@ -177,7 +177,7 @@ export default function AgreementSection({
linkId,
requireEmail,
requireName,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
}: {
data: DEFAULT_ACCESS_FORM_TYPE;
setData: Dispatch<SetStateAction<DEFAULT_ACCESS_FORM_TYPE>>;
@@ -190,11 +190,14 @@ export default function AgreementSection({
linkId?: string;
requireEmail?: boolean;
requireName?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
}) {
const theme = useAccessFormTheme();
const { t } = useTranslation("access-form");
const isChecked = !!data.hasConfirmedAgreement;
+ const protectedLinkLabel = hideFooterOnAccessForm
+ ? "protected link"
+ : "protected Papermark link";
const visitorEmail = typeof data.email === "string" ? data.email.trim() : "";
const visitorName = typeof data.name === "string" ? data.name.trim() : "";
const currentSigningIdentity = `${visitorEmail}\n${visitorName}`;
@@ -727,8 +730,8 @@ export default function AgreementSection({
<SheetHeader className="px-6 pt-6 text-start">
<SheetTitle>Sign {agreementName}</SheetTitle>
<SheetDescription>
- Complete the embedded signing flow to continue into the
- protected Papermark link.
+ Complete the embedded signing flow to continue into the{" "}
+ {protectedLinkLabel}.
</SheetDescription>
</SheetHeader>
diff --git a/components/view/access-form/email-section.tsx b/components/view/access-form/email-section.tsx
index fa6b9b1a..f2e7467b 100644
--- a/components/view/access-form/email-section.tsx
+++ b/components/view/access-form/email-section.tsx
@@ -22,14 +22,14 @@ export default function EmailSection({
setData,
brand,
disableEditEmail,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
onValidationChange,
}: {
data: DEFAULT_ACCESS_FORM_TYPE;
setData: Dispatch<SetStateAction<DEFAULT_ACCESS_FORM_TYPE>>;
brand?: Partial<Brand> | Partial<DataroomBrand> | null;
disableEditEmail?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
onValidationChange: (isValid: boolean) => void;
}) {
const { email } = data;
@@ -156,9 +156,15 @@ export default function EmailSection({
</p>
)}
<p className="text-sm" style={{ color: theme.subtleTextColor }}>
- {useCustomAccessForm
- ? t("fields.email.sharedWithProvider", "This data will be shared with the content provider.")
- : t("fields.email.sharedWithSender", "This data will be shared with the sender.")}
+ {hideFooterOnAccessForm
+ ? t(
+ "fields.email.sharedWithProvider",
+ "This data will be shared with the content provider.",
+ )
+ : t(
+ "fields.email.sharedWithSender",
+ "This data will be shared with the sender.",
+ )}
</p>
</div>
);
diff --git a/components/view/access-form/index.tsx b/components/view/access-form/index.tsx
index bc6143bb..b6780430 100644
--- a/components/view/access-form/index.tsx
+++ b/components/view/access-form/index.tsx
@@ -1,6 +1,6 @@
import { useEffect, useMemo, useState } from "react";
-import { Brand, CustomField, DataroomBrand } from "@prisma/client";
+import { Brand, CustomField, DataroomBrand, LinkType } from "@prisma/client";
import { ArrowUpRightIcon } from "lucide-react";
import { useTranslation } from "react-i18next";
@@ -52,7 +52,8 @@ export default function AccessForm({
linkId,
disableEditEmail,
disableEditPassword,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
+ linkType,
customFields,
logoOnAccessForm,
linkWelcomeMessage,
@@ -76,7 +77,8 @@ export default function AccessForm({
linkId?: string;
disableEditEmail?: boolean;
disableEditPassword?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
+ linkType?: LinkType;
customFields?: Partial<CustomField>[];
logoOnAccessForm?: boolean;
linkWelcomeMessage?: string | null;
@@ -210,7 +212,7 @@ export default function AccessForm({
<EmailSection
{...{ data, setData, brand }}
disableEditEmail={lockEmailField}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
onValidationChange={setIsEmailValid}
/>
) : null}
@@ -239,7 +241,7 @@ export default function AccessForm({
linkId={linkId}
requireEmail={requireEmail}
requireName={requireName}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
/>
) : null}
@@ -260,13 +262,21 @@ export default function AccessForm({
</form>
</div>
</div>
- {!useCustomAccessForm ? (
- <div className="flex flex-col items-center gap-0.5">
+ <div className="flex flex-col items-center gap-0.5">
+ {!hideFooterOnAccessForm ? (
<p
className="text-center text-sm tracking-tight"
style={{ color: accessFormTheme.subtleTextColor }}
>
- {t("footer.sharedSecurelyVia", "This document is securely shared with you using")}{" "}
+ {linkType === "DATAROOM_LINK"
+ ? t(
+ "footer.sharedSecurelyViaDataroom",
+ "This data room is securely shared with you using",
+ )
+ : t(
+ "footer.sharedSecurelyVia",
+ "This document is securely shared with you using",
+ )}{" "}
<a
href="https://www.papermark.com"
target="_blank"
@@ -278,24 +288,24 @@ export default function AccessForm({
</a>
.
</p>
- <p
- className="text-center text-sm tracking-tight"
- style={{ color: accessFormTheme.subtleTextColor }}
+ ) : null}
+ <p
+ className="text-center text-sm tracking-tight"
+ style={{ color: accessFormTheme.subtleTextColor }}
+ >
+ {t("footer.seeHowWeProtect", "See how we protect your data in our")}{" "}
+ <a
+ href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline-flex items-center gap-0.5"
+ style={{ color: accessFormTheme.mutedTextColor }}
>
- {t("footer.seeHowWeProtect", "See how we protect your data in our")}{" "}
- <a
- href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
- target="_blank"
- rel="noopener noreferrer"
- className="inline-flex items-center gap-0.5"
- style={{ color: accessFormTheme.mutedTextColor }}
- >
- <span>{t("footer.privacyPolicy", "Privacy Policy")}</span>
- <ArrowUpRightIcon className="h-3 w-3" />
- </a>
- </p>
- </div>
- ) : null}
+ <span>{t("footer.privacyPolicy", "Privacy Policy")}</span>
+ <ArrowUpRightIcon className="h-3 w-3" />
+ </a>
+ </p>
+ </div>
</div>
</AccessFormThemeProvider>
);
diff --git a/components/view/dataroom/dataroom-document-view.tsx b/components/view/dataroom/dataroom-document-view.tsx
index 9fc26f0a..cb87a175 100644
--- a/components/view/dataroom/dataroom-document-view.tsx
+++ b/components/view/dataroom/dataroom-document-view.tsx
@@ -89,7 +89,7 @@ export default function DataroomDocumentView({
disableEditEmail,
urlPasscode,
disableEditPassword,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
isEmbedded,
preview,
logoOnAccessForm,
@@ -112,7 +112,7 @@ export default function DataroomDocumentView({
disableEditEmail?: boolean;
urlPasscode?: string;
disableEditPassword?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
isEmbedded?: boolean;
preview?: boolean;
logoOnAccessForm?: boolean;
@@ -426,7 +426,8 @@ export default function DataroomDocumentView({
linkId={link.id}
disableEditEmail={disableEditEmail}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
+ linkType="DATAROOM_LINK"
brand={brand}
customFields={link.customFields}
logoOnAccessForm={logoOnAccessForm}
diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsx
index f9af4a39..270a287e 100644
--- a/components/view/dataroom/dataroom-view.tsx
+++ b/components/view/dataroom/dataroom-view.tsx
@@ -69,7 +69,7 @@ export default function DataroomView({
disableEditEmail,
urlPasscode,
disableEditPassword,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
isEmbedded,
preview,
@@ -87,7 +87,7 @@ export default function DataroomView({
disableEditEmail?: boolean;
urlPasscode?: string;
disableEditPassword?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
isEmbedded?: boolean;
preview?: boolean;
logoOnAccessForm?: boolean;
@@ -308,7 +308,8 @@ export default function DataroomView({
linkId={link.id}
disableEditEmail={disableEditEmail}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
+ linkType="DATAROOM_LINK"
brand={brand}
customFields={link.customFields}
logoOnAccessForm={logoOnAccessForm}
diff --git a/components/view/document-view.tsx b/components/view/document-view.tsx
index f9fb3703..5cd57f14 100644
--- a/components/view/document-view.tsx
+++ b/components/view/document-view.tsx
@@ -75,7 +75,7 @@ export default function DocumentView({
disableEditEmail,
urlPasscode,
disableEditPassword,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
isEmbedded,
annotationsEnabled,
@@ -100,7 +100,7 @@ export default function DocumentView({
disableEditEmail?: boolean;
urlPasscode?: string;
disableEditPassword?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
isEmbedded?: boolean;
logoOnAccessForm?: boolean;
annotationsEnabled?: boolean;
@@ -313,7 +313,8 @@ export default function DocumentView({
linkId={link.id}
disableEditEmail={disableEditEmail}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
+ linkType="DOCUMENT_LINK"
customFields={link.customFields}
logoOnAccessForm={logoOnAccessForm}
linkWelcomeMessage={link.welcomeMessage}
diff --git a/lib/featureFlags/index.ts b/lib/featureFlags/index.ts
index 914d7bf2..a1a573f1 100644
--- a/lib/featureFlags/index.ts
+++ b/lib/featureFlags/index.ts
@@ -19,7 +19,8 @@ export type BetaFeatures =
| "textSelection"
| "redaction"
| "requestList"
- | "logoOnAccessForm";
+ | "logoOnAccessForm"
+ | "hideFooterOnAccessForm";
type BetaFeaturesRecord = Record<BetaFeatures, string[]>;
@@ -44,6 +45,7 @@ export const getFeatureFlags = async ({ teamId }: { teamId?: string }) => {
redaction: false,
requestList: false,
logoOnAccessForm: false,
+ hideFooterOnAccessForm: false,
};
// Return all features as false if edge config is not available
diff --git a/locales/de/access-form.json b/locales/de/access-form.json
index 66add5f2..0817b594 100644
--- a/locales/de/access-form.json
+++ b/locales/de/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "Dieses Dokument wird sicher mit Ihnen geteilt über",
+ "sharedSecurelyViaDataroom": "Dieser Datenraum wird sicher mit Ihnen geteilt über",
"papermark": "Papermark",
"seeHowWeProtect": "Erfahren Sie, wie wir Ihre Daten schützen, in unserer",
"privacyPolicy": "Datenschutzerklärung"
diff --git a/locales/en/access-form.json b/locales/en/access-form.json
index d77bbc5b..e2f42a25 100644
--- a/locales/en/access-form.json
+++ b/locales/en/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "This document is securely shared with you using",
+ "sharedSecurelyViaDataroom": "This data room is securely shared with you using",
"papermark": "Papermark",
"seeHowWeProtect": "See how we protect your data in our",
"privacyPolicy": "Privacy Policy"
diff --git a/locales/es/access-form.json b/locales/es/access-form.json
index 104c69de..08c5f5a2 100644
--- a/locales/es/access-form.json
+++ b/locales/es/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "Este documento se comparte con usted de forma segura mediante",
+ "sharedSecurelyViaDataroom": "Esta sala de datos se comparte con usted de forma segura mediante",
"papermark": "Papermark",
"seeHowWeProtect": "Vea cómo protegemos sus datos en nuestra",
"privacyPolicy": "Política de privacidad"
diff --git a/locales/fr/access-form.json b/locales/fr/access-form.json
index d11ae55f..3489c628 100644
--- a/locales/fr/access-form.json
+++ b/locales/fr/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "Ce document vous est partagé en toute sécurité via",
+ "sharedSecurelyViaDataroom": "Cette salle de données vous est partagée en toute sécurité via",
"papermark": "Papermark",
"seeHowWeProtect": "Découvrez comment nous protégeons vos données dans notre",
"privacyPolicy": "Politique de confidentialité"
diff --git a/locales/it/access-form.json b/locales/it/access-form.json
index 4d09f2c7..790418fe 100644
--- a/locales/it/access-form.json
+++ b/locales/it/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "Questo documento è condiviso con te in modo sicuro tramite",
+ "sharedSecurelyViaDataroom": "Questa data room è condivisa con te in modo sicuro tramite",
"papermark": "Papermark",
"seeHowWeProtect": "Scopri come proteggiamo i tuoi dati nella nostra",
"privacyPolicy": "Informativa sulla privacy"
diff --git a/locales/ja/access-form.json b/locales/ja/access-form.json
index d9b46f10..7e640a97 100644
--- a/locales/ja/access-form.json
+++ b/locales/ja/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "この資料は安全に共有されています:",
+ "sharedSecurelyViaDataroom": "このデータルームは安全に共有されています:",
"papermark": "Papermark",
"seeHowWeProtect": "データ保護の詳細はこちら:",
"privacyPolicy": "プライバシーポリシー"
diff --git a/locales/pt-BR/access-form.json b/locales/pt-BR/access-form.json
index 708c1be8..4979f607 100644
--- a/locales/pt-BR/access-form.json
+++ b/locales/pt-BR/access-form.json
@@ -43,6 +43,7 @@
},
"footer": {
"sharedSecurelyVia": "Este documento é compartilhado com você de forma segura via",
+ "sharedSecurelyViaDataroom": "Esta sala de dados é compartilhada com você de forma segura via",
"papermark": "Papermark",
"seeHowWeProtect": "Veja como protegemos seus dados em nossa",
"privacyPolicy": "Política de Privacidade"
diff --git a/package.json b/package.json
index 6326574c..24e96fa9 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
+ "check:access-form": "tsx scripts/check-access-form-footer.ts",
"postinstall": "prisma generate",
"vercel-build": "prisma migrate deploy && next build",
"email": "email dev --dir ./components/emails --port 3001",
@@ -224,4 +225,4 @@
"tar": "7.5.10",
"lodash": "4.18.1"
}
-}
\ No newline at end of file
+}
diff --git a/pages/view/[linkId]/d/[documentId].tsx b/pages/view/[linkId]/d/[documentId].tsx
index 7c478d33..203fe1b1 100644
--- a/pages/view/[linkId]/d/[documentId].tsx
+++ b/pages/view/[linkId]/d/[documentId].tsx
@@ -55,7 +55,7 @@ type DataroomDocumentProps = Partial<ViewerI18nPageProps> & {
showPoweredByBanner: boolean;
showAccountCreationSlide: boolean;
useAdvancedExcelViewer: boolean;
- useCustomAccessForm: boolean;
+ hideFooterOnAccessForm: boolean;
logoOnAccessForm: boolean;
textSelectionEnabled?: boolean;
frozen?: boolean;
@@ -70,7 +70,7 @@ function DataroomDocumentViewPageInner({
showPoweredByBanner,
showAccountCreationSlide,
useAdvancedExcelViewer,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
textSelectionEnabled,
error,
@@ -199,7 +199,7 @@ function DataroomDocumentViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
logoOnAccessForm={logoOnAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
@@ -297,6 +297,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
const featureFlags = await getFeatureFlags({ teamId: teamId || undefined });
const textSelectionEnabled = featureFlags.textSelection;
const logoOnAccessFormEnabled = featureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled = featureFlags.hideFooterOnAccessForm;
const defaultLanguage =
brand && "defaultLanguage" in brand ? brand.defaultLanguage : undefined;
@@ -339,12 +340,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: advancedExcelEnabled,
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
textSelectionEnabled,
...i18nProps,
diff --git a/pages/view/[linkId]/embed.tsx b/pages/view/[linkId]/embed.tsx
index 5ae48581..11c0613d 100644
--- a/pages/view/[linkId]/embed.tsx
+++ b/pages/view/[linkId]/embed.tsx
@@ -126,7 +126,7 @@ function EmbedPageInner(props: ViewPageProps) {
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={props.useCustomAccessForm}
+ hideFooterOnAccessForm={props.hideFooterOnAccessForm}
verifiedEmail={verifiedEmail}
isEmbedded
/>
@@ -179,7 +179,7 @@ function EmbedPageInner(props: ViewPageProps) {
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={props.useCustomAccessForm}
+ hideFooterOnAccessForm={props.hideFooterOnAccessForm}
verifiedEmail={verifiedEmail}
isEmbedded
/>
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index c1576254..7089ae21 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -75,7 +75,7 @@ export interface ViewPageProps extends Partial<ViewerI18nPageProps> {
showPoweredByBanner: boolean;
showAccountCreationSlide: boolean;
useAdvancedExcelViewer: boolean;
- useCustomAccessForm: boolean;
+ hideFooterOnAccessForm: boolean;
logoOnAccessForm: boolean;
dataroomIndexEnabled?: boolean;
annotationsEnabled?: boolean;
@@ -145,7 +145,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: false,
- useCustomAccessForm: false,
+ hideFooterOnAccessForm: false,
logoOnAccessForm: false,
...i18nProps,
},
@@ -206,6 +206,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
const annotationsEnabled = featureFlags.annotations;
const textSelectionEnabled = featureFlags.textSelection;
const logoOnAccessFormEnabled = featureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled = featureFlags.hideFooterOnAccessForm;
return {
props: {
@@ -237,12 +238,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
showPoweredByBanner: link.showBanner || teamPlan === "free",
showAccountCreationSlide: link.showBanner || teamPlan === "free",
useAdvancedExcelViewer: advancedExcelEnabled,
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
annotationsEnabled,
textSelectionEnabled,
@@ -286,6 +282,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
const annotationsEnabled = featureFlags.annotations;
const textSelectionEnabled = featureFlags.textSelection;
const logoOnAccessFormEnabled = featureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled = featureFlags.hideFooterOnAccessForm;
const lastUpdatedAt = link.dataroom.documents.reduce(
(max: number, doc: any) => {
@@ -323,12 +320,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: false, // INFO: this is managed in the API route
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
dataroomIndexEnabled,
annotationsEnabled,
@@ -360,7 +352,7 @@ function ViewPageInner({
showPoweredByBanner,
showAccountCreationSlide,
useAdvancedExcelViewer,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
dataroomIndexEnabled,
annotationsEnabled,
@@ -522,7 +514,7 @@ function ViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
logoOnAccessForm={logoOnAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
@@ -604,7 +596,7 @@ function ViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
logoOnAccessForm={logoOnAccessForm}
token={storedToken}
previewToken={previewToken}
diff --git a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx b/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
index 8a1aa0e8..4ea7a716 100644
--- a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
+++ b/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
@@ -55,7 +55,7 @@ type DataroomDocumentProps = Partial<ViewerI18nPageProps> & {
showPoweredByBanner: boolean;
showAccountCreationSlide: boolean;
useAdvancedExcelViewer: boolean;
- useCustomAccessForm: boolean;
+ hideFooterOnAccessForm: boolean;
logoOnAccessForm: boolean;
textSelectionEnabled?: boolean;
frozen?: boolean;
@@ -70,7 +70,7 @@ function DataroomDocumentViewPageInner({
showPoweredByBanner,
showAccountCreationSlide,
useAdvancedExcelViewer,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
textSelectionEnabled,
error,
@@ -200,7 +200,7 @@ function DataroomDocumentViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
preview={!!preview}
@@ -308,6 +308,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
const featureFlags = await getFeatureFlags({ teamId: teamId || undefined });
const textSelectionEnabled = featureFlags.textSelection;
const logoOnAccessFormEnabled = featureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled = featureFlags.hideFooterOnAccessForm;
const i18nProps = await buildViewerI18nPageProps(brand as any);
@@ -344,12 +345,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: advancedExcelEnabled,
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
textSelectionEnabled,
...i18nProps,
diff --git a/pages/view/domains/[domain]/[slug]/embed.tsx b/pages/view/domains/[domain]/[slug]/embed.tsx
index b0427809..86e6e973 100644
--- a/pages/view/domains/[domain]/[slug]/embed.tsx
+++ b/pages/view/domains/[domain]/[slug]/embed.tsx
@@ -41,7 +41,7 @@ type DomainEmbedPageProps = Partial<ViewerI18nPageProps> & {
};
showAccountCreationSlide?: boolean;
useAdvancedExcelViewer?: boolean;
- useCustomAccessForm?: boolean;
+ hideFooterOnAccessForm?: boolean;
logoOnAccessForm?: boolean;
textSelectionEnabled?: boolean;
};
@@ -160,7 +160,7 @@ function EmbedPageInner(props: DomainEmbedPageProps) {
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={props.useCustomAccessForm}
+ hideFooterOnAccessForm={props.hideFooterOnAccessForm}
logoOnAccessForm={props.logoOnAccessForm}
verifiedEmail={verifiedEmail}
textSelectionEnabled={props.textSelectionEnabled}
@@ -212,7 +212,7 @@ function EmbedPageInner(props: DomainEmbedPageProps) {
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={props.useCustomAccessForm}
+ hideFooterOnAccessForm={props.hideFooterOnAccessForm}
logoOnAccessForm={props.logoOnAccessForm}
verifiedEmail={verifiedEmail}
textSelectionEnabled={props.textSelectionEnabled}
diff --git a/pages/view/domains/[domain]/[slug]/index.tsx b/pages/view/domains/[domain]/[slug]/index.tsx
index 1e9b6e1c..18025bdc 100644
--- a/pages/view/domains/[domain]/[slug]/index.tsx
+++ b/pages/view/domains/[domain]/[slug]/index.tsx
@@ -128,7 +128,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: false,
- useCustomAccessForm: false,
+ hideFooterOnAccessForm: false,
logoOnAccessForm: false,
...i18nProps,
},
@@ -179,6 +179,8 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
const docFeatureFlags = await getFeatureFlags({ teamId: teamId || undefined });
const textSelectionEnabled = docFeatureFlags.textSelection;
const logoOnAccessFormEnabled = docFeatureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled =
+ docFeatureFlags.hideFooterOnAccessForm;
return {
props: {
@@ -209,12 +211,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
},
showAccountCreationSlide: link.showBanner || teamPlan === "free",
useAdvancedExcelViewer: advancedExcelEnabled,
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
textSelectionEnabled,
...i18nProps,
@@ -256,6 +253,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
result.dataroomIndexEnabledForViewer ?? false;
const textSelectionEnabled = featureFlags.textSelection;
const logoOnAccessFormEnabled = featureFlags.logoOnAccessForm;
+ const hideFooterOnAccessFormEnabled = featureFlags.hideFooterOnAccessForm;
const lastUpdatedAt = link.dataroom.documents.reduce(
(max: number, doc: any) => {
@@ -293,12 +291,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
showPoweredByBanner: false,
showAccountCreationSlide: false,
useAdvancedExcelViewer: false, // INFO: this is managed in the API route
- useCustomAccessForm:
- teamId === "cm0154tiv0000lr2t6nr5c6kp" ||
- teamId === "clup33by90000oewh4rfvp2eg" ||
- teamId === "cm76hfyvy0002q623hmen99pf" ||
- teamId === "cm9ztf0s70005js04i689gefn" ||
- teamId === "cmk2hnmqh0000k304zcoezt6n",
+ hideFooterOnAccessForm: hideFooterOnAccessFormEnabled,
logoOnAccessForm: logoOnAccessFormEnabled,
dataroomIndexEnabled,
textSelectionEnabled,
@@ -339,7 +332,7 @@ type DomainViewPageProps = Partial<ViewerI18nPageProps> & {
};
showAccountCreationSlide: boolean;
useAdvancedExcelViewer: boolean;
- useCustomAccessForm: boolean;
+ hideFooterOnAccessForm: boolean;
logoOnAccessForm: boolean;
dataroomIndexEnabled?: boolean;
textSelectionEnabled?: boolean;
@@ -353,7 +346,7 @@ function ViewPageInner({
meta,
showAccountCreationSlide,
useAdvancedExcelViewer,
- useCustomAccessForm,
+ hideFooterOnAccessForm,
logoOnAccessForm,
dataroomIndexEnabled,
textSelectionEnabled,
@@ -509,7 +502,7 @@ function ViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
logoOnAccessForm={logoOnAccessForm}
@@ -589,7 +582,7 @@ function ViewPageInner({
disableEditEmail={!!disableEditEmail}
urlPasscode={urlPasscode}
disableEditPassword={disableEditPassword}
- useCustomAccessForm={useCustomAccessForm}
+ hideFooterOnAccessForm={hideFooterOnAccessForm}
token={storedToken}
verifiedEmail={verifiedEmail}
previewToken={previewToken}