#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Add missing attributes to mark user content as private (#8729)
James Brunton50e42c96fdf6
diff --git a/.github/workflows/frontend-a11y.yml b/.github/workflows/frontend-a11y.ymlindex d998958b3a..b7e3d48419 100644--- a/.github/workflows/frontend-a11y.yml+++ b/.github/workflows/frontend-a11y.yml@@ -17,6 +17,12 @@ permissions:jobs:frontend-a11y:+ name: a11y (${{ matrix.theme }})+ strategy:+ fail-fast: false+ matrix:+ # One runner per theme, so each leg scans half the work.+ theme: [light, dark]runs-on: ubuntu-latestcontainer:image: mcr.microsoft.com/playwright:v1.58.2-noble@sha256:6446946a1d9fd62d9ae501312a2d76a43ee688542b21622056a372959b65d63d@@ -45,8 +51,8 @@ jobs:uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0with:version: 3.54.0- - name: a11y gate (changed stories)- run: task frontend:storybook:a11y:changed -- origin/${{ github.base_ref || 'main' }}+ - name: a11y gate (changed stories, ${{ matrix.theme }})+ run: task frontend:storybook:a11y:changed:${{ matrix.theme }} -- origin/${{ github.base_ref || 'main' }}- name: Upload scan reports# The reports carry the offending selector and help text for each# violation; without them a red run can only be understood by@@ -54,7 +60,7 @@ jobs:if: always()uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:- name: a11y-scan-${{ github.run_id }}+ name: a11y-scan-${{ matrix.theme }}-${{ github.run_id }}path: frontend/.a11y-scan/retention-days: 7if-no-files-found: ignorediff --git a/.taskfiles/frontend.yml b/.taskfiles/frontend.ymlindex ca559d64fa..d334df9448 100644--- a/.taskfiles/frontend.yml+++ b/.taskfiles/frontend.yml@@ -305,19 +305,44 @@ tasks:Pass a base ref through CLI_ARGS, e.g.task frontend:storybook:a11y:changed -- origin/release+ cmds:+ - task: storybook:a11y:changed:themes+ vars:+ THEMES: light dark+ BASE: '{{.CLI_ARGS | default "origin/main"}}'++ storybook:a11y:changed:light:+ desc: "a11y gate over the stories this branch affects in light mode (default base origin/main)"+ cmds:+ - task: storybook:a11y:changed:themes+ vars:+ THEMES: light+ BASE: '{{.CLI_ARGS | default "origin/main"}}'++ storybook:a11y:changed:dark:+ desc: "a11y gate over the stories this branch affects in dark mode (default base origin/main)"+ cmds:+ - task: storybook:a11y:changed:themes+ vars:+ THEMES: dark+ BASE: '{{.CLI_ARGS | default "origin/main"}}'++ storybook:a11y:changed:themes:+ internal: truevars:- BASE: '{{.CLI_ARGS | default "origin/main"}}'CHANGED:- sh: node .storybook/a11y-changed.mjs {{.CLI_ARGS | default "origin/main"}}+ sh: node .storybook/a11y-changed.mjs {{.BASE}}cmds:+ # One theme failing still runs the next, so a run reports every theme.- cmd: |if [ -z '{{.CHANGED}}' ]; thenecho "a11y: no story files affected vs {{.BASE}} — nothing to check"exit 0firc=0- task --taskfile "{{.ROOT_TASKFILE}}" frontend:storybook:a11y:light -- {{.CHANGED}} || rc=1- task --taskfile "{{.ROOT_TASKFILE}}" frontend:storybook:a11y:dark -- {{.CHANGED}} || rc=1+ for theme in {{.THEMES}}; do+ task --taskfile "{{.ROOT_TASKFILE}}" frontend:storybook:a11y:$theme -- {{.CHANGED}} || rc=1+ doneexit $rcstorybook:a11y:record:diff --git a/frontend/src/editor/cloud/components/onboarding/slides/TeamSlide.tsx b/frontend/src/editor/cloud/components/onboarding/slides/TeamSlide.tsxindex 67b7be5dd1..2d642f6c3e 100644--- a/frontend/src/editor/cloud/components/onboarding/slides/TeamSlide.tsx+++ b/frontend/src/editor/cloud/components/onboarding/slides/TeamSlide.tsx@@ -6,6 +6,7 @@ import { SlideConfig } from "@editor/types/types";import { createLightSlideBackground } from "@editor/components/onboarding/slides/unifiedBackgroundConfig";import { useSaaSTeam } from "@editor/contexts/SaaSTeamContext";import styles from "@editor/components/onboarding/slides/SaasOnboardingSlides.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const TEAM_BACKGROUND = createLightSlideBackground([79, 70, 229], "#E0E7FF");@@ -73,6 +74,7 @@ function InviteForm() {placeholder={t("team.invite.placeholder", "[email protected]")}value={email}onChange={(e) => setEmail(e.target.value)}+ className={privateContentClassName}error={email && !emailValid? t("team.invite.invalidEmail", "Invalid email format")@@ -93,7 +95,7 @@ function InviteForm() {)}{success && (<span- className={styles.inviteFeedback}+ className={`${styles.inviteFeedback} ${privateContentClassName}`}style={{ color: "var(--mantine-color-green-7)", display: "block" }}>{success}@@ -137,7 +139,7 @@ const TeamSlideBody = () => {style={{ display: "flex" }}><span- className={styles.memberIdentity}+ className={`${styles.memberIdentity} ${privateContentClassName}`}style={{ display: "flex" }}><span className={styles.memberName}>{member.username}</span>@@ -159,7 +161,7 @@ const TeamSlideBody = () => {style={{ display: "flex" }}><span- className={styles.memberIdentity}+ className={`${styles.memberIdentity} ${privateContentClassName}`}style={{ display: "flex" }}><span className={styles.memberName}>diff --git a/frontend/src/editor/cloud/components/shared/TeamInvitationBanner.tsx b/frontend/src/editor/cloud/components/shared/TeamInvitationBanner.tsxindex ee6154618c..c561e08e6c 100644--- a/frontend/src/editor/cloud/components/shared/TeamInvitationBanner.tsx+++ b/frontend/src/editor/cloud/components/shared/TeamInvitationBanner.tsx@@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import { AppBanner } from "@editor/components/shared/AppBanner";import { useSaaSTeam } from "@editor/contexts/SaaSTeamContext";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** SaaS-web team invitation banner. Shown at the top of the app when the@@ -67,9 +68,11 @@ export function TeamInvitationBanner() {fw={500}style={{ color: "rgba(255, 255, 255, 0.95)" }}>- <strong>{invitation.inviterEmail}</strong>{" "}+ <strong className={privateContentClassName}>+ {invitation.inviterEmail}+ </strong>{" "}{t("team.invitationBanner.message", "has invited you to join")}{" "}- <strong>{invitation.teamName}</strong>+ <strong className={privateContentClassName}>{invitation.teamName}</strong></Text>);diff --git a/frontend/src/editor/cloud/components/shared/config/configSections/Payg.tsx b/frontend/src/editor/cloud/components/shared/config/configSections/Payg.tsxindex 0db6f3c0a4..ebbb06776b 100644--- a/frontend/src/editor/cloud/components/shared/config/configSections/Payg.tsx+++ b/frontend/src/editor/cloud/components/shared/config/configSections/Payg.tsx@@ -32,6 +32,7 @@ import "./Payg.css";import SpendCapControl from "./SpendCapControl";import { useTranslation } from "react-i18next";import type { Wallet } from "@editor/hooks/useWallet";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// ─── Types ────────────────────────────────────────────────────────────────@@ -508,12 +509,15 @@ function MemberUsage({ members }: { members: Wallet["members"] }) {{members.map((m) => (<div className="payg-member" key={m.userId}><span- className="payg-member__avatar"+ className={`payg-member__avatar ${privateContentClassName}`}style={{ background: avatarColor(m.userId) }}>{m.name.charAt(0).toUpperCase()}</span>- <div style={{ flex: 1, minWidth: 0 }}>+ <div+ className={privateContentClassName}+ style={{ flex: 1, minWidth: 0 }}+ ><div className="payg-member__name">{m.name}</div><div className="payg-member__email">{m.email}</div></div>diff --git a/frontend/src/editor/cloud/components/shared/config/configSections/TeamSection.tsx b/frontend/src/editor/cloud/components/shared/config/configSections/TeamSection.tsxindex 37057b0ded..1cd56a3ca9 100644--- a/frontend/src/editor/cloud/components/shared/config/configSections/TeamSection.tsx+++ b/frontend/src/editor/cloud/components/shared/config/configSections/TeamSection.tsx@@ -28,6 +28,7 @@ import {import apiClient from "@editor/services/apiClient";import { useTeamAvatarUrls } from "@editor/hooks/useTeamAvatarUrls";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;@@ -77,6 +78,7 @@ function TeamNameEditor({value={value}onChange={(e) => onChange(e.target.value)}placeholder={t("team.namePlaceholder", "Team name")}+ className={privateContentClassName}style={{ flex: 1, maxWidth: 300 }}autoFocusonKeyDown={(e) => {@@ -123,7 +125,7 @@ function TeamNameDisplay({return (<><Group gap="xs" align="center">- <Text fw={600} size="lg">+ <Text fw={600} size="lg" className={privateContentClassName}>{name}</Text>{isLeader && !isPersonal && (@@ -239,12 +241,23 @@ interface DismissibleAlertProps {message: string | null;color: string;onClose: () => void;+ className?: string;}-function DismissibleAlert({ message, color, onClose }: DismissibleAlertProps) {+function DismissibleAlert({+ message,+ color,+ onClose,+ className,+}: DismissibleAlertProps) {if (!message) return null;return (- <Alert color={color} onClose={onClose} withCloseButton>+ <Alert+ color={color}+ onClose={onClose}+ withCloseButton+ className={className}+ >{message}</Alert>);@@ -280,6 +293,7 @@ function InviteMemberForm({placeholder={t("team.invite.placeholder", "[email protected]")}value={email}onChange={(e) => onEmailChange(e.target.value)}+ className={privateContentClassName}style={{ flex: 1 }}requirederror={@@ -392,7 +406,7 @@ function TeamMemberRow({return (<Table.Tr><Table.Td>- <Group gap="xs" wrap="nowrap">+ <Group gap="xs" wrap="nowrap" className={privateContentClassName}><Avatar size={28} radius="xl" src={avatarUrl} alt="" color="blue">{member.username.charAt(0).toUpperCase()}</Avatar>@@ -402,7 +416,7 @@ function TeamMemberRow({</Group></Table.Td><Table.Td>- <Text size="sm" c="dimmed">+ <Text size="sm" c="dimmed" className={privateContentClassName}>{member.email}</Text></Table.Td>@@ -433,12 +447,18 @@ function PendingInvitationRow({return (<Table.Tr><Table.Td>- <Text size="sm" fw={500} c="dimmed" fs="italic">+ <Text+ size="sm"+ fw={500}+ c="dimmed"+ fs="italic"+ className={privateContentClassName}+ >{invitation.inviteeEmail.split("@")[0]}</Text></Table.Td><Table.Td>- <Text size="sm" c="dimmed">+ <Text size="sm" c="dimmed" className={privateContentClassName}>{invitation.inviteeEmail}</Text></Table.Td>@@ -876,6 +896,7 @@ const TeamSection: React.FC = () => {message={success}color="green"onClose={() => setSuccess(null)}+ className={privateContentClassName}/><InviteMemberFormdiff --git a/frontend/src/editor/core/components/annotation/shared/TextInputWithFont.tsx b/frontend/src/editor/core/components/annotation/shared/TextInputWithFont.tsxindex 1101bd2ed5..ee96d843f5 100644--- a/frontend/src/editor/core/components/annotation/shared/TextInputWithFont.tsx+++ b/frontend/src/editor/core/components/annotation/shared/TextInputWithFont.tsx@@ -11,6 +11,7 @@ import {import { SegmentedControl } from "@editor/ui/SegmentedControl";import { useTranslation } from "react-i18next";import { ColorPicker } from "@editor/components/annotation/shared/ColorPicker";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface TextInputWithFontProps {text: string;@@ -113,6 +114,7 @@ export const TextInputWithFont: React.FC<TextInputWithFontProps> = ({label={label}placeholder={placeholder}value={text}+ className={privateContentClassName}onChange={(e) => {onTextChange(e.target.value);onAnyChange?.();diff --git a/frontend/src/editor/core/components/easterEgg/brickGame/BrickGame.tsx b/frontend/src/editor/core/components/easterEgg/brickGame/BrickGame.tsxindex 35bcfc9bce..2bccb5e701 100644--- a/frontend/src/editor/core/components/easterEgg/brickGame/BrickGame.tsx+++ b/frontend/src/editor/core/components/easterEgg/brickGame/BrickGame.tsx@@ -17,6 +17,7 @@ import {} from "@editor/components/easterEgg/brickGame/brickGameEngine";import type { Box } from "@editor/components/easterEgg/brickGame/brickGameGeometry";import "@editor/components/easterEgg/brickGame/BrickGame.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface BrickGameProps {/** Where the mark flies in from, in client coordinates. */@@ -376,7 +377,7 @@ export default function BrickGame({ref={canvasRef}className={`brick-game-canvas${locked ? "" : " brick-game-canvas--aiming"- }`}+ } ${privateContentClassName}`}onPointerMove={handlePointerMove}onPointerDown={handlePointerDown}/>diff --git a/frontend/src/editor/core/components/fileEditor/FileEditor.tsx b/frontend/src/editor/core/components/fileEditor/FileEditor.tsxindex 9c8066baad..0d35523a9d 100644--- a/frontend/src/editor/core/components/fileEditor/FileEditor.tsx+++ b/frontend/src/editor/core/components/fileEditor/FileEditor.tsx@@ -281,6 +281,7 @@ const FileEditor = ({defaultValue_one: "Extracted {{count}} file from {{name}}",defaultValue_other: "Extracted {{count}} files from {{name}}",}),+ privateTitle: true,expandable: false,durationMs: 3500,});@@ -292,7 +293,9 @@ const FileEditor = ({"Failed to extract files from {{name}}",{ name: file.name },),+ privateTitle: true,body: result.errors.join("\n"),+ privateBody: true,expandable: true,durationMs: 3500,});@@ -304,6 +307,7 @@ const FileEditor = ({title: t("fileEditor.unzip.error", "Error unzipping {{name}}", {name: file.name,}),+ privateTitle: true,expandable: false,durationMs: 3500,});diff --git a/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.tsx b/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.tsxindex 98105c2d99..59fda2b940 100644--- a/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.tsx+++ b/frontend/src/editor/core/components/fileEditor/FileEditorThumbnail.tsx@@ -244,6 +244,7 @@ const FileEditorThumbnail = ({alert({alertType: "neutral",title: t("fileEditor.closedFile", "Closed {{name}}", { name: file.name }),+ privateTitle: true,expandable: false,durationMs: 3500,});@@ -277,6 +278,7 @@ const FileEditorThumbnail = ({body: t("fileEditor.couldNotSave", "Could not save {{name}}", {name: file.name,}),+ privateBody: true,expandable: true,});setShowCloseModal(false);@@ -289,6 +291,7 @@ const FileEditorThumbnail = ({title: t("fileEditor.savedAndClosed", "Saved and closed {{name}}", {name: file.name,}),+ privateTitle: true,expandable: false,durationMs: 3500,});@@ -377,6 +380,7 @@ const FileEditorThumbnail = ({title: t("fileEditor.unpinnedFile", "Unpinned {{name}}", {name: file.name,}),+ privateTitle: true,expandable: false,durationMs: 3000,});@@ -387,6 +391,7 @@ const FileEditorThumbnail = ({title: t("fileEditor.pinnedFile", "Pinned {{name}}", {name: file.name,}),+ privateTitle: true,expandable: false,durationMs: 3000,});@@ -454,6 +459,7 @@ const FileEditorThumbnail = ({title: t("fileEditor.unzipping", "Unzipping {{name}}", {name: file.name,}),+ privateTitle: true,expandable: false,durationMs: 2500,});diff --git a/frontend/src/editor/core/components/filesPage/DeleteFolderDialog.tsx b/frontend/src/editor/core/components/filesPage/DeleteFolderDialog.tsxindex 24c5cc82ab..a47decdd7b 100644--- a/frontend/src/editor/core/components/filesPage/DeleteFolderDialog.tsx+++ b/frontend/src/editor/core/components/filesPage/DeleteFolderDialog.tsx@@ -4,6 +4,7 @@ import { Alert, Checkbox, Group, Modal, Stack, Text } from "@mantine/core";import { Icon } from "@editor/ui/Icon";import { Button } from "@editor/ui/Button";import { folderKind, FolderRecord } from "@editor/types/folder";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface DeleteFolderDialogProps {opened: boolean;@@ -53,7 +54,7 @@ export function DeleteFolderDialog({size="md"><Stack gap="md">- <Text size="sm">+ <Text size="sm" className={privateContentClassName}>{isMount? t("filesPage.unmountFolderBody",diff --git a/frontend/src/editor/core/components/filesPage/DiskLinkBadge.tsx b/frontend/src/editor/core/components/filesPage/DiskLinkBadge.tsxindex 8f161d4183..e9261fed53 100644--- a/frontend/src/editor/core/components/filesPage/DiskLinkBadge.tsx+++ b/frontend/src/editor/core/components/filesPage/DiskLinkBadge.tsx@@ -4,6 +4,7 @@ import { Tooltip } from "@mantine/core";import { StirlingFileStub } from "@editor/types/fileContext";import { diskLinkState } from "@editor/services/diskLinkState";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/** Keeps a lost or diverged disk link on screen, where only a transient toast said so.* Silent when healthy or never from disk, so it always means trouble. */@@ -83,7 +84,16 @@ export function DiskLinkBadge({ file, compact = false }: DiskLinkBadgeProps) {};return (- <Tooltip label={config.tooltip} withinPortal multiline maw={300}>+ <Tooltip+ label={+ <PrivateContent enabled={state === "orphaned"}>+ {config.tooltip}+ </PrivateContent>+ }+ withinPortal+ multiline+ maw={300}+ >{/* Icon-only needs its own name, but aria-label is prohibited on a barespan, hence role="img". With the label visible it would shadow the text. */}<spandiff --git a/frontend/src/editor/core/components/filesPage/FileDetailsPanel.tsx b/frontend/src/editor/core/components/filesPage/FileDetailsPanel.tsxindex f0c0f85445..31a28b242d 100644--- a/frontend/src/editor/core/components/filesPage/FileDetailsPanel.tsx+++ b/frontend/src/editor/core/components/filesPage/FileDetailsPanel.tsx@@ -26,6 +26,8 @@ import {import { FileDetailsActions } from "@editor/components/filesPage/FileDetailsActions";import { getFileOrigin } from "@editor/components/filesPage/fileOrigin";import "@editor/components/filesPage/FilesPage.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FileDetailsPanelProps {/** Picker hosts choose a version without exposing workspace or library mutations. */@@ -186,7 +188,7 @@ export function FileDetailsPanel({{single ? (<><div- className={`files-page-details-thumb${compactVersions ? " is-compact" : ""}`}+ className={`files-page-details-thumb${compactVersions ? " is-compact" : ""} ${privateContentClassName}`}>{thumbnail ? (<img src={thumbnail} alt="" />@@ -206,9 +208,11 @@ export function FileDetailsPanel({flexWrap: "wrap",}}>- <h3 style={{ margin: 0, wordBreak: "break-word", flex: 1 }}>- {single.name}- </h3>+ <PrivateContent>+ <h3 style={{ margin: 0, wordBreak: "break-word", flex: 1 }}>+ {single.name}+ </h3>+ </PrivateContent>{ext && <span className="files-page-details-ext-tag">{ext}</span>}{(single.versionNumber ?? 1) > 1 && (<Badge size="sm" color="blue">@@ -256,11 +260,14 @@ export function FileDetailsPanel({<DetailFieldlabel={t("filesPage.field.folder", "Folder")}value={- selectedFolder- ? selectedFolder.name- : !single.folderId && getFileOrigin(single) === "local"- ? t("filesPage.recentFiles", "Recents")- : t("filesPage.allFiles", "Stirling library")+ selectedFolder ? (+ <PrivateContent>{selectedFolder.name}</PrivateContent>+ ) : !single.folderId &&+ getFileOrigin(single) === "local" ? (+ t("filesPage.recentFiles", "Recents")+ ) : (+ t("filesPage.allFiles", "Stirling library")+ )}/></div>diff --git a/frontend/src/editor/core/components/filesPage/FileGrid.tsx b/frontend/src/editor/core/components/filesPage/FileGrid.tsxindex 94b4f92440..1ab1bbaacc 100644--- a/frontend/src/editor/core/components/filesPage/FileGrid.tsx+++ b/frontend/src/editor/core/components/filesPage/FileGrid.tsx@@ -56,6 +56,7 @@ import type { FilesPageSortMode } from "@editor/contexts/FilesPageContext";import { OpenInNewWindowMenuItem } from "@editor/components/filesPage/OpenInNewWindowMenuItem";import { useLongPress } from "@editor/components/filesPage/useLongPress";import { useIsTouch } from "@editor/hooks/useIsMobile";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export type FilesPageViewMode = "grid" | "list";@@ -742,7 +743,7 @@ const FolderCard = React.memo(function FolderCard({e.dataTransfer.effectAllowed = "move";}}{...(selectionOnly ? {} : dropHandlers)}- className={`files-page-card is-folder${isDropTarget ? " is-drop-target" : ""}`}+ className={`files-page-card is-folder${isDropTarget ? " is-drop-target" : ""} ${privateContentClassName}`}onClick={onOpen}onContextMenu={(e) => {e.preventDefault();@@ -1286,7 +1287,7 @@ const FileCard = React.memo(function FileCard({}if (e.key === "Enter") onDoubleClick();}}- className={`files-page-card${isSelected ? " is-selected" : ""}${isInWorkspace ? " is-in-workspace" : ""}${locked ? " is-locked" : ""}`}+ className={`files-page-card${isSelected ? " is-selected" : ""}${isInWorkspace ? " is-in-workspace" : ""}${locked ? " is-locked" : ""} ${privateContentClassName}`}title={disabledReason ?? (locked ? lockedHint : undefined)}>{isInWorkspace && (@@ -1712,7 +1713,7 @@ const FolderRow = React.memo(function FolderRow({onKeyDown={(e) => {if (e.target === e.currentTarget && e.key === "Enter") onOpen();}}- className={`files-page-list-row${isDropTarget ? " is-drop-target" : ""}`}+ className={`files-page-list-row${isDropTarget ? " is-drop-target" : ""} ${privateContentClassName}`}>{selectionColumn && <span aria-hidden="true" />}@@ -1945,7 +1946,7 @@ const FileRow = React.memo(function FileRow({}if (e.key === "Enter") onOpen();}}- className={`files-page-list-row${isSelected ? " is-selected" : ""}${isInWorkspace ? " is-in-workspace" : ""}${locked ? " is-locked" : ""}`}+ className={`files-page-list-row${isSelected ? " is-selected" : ""}${isInWorkspace ? " is-in-workspace" : ""}${locked ? " is-locked" : ""} ${privateContentClassName}`}title={disabledReason ?? (locked ? lockedHint : undefined)}>{selectionColumn &&@@ -2108,7 +2109,7 @@ const DiskFileCard = React.memo(function DiskFileCard({const isPdf = extension === "PDF";return (<div- className={`files-page-card${locked ? " is-locked" : ""}${isSelected ? " is-selected" : ""}`}+ className={`files-page-card${locked ? " is-locked" : ""}${isSelected ? " is-selected" : ""} ${privateContentClassName}`}role="listitem"tabIndex={0}aria-label={@@ -2272,7 +2273,7 @@ const DiskFileRow = React.memo(function DiskFileRow({if (selectionOnly && !locked)actions.selectDiskFile(entry, event.shiftKey);}}- className={`files-page-list-row${locked ? " is-locked" : ""}${isSelected ? " is-selected" : ""}`}+ className={`files-page-list-row${locked ? " is-locked" : ""}${isSelected ? " is-selected" : ""} ${privateContentClassName}`}onDoubleClick={onOpen}onKeyDown={(e) => {if (e.key === " " && selectionOnly) {diff --git a/frontend/src/editor/core/components/filesPage/FileManagerView.tsx b/frontend/src/editor/core/components/filesPage/FileManagerView.tsxindex 3b84ac0df5..e8a0609593 100644--- a/frontend/src/editor/core/components/filesPage/FileManagerView.tsx+++ b/frontend/src/editor/core/components/filesPage/FileManagerView.tsx@@ -93,6 +93,8 @@ import {import { clearFilesPageReturnRoute } from "@editor/components/filesPage/filesPageReturnRoute";import { EDITOR_BASENAME } from "@editor/routes/editorBasename";import "@editor/components/filesPage/FilesPage.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export default function FileManagerView() {const { t } = useTranslation();@@ -1143,7 +1145,9 @@ export default function FileManagerView() {gap: "0.5rem",}}>- <span>{folders.error}</span>+ <PrivateContent>+ <span>{folders.error}</span>+ </PrivateContent><ActionIconsize="sm"variant="tertiary"@@ -1681,7 +1685,7 @@ function Breadcrumbs() {key={entry.id ?? "root"}onClick={() => openFolder(entry.id)}>- {entry.name}+ <PrivateContent>{entry.name}</PrivateContent></Menu.Item>))}</Menu.Dropdown>@@ -1700,7 +1704,7 @@ function Breadcrumbs() {<React.Fragment key={entry.id ?? "root"}><buttontype="button"- className={`files-page-breadcrumb${isLast ? " is-current" : ""}`}+ className={`files-page-breadcrumb${isLast ? " is-current" : ""} ${privateContentClassName}`}title={entry.name}onClick={() => openFolder(entry.id)}{...dropHandlers(entry.id)}diff --git a/frontend/src/editor/core/components/filesPage/FilenameSearch.tsx b/frontend/src/editor/core/components/filesPage/FilenameSearch.tsxindex 266deaec05..2cd790621b 100644--- a/frontend/src/editor/core/components/filesPage/FilenameSearch.tsx+++ b/frontend/src/editor/core/components/filesPage/FilenameSearch.tsx@@ -3,6 +3,7 @@ import { useRef, useState } from "react";import { useTranslation } from "react-i18next";import { ActionIcon } from "@editor/ui/ActionIcon";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The host owns the query so it survives switching between list and grid views. */export function FilenameSearch({@@ -56,6 +57,7 @@ export function FilenameSearch({><TextInputref={inputRef}+ className={privateContentClassName}data-autofocussize="sm"value={value}diff --git a/frontend/src/editor/core/components/filesPage/FolderAppearanceModal.tsx b/frontend/src/editor/core/components/filesPage/FolderAppearanceModal.tsxindex 4dddc13b88..2fd4f9a2e9 100644--- a/frontend/src/editor/core/components/filesPage/FolderAppearanceModal.tsx+++ b/frontend/src/editor/core/components/filesPage/FolderAppearanceModal.tsx@@ -4,6 +4,7 @@ import { Modal } from "@editor/ui/Modal";import { Button } from "@editor/ui/Button";import { FolderRecord } from "@editor/types/folder";import { FolderAppearancePicker } from "@editor/components/filesPage/FolderAppearancePicker";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface FolderAppearanceModalProps {/** The folder being restyled; null closes the modal. */@@ -34,7 +35,7 @@ export function FolderAppearanceModal({onClose={onClose}width="sm"title={t("filesPage.appearance.title", "Appearance")}- subtitle={folder?.name}+ subtitle={folder && <PrivateContent>{folder.name}</PrivateContent>}footer={<Button variant="secondary" onClick={onClose}>{t("filesPage.appearance.done", "Done")}diff --git a/frontend/src/editor/core/components/filesPage/FolderListRow.tsx b/frontend/src/editor/core/components/filesPage/FolderListRow.tsxindex 2709353e43..d1bce075a1 100644--- a/frontend/src/editor/core/components/filesPage/FolderListRow.tsx+++ b/frontend/src/editor/core/components/filesPage/FolderListRow.tsx@@ -5,6 +5,7 @@ import { getFileDate } from "@editor/utils/fileUtils";import { FolderThumbnail } from "@editor/components/filesPage/FolderThumbnail";import { FolderOriginBadge } from "@editor/components/filesPage/FolderOriginBadge";import { findFolderIcon } from "@editor/components/filesPage/folderIcons";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FolderListRowProps extends HTMLAttributes<HTMLDivElement> {folder: FolderRecord;@@ -43,6 +44,7 @@ export function FolderListRow({iconGlyph={findFolderIcon(folder.icon)?.glyph}/><span+ className={privateContentClassName}style={{display: "flex",flexDirection: "column",diff --git a/frontend/src/editor/core/components/filesPage/FolderNameDialog.tsx b/frontend/src/editor/core/components/filesPage/FolderNameDialog.tsxindex f1a52accbe..8b56738a39 100644--- a/frontend/src/editor/core/components/filesPage/FolderNameDialog.tsx+++ b/frontend/src/editor/core/components/filesPage/FolderNameDialog.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Alert, Group, Modal, Stack, TextInput } from "@mantine/core";import { Icon } from "@editor/ui/Icon";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FolderNameDialogProps {opened: boolean;@@ -72,6 +73,7 @@ export function FolderNameDialog({<Stack gap="sm"><TextInputautoFocus+ className={privateContentClassName}value={value}onChange={(e) => setValue(e.currentTarget.value)}placeholder={t("filesPage.folderName.placeholder", "Folder name")}diff --git a/frontend/src/editor/core/components/filesPage/FolderTreeSidebar.tsx b/frontend/src/editor/core/components/filesPage/FolderTreeSidebar.tsxindex 3a527a016a..2bf2711944 100644--- a/frontend/src/editor/core/components/filesPage/FolderTreeSidebar.tsx+++ b/frontend/src/editor/core/components/filesPage/FolderTreeSidebar.tsx@@ -24,6 +24,7 @@ import {import { useDropTarget } from "@editor/components/filesPage/useDropTarget";import "@editor/components/filesPage/FolderTreeSidebar.css";import { useOpenFolder } from "@editor/components/filesPage/useOpenFolder";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Bound recursion to protect rendering from corrupted folder hierarchies. */const MAX_TREE_DEPTH = 50;@@ -357,7 +358,7 @@ function TreeNodeRow({<FolderThumbnail color={node.folder.color} size="tree" /></span><MiddleTruncated- className="files-page-tree-name"+ className={`files-page-tree-name ${privateContentClassName}`}text={node.folder.name}/>{hasChildren && (diff --git a/frontend/src/editor/core/components/filesPage/LibraryFilePicker.tsx b/frontend/src/editor/core/components/filesPage/LibraryFilePicker.tsxindex 32b2608a3c..aa62f6fedc 100644--- a/frontend/src/editor/core/components/filesPage/LibraryFilePicker.tsx+++ b/frontend/src/editor/core/components/filesPage/LibraryFilePicker.tsx@@ -56,6 +56,7 @@ import {} from "@editor/styles/zIndex";import "@editor/components/filesPage/FilesPage.css";import "@editor/components/filesPage/LibraryFilePicker.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface Props {supportedFormats?: string[];@@ -478,6 +479,7 @@ export function LibraryFilePicker({alertType: "error",title: t("filePicker.errorTitle", "Couldn't add files"),body: errors.join("\n"),+ privateBody: true,expandable: false,durationMs: 5000,});@@ -644,7 +646,7 @@ export function LibraryFilePicker({}}role="alert">- {error ?? drive.error}+ <PrivateContent>{error ?? drive.error}</PrivateContent></Alert>)}<LibraryTabs@@ -670,7 +672,7 @@ export function LibraryFilePicker({className="files-page-breadcrumb"onClick={() => openFolder(folder.id)}>- {folder.name}+ <PrivateContent>{folder.name}</PrivateContent></button></span>),diff --git a/frontend/src/editor/core/components/filesPage/MoveToFolderDialog.tsx b/frontend/src/editor/core/components/filesPage/MoveToFolderDialog.tsxindex e06c3c7a26..44b03cc914 100644--- a/frontend/src/editor/core/components/filesPage/MoveToFolderDialog.tsx+++ b/frontend/src/editor/core/components/filesPage/MoveToFolderDialog.tsx@@ -1,4 +1,4 @@-import React, { useMemo, useState } from "react";+import React, { type ReactNode, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import {Alert,@@ -13,6 +13,7 @@ import { Icon } from "@editor/ui/Icon";import { Button } from "@editor/ui/Button";import { ActionIcon } from "@editor/ui/ActionIcon";import { FolderId, FolderRecord, ROOT_FOLDER_ID } from "@editor/types/folder";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface MoveToFolderDialogProps {opened: boolean;@@ -135,7 +136,7 @@ export function MoveToFolderDialog({{treeOrder.map((folder) => (<FolderPickkey={folder.id}- label={folder.name}+ label={<PrivateContent>{folder.name}</PrivateContent>}color={folder.color}isActive={target === folder.id}disabled={blocked.has(folder.id)}@@ -293,7 +294,7 @@ export function MoveToFolderDialog({}interface FolderPickProps {- label: string;+ label: ReactNode;color?: string;isActive: boolean;disabled: boolean;diff --git a/frontend/src/editor/core/components/filesPage/RestoreOriginalsDialog.tsx b/frontend/src/editor/core/components/filesPage/RestoreOriginalsDialog.tsxindex 748a729e91..189037f613 100644--- a/frontend/src/editor/core/components/filesPage/RestoreOriginalsDialog.tsx+++ b/frontend/src/editor/core/components/filesPage/RestoreOriginalsDialog.tsx@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";import { Group, Modal, Stack, Text } from "@mantine/core";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface RestoreOriginalsDialogProps {opened: boolean;@@ -36,7 +37,10 @@ export function RestoreOriginalsDialog({size="md"><Stack gap="md">- <Text size="sm">+ <Text+ size="sm"+ className={fileName ? privateContentClassName : undefined}+ >{fileName? t("filesPage.processing.revertConfirmFile", {name: fileName,diff --git a/frontend/src/editor/core/components/filesPage/VersionTimeline.tsx b/frontend/src/editor/core/components/filesPage/VersionTimeline.tsxindex f07896a94b..17d53d1048 100644--- a/frontend/src/editor/core/components/filesPage/VersionTimeline.tsx+++ b/frontend/src/editor/core/components/filesPage/VersionTimeline.tsx@@ -1,4 +1,4 @@-import { useMemo, useState } from "react";+import { type ReactNode, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { Badge, Group, Menu, Text } from "@mantine/core";import { Button } from "@editor/ui/Button";@@ -9,13 +9,14 @@ import { toolOperationLabel } from "@editor/utils/toolOperationLabel";import { StirlingFileStub } from "@editor/types/fileContext";import { formatFileSize, getFileDate } from "@editor/utils/fileUtils";import { downloadFileFromStorage } from "@editor/utils/downloadUtils";+import { PrivateContent } from "@editor/components/shared/PrivateContent";export function DetailField({label,value,}: {label: string;- value: string;+ value: ReactNode;}) {return (<div@@ -314,9 +315,11 @@ export function VersionTimeline({{nameChanged? `${t("filesPage.renamed", "Renamed")}: `: `${t("filesPage.file", "File")}: `}- <span style={{ color: "var(--c-text)", fontWeight: 500 }}>- {v.name}- </span>+ <PrivateContent>+ <span style={{ color: "var(--c-text)", fontWeight: 500 }}>+ {v.name}+ </span>+ </PrivateContent></Text>)}</div>diff --git a/frontend/src/editor/core/components/mobileSign/MobileDrawCanvas.tsx b/frontend/src/editor/core/components/mobileSign/MobileDrawCanvas.tsxindex 17d58fc3e6..f5469ae80f 100644--- a/frontend/src/editor/core/components/mobileSign/MobileDrawCanvas.tsx+++ b/frontend/src/editor/core/components/mobileSign/MobileDrawCanvas.tsx@@ -6,6 +6,7 @@ import {useRef,} from "react";import { useTranslation } from "react-i18next";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** Touch-first signature canvas for the phone `/mobile-sign` page.@@ -218,6 +219,7 @@ export const MobileDrawCanvas = forwardRef<return (<canvasref={canvasRef}+ className={privateContentClassName}onPointerDown={handlePointerDown}onPointerMove={handlePointerMove}onPointerUp={endStroke}diff --git a/frontend/src/editor/core/components/notifications/NotificationItem.tsx b/frontend/src/editor/core/components/notifications/NotificationItem.tsxindex 2fed95c05f..f78ed8d0e1 100644--- a/frontend/src/editor/core/components/notifications/NotificationItem.tsx+++ b/frontend/src/editor/core/components/notifications/NotificationItem.tsx@@ -20,6 +20,7 @@ import type {AppNotification,NotificationActionOffer,} from "@editor/services/notifications";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** An action that asked for a password, with everything running it needs. */export interface PasswordPrompt {@@ -197,7 +198,11 @@ export function NotificationItem({{summary && <span className="notification-bell__detail">{summary}</span>}- {note && <span className="notification-bell__note">{note}</span>}+ {note && (+ <span className={`notification-bell__note ${privateContentClassName}`}>+ {note}+ </span>+ )}{/* The menu is not gated on a button existing: a row with no action still owns its log. */}{(primary || notification.detail) && (diff --git a/frontend/src/editor/core/components/onboarding/slides/FirstLoginSlide.tsx b/frontend/src/editor/core/components/onboarding/slides/FirstLoginSlide.tsxindex de9f4278c4..8d006c9c05 100644--- a/frontend/src/editor/core/components/onboarding/slides/FirstLoginSlide.tsx+++ b/frontend/src/editor/core/components/onboarding/slides/FirstLoginSlide.tsx@@ -9,6 +9,7 @@ import { UNIFIED_CIRCLE_CONFIG } from "@editor/components/onboarding/slides/unifimport { accountService } from "@editor/services/accountService";import { alert as showToast } from "@editor/components/toast";import styles from "@editor/components/onboarding/InitialOnboardingModal/InitialOnboardingModal.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FirstLoginSlideProps {username: string;@@ -137,7 +138,7 @@ function FirstLoginForm({<Text size="sm" fw={500}>{t("firstLogin.loggedInAs", "Logged in as")}:{" "}- <strong>{username}</strong>+ <strong className={privateContentClassName}>{username}</strong></Text>{error && (diff --git a/frontend/src/editor/core/components/onboarding/slides/MFASetupSlide.tsx b/frontend/src/editor/core/components/onboarding/slides/MFASetupSlide.tsxindex 40ae574c81..860278f371 100644--- a/frontend/src/editor/core/components/onboarding/slides/MFASetupSlide.tsx+++ b/frontend/src/editor/core/components/onboarding/slides/MFASetupSlide.tsx@@ -27,6 +27,7 @@ import { BASE_PATH, withBasePath } from "@editor/constants/app";import styles from "@editor/components/onboarding/InitialOnboardingModal/InitialOnboardingModal.module.css";import { MfaSetupResponse } from "@editor/responses/Mfa/MfaResponse";import i18n from "@editor/i18n";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface MFASetupSlideProps {onMfaSetupComplete?: () => void;@@ -135,7 +136,7 @@ function MFASetupContent({ onMfaSetupComplete }: MFASetupSlideProps) {const isReady = Boolean(mfaSetupData);const mfaSetupContent = mfaSetupData ? (<div className={styles.mfaSetupGrid}>- <Box className={styles.mfaQrCard}>+ <Box className={`${styles.mfaQrCard} ${privateContentClassName}`}><QRCodeSVGvalue={mfaSetupData.otpauthUri ?? ""}size={168}@@ -177,6 +178,7 @@ function MFASetupContent({ onMfaSetupComplete }: MFASetupSlideProps) {{t("onboarding.mfa.setupKey", "Setup key (manual entry)")}</Text><TextInput+ className={privateContentClassName}value={mfaSetupData.secret ?? ""}readOnlyvariant="filled"@@ -221,6 +223,7 @@ function MFASetupContent({ onMfaSetupComplete }: MFASetupSlideProps) {<form onSubmit={handleEnableMfa} className={styles.mfaForm}><Stack gap="sm"><TextInput+ className={privateContentClassName}id="mfa-setup-code"label={t("onboarding.mfa.authenticationCode",diff --git a/frontend/src/editor/core/components/pageTracks/TrackPageTile.tsx b/frontend/src/editor/core/components/pageTracks/TrackPageTile.tsxindex 5717b1825c..b5e1e09dcf 100644--- a/frontend/src/editor/core/components/pageTracks/TrackPageTile.tsx+++ b/frontend/src/editor/core/components/pageTracks/TrackPageTile.tsx@@ -250,7 +250,6 @@ function TrackPageTileImpl({className={[styles.thumb,quarterTurn ? styles.thumbQuarterTurn : "",- "ph-no-capture",].filter(Boolean).join(" ")}diff --git a/frontend/src/editor/core/components/pageTracks/TrackPageViewModal.tsx b/frontend/src/editor/core/components/pageTracks/TrackPageViewModal.tsxindex ead0ab2524..9c45f62d7a 100644--- a/frontend/src/editor/core/components/pageTracks/TrackPageViewModal.tsx+++ b/frontend/src/editor/core/components/pageTracks/TrackPageViewModal.tsx@@ -147,7 +147,6 @@ export function TrackPageViewModal({className={[styles.pageViewImage,quarterTurn ? styles.pageViewQuarter : "",- "ph-no-capture",].filter(Boolean).join(" ")}diff --git a/frontend/src/editor/core/components/shared/BulkUploadToServerModal.tsx b/frontend/src/editor/core/components/shared/BulkUploadToServerModal.tsxindex d097c87ae3..6a488fcbee 100644--- a/frontend/src/editor/core/components/shared/BulkUploadToServerModal.tsx+++ b/frontend/src/editor/core/components/shared/BulkUploadToServerModal.tsx@@ -11,6 +11,7 @@ import { uploadHistoryChains } from "@editor/services/serverStorageUpload";import { fileStorage } from "@editor/services/fileStorage";import { useFileActions } from "@editor/contexts/FileContext";import type { FileId } from "@editor/types/file";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface BulkUploadToServerModalProps {opened: boolean;@@ -132,7 +133,7 @@ const BulkUploadToServerModal: React.FC<BulkUploadToServerModalProps> = ({})}</Text>{displayNames.length > 0 && (- <Text size="xs" c="dimmed">+ <Text size="xs" c="dimmed" className={privateContentClassName}>{displayNames.join(", ")}{fileNames.length > displayNames.length? t("storageUpload.more", " +{{count}} more", {diff --git a/frontend/src/editor/core/components/shared/DiskConflictModal.tsx b/frontend/src/editor/core/components/shared/DiskConflictModal.tsxindex 851b024786..5c9f02c888 100644--- a/frontend/src/editor/core/components/shared/DiskConflictModal.tsx+++ b/frontend/src/editor/core/components/shared/DiskConflictModal.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Button } from "@editor/ui/Button";import { Z_INDEX_OVER_FULLSCREEN_SURFACE } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface DiskConflictModalProps {opened: boolean;@@ -37,7 +38,7 @@ export function DiskConflictModal({zIndex={Z_INDEX_OVER_FULLSCREEN_SURFACE}><Stack gap="md">- <Text fw={600} ta="center">+ <Text fw={600} ta="center" className={privateContentClassName}>{fileName}</Text><Text c="dimmed">diff --git a/frontend/src/editor/core/components/shared/EditableSecretField.tsx b/frontend/src/editor/core/components/shared/EditableSecretField.tsxindex 8101ceee28..c296d7693e 100644--- a/frontend/src/editor/core/components/shared/EditableSecretField.tsx+++ b/frontend/src/editor/core/components/shared/EditableSecretField.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { ActionIcon } from "@editor/ui/ActionIcon";import { InfoTooltip } from "@editor/ui/InfoTooltip";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface EditableSecretFieldProps {label?: string;description?: string;@@ -108,6 +109,7 @@ export default function EditableSecretField({) : isEditing ? (// Edit mode: normal password input<PasswordInput+ className={privateContentClassName}id={fieldId}ref={inputRef}value={tempValue}@@ -124,6 +126,7 @@ export default function EditableSecretField({) : (// Normal password input: empty or user typing<PasswordInput+ className={privateContentClassName}id={fieldId}value={value}onChange={(e) => onChange(e.currentTarget.value)}diff --git a/frontend/src/editor/core/components/shared/EncryptedPdfUnlockModal.tsx b/frontend/src/editor/core/components/shared/EncryptedPdfUnlockModal.tsxindex 07acf916e2..b2d6293977 100644--- a/frontend/src/editor/core/components/shared/EncryptedPdfUnlockModal.tsx+++ b/frontend/src/editor/core/components/shared/EncryptedPdfUnlockModal.tsx@@ -6,6 +6,7 @@ import { ActionIcon } from "@editor/ui/ActionIcon";import { Icon } from "@editor/ui/Icon";import { useTranslation } from "react-i18next";import { Z_INDEX_OVER_FULLSCREEN_SURFACE } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface EncryptedPdfUnlockModalProps {opened: boolean;@@ -133,6 +134,7 @@ const EncryptedPdfUnlockModal = ({</Text>)}<PasswordInput+ className={privateContentClassName}label={ownerUnlock? t("encryptedPdfUnlock.ownerPassword", "Permissions password")diff --git a/frontend/src/editor/core/components/shared/FilePickerModal.tsx b/frontend/src/editor/core/components/shared/FilePickerModal.tsxindex d8ba1d7652..251c7941dc 100644--- a/frontend/src/editor/core/components/shared/FilePickerModal.tsx+++ b/frontend/src/editor/core/components/shared/FilePickerModal.tsx@@ -17,6 +17,7 @@ import { FileId } from "@editor/types/file";import type { StoredStirlingFileRecord } from "@editor/services/fileStorage";import { useFileActionTerminology } from "@editor/hooks/useFileActionTerminology";import { usePdfAccess } from "@editor/hooks/usePdfAccess";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type StoredFileItem = Partial<StoredStirlingFileRecord> & {id: FileId;@@ -113,7 +114,7 @@ function StoredFileCard({ file, selected, onToggle }: StoredFileCardProps) {}}onClick={onToggle}>- <Group gap="sm" align="flex-start">+ <Group gap="sm" align="flex-start" className={privateContentClassName}><Checkboxchecked={selected}onChange={onToggle}diff --git a/frontend/src/editor/core/components/shared/FileSelectorPicker.tsx b/frontend/src/editor/core/components/shared/FileSelectorPicker.tsxindex 59e942670a..b3d5173a01 100644--- a/frontend/src/editor/core/components/shared/FileSelectorPicker.tsx+++ b/frontend/src/editor/core/components/shared/FileSelectorPicker.tsx@@ -30,6 +30,7 @@ import {import { alert } from "@editor/components/toast";import styles from "@editor/components/shared/FileSelectorPicker.module.css";import "@editor/components/shared/FileSidebarFileItem.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const LS_TAB = "filePicker.tab";const LS_SORT = "filePicker.sort";@@ -508,7 +509,7 @@ export function FileSelectorPicker({<div className={styles.searchRow}><input- className={styles.searchInput}+ className={`${styles.searchInput} ${privateContentClassName}`}type="search"placeholder={t("fileSelectorPicker.search", "Filter files…")}value={searchQuery}@@ -553,7 +554,10 @@ export function FileSelectorPicker({}><div className={styles.fileItemContent}>- <span className={styles.fileName} title={stub.name}>+ <span+ className={`${styles.fileName} ${privateContentClassName}`}+ title={stub.name}+ >{truncateCenter(stub.name, 48)}</span>{meta && <span className={styles.fileMeta}>{meta}</span>}@@ -568,7 +572,7 @@ export function FileSelectorPicker({hoveredThumbnail &&createPortal(<div- className="file-sidebar-thumb-tooltip"+ className={`file-sidebar-thumb-tooltip ${privateContentClassName}`}style={{top: hoveredStub.rect.top + hoveredStub.rect.height / 2,left: hoveredStub.rect.left - 170,diff --git a/frontend/src/editor/core/components/shared/FileSidebarFileItem.tsx b/frontend/src/editor/core/components/shared/FileSidebarFileItem.tsxindex 38d963e837..3c45613bf7 100644--- a/frontend/src/editor/core/components/shared/FileSidebarFileItem.tsx+++ b/frontend/src/editor/core/components/shared/FileSidebarFileItem.tsx@@ -17,6 +17,7 @@ import { useFileActionIcons } from "@editor/hooks/useFileActionIcons";import { useFileActionTerminology } from "@editor/hooks/useFileActionTerminology";import { formatFileSize, IMAGE_EXTENSIONS } from "@editor/utils/fileUtils";import "@editor/components/shared/FileSidebarFileItem.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function getFileExtension(name: string): string {const parts = name.split(".");@@ -336,7 +337,7 @@ export const FileItem = React.memo(function FileItem({</div><div className="file-sidebar-file-info"><span- className={`file-sidebar-file-name${isSelected ? " selected" : ""}`}+ className={`file-sidebar-file-name${isSelected ? " selected" : ""} ${privateContentClassName}`}>{name}</span>@@ -452,7 +453,11 @@ export const FileItem = React.memo(function FileItem({{/* Rows truncate long names; the menu header is where the wholename (and the size the row has no space for) is readable. */}<Menu.Label className="file-sidebar-kebab-header">- <span className="file-sidebar-kebab-header-name">{name}</span>+ <span+ className={`file-sidebar-kebab-header-name ${privateContentClassName}`}+ >+ {name}+ </span><span className="file-sidebar-kebab-header-meta">{metaLine}</span>@@ -598,7 +603,7 @@ export const FileItem = React.memo(function FileItem({resolvedThumbnail &&createPortal(<div- className="file-sidebar-thumb-tooltip"+ className={`file-sidebar-thumb-tooltip ${privateContentClassName}`}style={{ top: thumbPos.top, left: thumbPos.left }}><imgdiff --git a/frontend/src/editor/core/components/shared/FileUploadButton.tsx b/frontend/src/editor/core/components/shared/FileUploadButton.tsxindex 2d11b7db4b..9fedffec4b 100644--- a/frontend/src/editor/core/components/shared/FileUploadButton.tsx+++ b/frontend/src/editor/core/components/shared/FileUploadButton.tsx@@ -2,6 +2,7 @@ import { useRef } from "react";import { useTranslation } from "react-i18next";import { FilePicker } from "@editor/ui/FilePicker";import type { ButtonVariant } from "@editor/ui/Button";+import { PrivateContent } from "@editor/components/shared/PrivateContent";// Accept both shared DS variants and the legacy Mantine variant names that// existing callers still pass, mapping the latter onto the DS equivalents.@@ -61,7 +62,11 @@ const FileUploadButton = ({variant={resolveVariant(variant)}fullWidth={fullWidth}>- {file ? file.name : placeholder || defaultPlaceholder}+ {file ? (+ <PrivateContent>{file.name}</PrivateContent>+ ) : (+ placeholder || defaultPlaceholder+ )}</FilePicker>);};diff --git a/frontend/src/editor/core/components/shared/FirstLoginModal.tsx b/frontend/src/editor/core/components/shared/FirstLoginModal.tsxindex 97013c2ca9..08d6361ea1 100644--- a/frontend/src/editor/core/components/shared/FirstLoginModal.tsx+++ b/frontend/src/editor/core/components/shared/FirstLoginModal.tsx@@ -7,6 +7,7 @@ import { Icon } from "@editor/ui/Icon";import { accountService } from "@editor/services/accountService";import { alert } from "@editor/components/toast";import { Z_INDEX_OVER_FULLSCREEN_SURFACE } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FirstLoginModalProps {opened: boolean;@@ -142,7 +143,7 @@ export default function FirstLoginModal({<Text size="sm" fw={500}>{t("firstLogin.loggedInAs", "Logged in as")}:{" "}- <strong>{username}</strong>+ <strong className={privateContentClassName}>{username}</strong></Text>{error && (diff --git a/frontend/src/editor/core/components/shared/MobileTransferModal.tsx b/frontend/src/editor/core/components/shared/MobileTransferModal.tsxindex 991082bf33..742314f8bb 100644--- a/frontend/src/editor/core/components/shared/MobileTransferModal.tsx+++ b/frontend/src/editor/core/components/shared/MobileTransferModal.tsx@@ -4,6 +4,7 @@ import { QRCodeSVG } from "qrcode.react";import { Icon } from "@editor/ui/Icon";import { Z_INDEX_OVER_FILE_MANAGER_MODAL } from "@editor/styles/zIndex";import { useMobileTransferSession } from "@editor/hooks/useMobileTransferSession";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** The QR modal shell every phone-to-desktop transfer feature shares: session@@ -114,6 +115,7 @@ export default function MobileTransferModal({}}><Box+ className={privateContentClassName}style={{padding: "1.5rem",background: "white",@@ -139,6 +141,7 @@ export default function MobileTransferModal({<Textsize="xs"c="dimmed"+ className={privateContentClassName}style={{wordBreak: "break-all",textAlign: "center",diff --git a/frontend/src/editor/core/components/shared/PrivateContent.stories.tsx b/frontend/src/editor/core/components/shared/PrivateContent.stories.tsxindex e30b0ab5da..575c897762 100644--- a/frontend/src/editor/core/components/shared/PrivateContent.stories.tsx+++ b/frontend/src/editor/core/components/shared/PrivateContent.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";import { PrivateContent } from "@editor/components/shared/PrivateContent";-/** Layout-invisible wrapper that tags sensitive content with 'ph-no-capture' to exclude it from analytics. */+/** Layout-invisible wrapper that keeps sensitive content out of analytics. Clicks on it are still sent as events, without its text. */const meta: Meta<typeof PrivateContent> = {title: "Shared/PrivateContent",component: PrivateContent,diff --git a/frontend/src/editor/core/components/shared/PrivateContent.tsx b/frontend/src/editor/core/components/shared/PrivateContent.tsxindex 270fe544ad..2765e85469 100644--- a/frontend/src/editor/core/components/shared/PrivateContent.tsx+++ b/frontend/src/editor/core/components/shared/PrivateContent.tsx@@ -1,12 +1,15 @@import React from "react";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface PrivateContentProps extends React.HTMLAttributes<HTMLSpanElement> {children: React.ReactNode;+ /** False renders the children unwrapped, for content that is only sometimes+ * the user's. Undefined counts as true, so coerce an optional flag. */+ enabled?: boolean;}/*** Wrapper component for content that should not be captured by analytics tools.- * Currently applies the 'ph-no-capture' className to prevent PostHog capture.** Uses `display: contents` to be layout-invisible - the wrapper exists in the DOM* for analytics filtering, but doesn't affect layout, flexbox, grid, or styling.@@ -25,11 +28,16 @@ interface PrivateContentProps extends React.HTMLAttributes<HTMLSpanElement> {*/export const PrivateContent: React.FC<PrivateContentProps> = ({children,+ enabled = true,className = "",style,...props}) => {- const combinedClassName = `ph-no-capture${className ? ` ${className}` : ""}`;+ if (!enabled) return <>{children}</>;++ const combinedClassName = className+ ? `${privateContentClassName} ${className}`+ : privateContentClassName;const combinedStyle = { display: "contents" as const, ...style };return (diff --git a/frontend/src/editor/core/components/shared/RenameFileDialog.tsx b/frontend/src/editor/core/components/shared/RenameFileDialog.tsxindex 71265a3da7..823119281e 100644--- a/frontend/src/editor/core/components/shared/RenameFileDialog.tsx+++ b/frontend/src/editor/core/components/shared/RenameFileDialog.tsx@@ -7,6 +7,7 @@ import {ILLEGAL_FILE_NAME_CHARS,splitFileName,} from "@editor/utils/fileUtils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface RenameFileDialogProps {opened: boolean;@@ -90,6 +91,7 @@ export function RenameFileDialog({<Stack gap="sm"><TextInputautoFocus+ className={privateContentClassName}value={value}onChange={(e) => setValue(e.currentTarget.value)}onFocus={(e) => e.currentTarget.select()}diff --git a/frontend/src/editor/core/components/shared/ShareFileModal.tsx b/frontend/src/editor/core/components/shared/ShareFileModal.tsxindex b4744f48b1..9d9115c86c 100644--- a/frontend/src/editor/core/components/shared/ShareFileModal.tsx+++ b/frontend/src/editor/core/components/shared/ShareFileModal.tsx@@ -23,6 +23,7 @@ import { uploadHistoryChain } from "@editor/services/serverStorageUpload";import { fileStorage } from "@editor/services/fileStorage";import { useFileActions } from "@editor/contexts/FileContext";import type { FileId } from "@editor/types/file";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface ShareFileModalProps {opened: boolean;@@ -218,7 +219,8 @@ const ShareFileModal: React.FC<ShareFileModalProps> = ({)}</Text><Text size="sm" c="dimmed">- {t("storageShare.fileLabel", "File")}: {file.name}+ {t("storageShare.fileLabel", "File")}:{" "}+ <PrivateContent>{file.name}</PrivateContent></Text></Stack></Paper>diff --git a/frontend/src/editor/core/components/shared/ShareManagementModal.tsx b/frontend/src/editor/core/components/shared/ShareManagementModal.tsxindex 2362f517b4..572fda750a 100644--- a/frontend/src/editor/core/components/shared/ShareManagementModal.tsx+++ b/frontend/src/editor/core/components/shared/ShareManagementModal.tsx@@ -31,6 +31,7 @@ import { useAppConfig } from "@editor/contexts/AppConfigContext";import type { StirlingFileStub } from "@editor/types/fileContext";import { fileStorage } from "@editor/services/fileStorage";import { useFileActions } from "@editor/contexts/FileContext";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ShareLinkResponse {token: string;@@ -186,7 +187,7 @@ function ShareModalIntro({ fileName }: { fileName: string }) {</Text><Text size="sm">{t("storageShare.fileLabel", "File")}:{" "}- <Text span fw={600}>+ <Text span fw={600} className={privateContentClassName}>{fileName}</Text></Text>@@ -301,6 +302,7 @@ function AddUserForm({<Group align="flex-end" gap="sm" wrap="nowrap"><TextInputstyle={{ flex: 1 }}+ className={privateContentClassName}label={t("storageShare.usernameLabel", "Username or email")}placeholder={t("storageShare.usernamePlaceholder",@@ -388,7 +390,9 @@ function SharedUserRow({return (<Group justify="space-between" align="flex-start"><Stack gap={2}>- <Text size="sm">{user.username}</Text>+ <Text size="sm" className={privateContentClassName}>+ {user.username}+ </Text><CommenterHint role={user.accessRole} /></Stack><Group gap="xs" align="center">@@ -556,6 +560,7 @@ function ShareLinkItem({<TextInputreadOnlyvalue={url}+ className={privateContentClassName}label={t("storageShare.linkLabel", "Share link")}rightSection={<Button@@ -674,7 +679,10 @@ function ShareActivityEntry({ entry }: { entry: ShareLinkAccessResponse }) {? new Date(entry.accessedAt).toLocaleString(): t("unknown", "Unknown")}</Text>- <Text size="sm">+ <Text+ size="sm"+ className={entry.username ? privateContentClassName : undefined}+ >{entry.username || t("storageShare.unknownUser", "Unknown user")}</Text></Stack>diff --git a/frontend/src/editor/core/components/shared/UploadToServerModal.tsx b/frontend/src/editor/core/components/shared/UploadToServerModal.tsxindex 47468937bb..be6c1ab996 100644--- a/frontend/src/editor/core/components/shared/UploadToServerModal.tsx+++ b/frontend/src/editor/core/components/shared/UploadToServerModal.tsx@@ -11,6 +11,7 @@ import { uploadHistoryChain } from "@editor/services/serverStorageUpload";import { fileStorage } from "@editor/services/fileStorage";import { useFileActions } from "@editor/contexts/FileContext";import type { FileId } from "@editor/types/file";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface UploadToServerModalProps {opened: boolean;@@ -102,7 +103,8 @@ const UploadToServerModal: React.FC<UploadToServerModalProps> = ({)}</Text><Text size="sm" c="dimmed">- {t("storageUpload.fileLabel", "File")}: {file.name}+ {t("storageUpload.fileLabel", "File")}:{" "}+ <PrivateContent>{file.name}</PrivateContent></Text><Text size="xs" c="dimmed">{t(diff --git a/frontend/src/editor/core/components/shared/UserSelector.tsx b/frontend/src/editor/core/components/shared/UserSelector.tsxindex 8ef0e78a1b..c8b46b1219 100644--- a/frontend/src/editor/core/components/shared/UserSelector.tsx+++ b/frontend/src/editor/core/components/shared/UserSelector.tsx@@ -10,6 +10,7 @@ import { fetchUsers } from "@editor/api/users";import { useAuth } from "@editor/auth/UseSession";import { qk } from "@editor/query/keys";import { Z_INDEX_OVER_FILE_MANAGER_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface UserSelectorProps {value: number[];@@ -166,7 +167,7 @@ const UserSelector = ({return (<labelkey={id}- className={styles.card}+ className={`${styles.card} ${privateContentClassName}`}data-selected={selected}><span className={styles.avatar} aria-hidden="true">diff --git a/frontend/src/editor/core/components/shared/ZipWarningModal.tsx b/frontend/src/editor/core/components/shared/ZipWarningModal.tsxindex eb1ae2f8c0..036cb1982d 100644--- a/frontend/src/editor/core/components/shared/ZipWarningModal.tsx+++ b/frontend/src/editor/core/components/shared/ZipWarningModal.tsx@@ -3,6 +3,7 @@ import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import { CSSProperties } from "react";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ZipWarningModalProps {opened: boolean;@@ -45,7 +46,7 @@ const ZipWarningModal = ({size={WARNING_ICON_SIZE}style={WARNING_ICON_STYLE}/>- <Text size="md" fw={300}>+ <Text size="md" fw={300} className={privateContentClassName}>{zipFileName}</Text><Text size="lg" fw={500}>diff --git a/frontend/src/editor/core/components/shared/config/configSections/ProviderCard.tsx b/frontend/src/editor/core/components/shared/config/configSections/ProviderCard.tsxindex 6ff5d63209..7ac9a57405 100644--- a/frontend/src/editor/core/components/shared/config/configSections/ProviderCard.tsx+++ b/frontend/src/editor/core/components/shared/config/configSections/ProviderCard.tsx@@ -22,6 +22,7 @@ import {} from "@editor/components/shared/config/configSections/providerDefinitions";import { Icon, isIconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ProviderCardProps {provider: Provider;isConfigured: boolean;@@ -129,6 +130,7 @@ export default function ProviderCard({case "textarea":return (<Textarea+ className={privateContentClassName}key={field.key}label={<SettingsFieldLabel info={field.description}>@@ -166,6 +168,7 @@ export default function ProviderCard({return (<TagsInput+ className={privateContentClassName}key={field.key}label={<SettingsFieldLabel info={field.description}>@@ -183,6 +186,7 @@ export default function ProviderCard({default:return (<TextInput+ className={privateContentClassName}key={field.key}label={<SettingsFieldLabel info={field.description}>diff --git a/frontend/src/editor/core/components/shared/config/configSections/preferences/AccountCards.tsx b/frontend/src/editor/core/components/shared/config/configSections/preferences/AccountCards.tsxindex 6c910543a8..7d3b9d9913 100644--- a/frontend/src/editor/core/components/shared/config/configSections/preferences/AccountCards.tsx+++ b/frontend/src/editor/core/components/shared/config/configSections/preferences/AccountCards.tsx@@ -22,6 +22,7 @@ import { QRCodeSVG } from "qrcode.react";import { useAccountLogout } from "@editor/extensions/accountLogout";import { BASE_PATH, withBasePath } from "@editor/constants/app";import { MfaSetupResponse } from "@editor/responses/Mfa/MfaResponse";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The signed-in user's shape is layer-specific, so read fields defensively. */function userField(source: unknown, key: string): string | undefined {@@ -367,7 +368,11 @@ export function AccountCards() {><Paper withBorder p="md" radius="md"><Stack gap="sm">- <Text size="sm" c="dimmed">+ <Text+ size="sm"+ c="dimmed"+ className={userIdentifier ? privateContentClassName : undefined}+ >{userIdentifier? t("settings.general.user", "User") + ": " + userIdentifier: t("account.accountSettings", "Account Settings")}@@ -507,6 +512,7 @@ export function AccountCards() {)}<PasswordInput+ className={privateContentClassName}label={t("settings.security.password.current","Current password",@@ -523,6 +529,7 @@ export function AccountCards() {/><PasswordInput+ className={privateContentClassName}label={t("settings.security.password.new", "New password")}placeholder={t("settings.security.password.newPlaceholder",@@ -534,6 +541,7 @@ export function AccountCards() {/><PasswordInput+ className={privateContentClassName}label={t("settings.security.password.confirm","Confirm new password",@@ -586,6 +594,7 @@ export function AccountCards() {{mfaSetupData && (<Stack gap="sm" align="center"><Box+ className={privateContentClassName}style={{padding: "1.5rem",background: "white",@@ -607,7 +616,9 @@ export function AccountCards() {</Box><Text size="sm" c="dimmed">{t("account.mfa.manualKey", "Manual setup key")}:{" "}- <strong>{mfaSetupData.secret}</strong>+ <strong className={privateContentClassName}>+ {mfaSetupData.secret}+ </strong></Text><Text size="xs" c="var(--color-amber-dark)">{t(@@ -627,6 +638,7 @@ export function AccountCards() {</Alert>)}<TextInput+ className={privateContentClassName}label={t("account.mfa.codeLabel", "Authentication code")}placeholder={t("account.mfa.codePlaceholder",@@ -683,6 +695,7 @@ export function AccountCards() {</Alert>)}<TextInput+ className={privateContentClassName}label={t("account.mfa.codeLabel", "Authentication code")}placeholder={t("account.mfa.codePlaceholder",@@ -738,6 +751,7 @@ export function AccountCards() {)}<TextInput+ className={privateContentClassName}label={t("changeCreds.newUsername", "New Username")}placeholder={t("changeCreds.newUsername", "New Username")}value={newUsername}@@ -748,6 +762,7 @@ export function AccountCards() {/><PasswordInput+ className={privateContentClassName}label={t("changeCreds.oldPassword", "Current Password")}placeholder={t("changeCreds.oldPassword", "Current Password")}value={currentPasswordForUsername}diff --git a/frontend/src/editor/core/components/shared/navFooter/NavFooter.tsx b/frontend/src/editor/core/components/shared/navFooter/NavFooter.tsxindex 462e5dfe29..317a3764b3 100644--- a/frontend/src/editor/core/components/shared/navFooter/NavFooter.tsx+++ b/frontend/src/editor/core/components/shared/navFooter/NavFooter.tsx@@ -10,6 +10,8 @@ import {type NavFooterCredits,} from "@editor/components/shared/navFooter/NavFooterCreditsRow";import "@editor/components/shared/navFooter/NavFooter.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface NavFooterAppLink {/** The app this footer is NOT in — the one the row opens. */@@ -151,14 +153,14 @@ export function NavFooter({key: "account",node: (<Tooltip- label={accountLabel}+ label={<PrivateContent>{accountLabel}</PrivateContent>}position="right"withinPortaldisabled={!collapsed}><buttontype="button"- className="nav-footer__row nav-footer__account"+ className={`nav-footer__row nav-footer__account ${privateContentClassName}`}// Called with no args: a handler with an optional param must not get the event.onClick={onOpenSettings ? () => onOpenSettings() : undefined}disabled={!onOpenSettings}diff --git a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferAccounts.tsx b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferAccounts.tsxindex 4bb794fcf9..2ba5927d4b 100644--- a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferAccounts.tsx+++ b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferAccounts.tsx@@ -3,6 +3,7 @@ import type { OwnershipTransferFlow } from "@editor/components/shared/ownership/import { Combobox } from "@mantine/core";import { Icon } from "@editor/ui/Icon";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Keeps local identity separate from the editable cloud account; focusing only loads candidates. */export function OwnershipTransferAccounts({@@ -56,7 +57,7 @@ export function OwnershipTransferAccounts({<inputid="ownership-cloud-email"role="combobox"- className="ownership-flow__search"+ className={`ownership-flow__search ${privateContentClassName}`}value={search}readOnly={busy}autoComplete="off"@@ -77,7 +78,9 @@ export function OwnershipTransferAccounts({<span className="ownership-flow__chevron"><Icon name="chevron-down" size={16} /></span>- <Combobox.Dropdown className="ownership-flow__dropdown">+ <Combobox.Dropdown+ className={`ownership-flow__dropdown ${privateContentClassName}`}+ ><Combobox.Options className="ownership-flow__options">{members.map((member) => (<Combobox.Option@@ -103,7 +106,12 @@ export function OwnershipTransferAccounts({</div></Combobox>) : (- <strong title={cloudEmail ?? undefined}>{cloudEmail}</strong>+ <strong+ title={cloudEmail ?? undefined}+ className={privateContentClassName}+ >+ {cloudEmail}+ </strong>)}</div>)}diff --git a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferMembership.tsx b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferMembership.tsxindex f9e73f84d9..832464d421 100644--- a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferMembership.tsx+++ b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferMembership.tsx@@ -4,6 +4,7 @@ import { Tooltip } from "@mantine/core";import { ActionIcon } from "@editor/ui/ActionIcon";import { Icon } from "@editor/ui/Icon";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Describes invitation readiness without implying that entering an email sends an invitation. */export function OwnershipTransferMembership({@@ -34,7 +35,11 @@ export function OwnershipTransferMembership({defaults="Invite <account>{{email}}</account> to {{team}}."values={{ email, team: teamName }}components={{- account: <strong className="ownership-flow__username" />,+ account: (+ <strong+ className={`ownership-flow__username ${privateContentClassName}`}+ />+ ),}}/></p>@@ -62,7 +67,7 @@ export function OwnershipTransferMembership({<strong>{t("ownership.invitationSent", "Invitation sent")}</strong>- <p>+ <p className={privateContentClassName}>{t("ownership.waitingForEmail","Waiting for {{email}} to join {{team}}.",@@ -78,7 +83,11 @@ export function OwnershipTransferMembership({defaults="Invite <account>{{email}}</account> to {{team}}."values={{ email: cloudEmail, team: teamName }}components={{- account: <strong className="ownership-flow__username" />,+ account: (+ <strong+ className={`ownership-flow__username ${privateContentClassName}`}+ />+ ),}}/></p>diff --git a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferModal.tsx b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferModal.tsxindex f751047e09..5b1076f36a 100644--- a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferModal.tsx+++ b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferModal.tsx@@ -12,6 +12,7 @@ import { OwnershipTransferReview } from "@editor/components/shared/ownership/Ownimport { OwnershipTransferActions } from "@editor/components/shared/ownership/OwnershipTransferActions";import type { OwnershipTransferProps } from "@editor/components/shared/ownership/ownershipTransfer.types";import "@editor/components/shared/ownership/OwnershipTransferModal.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export type {CloudOwnershipStatus,@@ -88,7 +89,11 @@ export function OwnershipTransferModal(props: OwnershipTransferProps) {defaults="<user>{{name}}</user> is now the owner."values={{ name: ownerAccount }}components={{- user: <strong className="ownership-flow__username" />,+ user: (+ <strong+ className={`ownership-flow__username ${privateContentClassName}`}+ />+ ),}}/></p>diff --git a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferReview.tsx b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferReview.tsxindex 56d35c2dae..9479a5d360 100644--- a/frontend/src/editor/core/components/shared/ownership/OwnershipTransferReview.tsx+++ b/frontend/src/editor/core/components/shared/ownership/OwnershipTransferReview.tsx@@ -4,6 +4,7 @@ import { Checkbox, Tooltip } from "@mantine/core";import { ActionIcon } from "@editor/ui/ActionIcon";import { Icon } from "@editor/ui/Icon";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Shows the scope before consent, or the remaining local step after cloud ownership commits. */export function OwnershipTransferReview({@@ -48,7 +49,11 @@ export function OwnershipTransferReview({team: status.cloud.teamName,}}components={{- user: <strong className="ownership-flow__username" />,+ user: (+ <strong+ className={`ownership-flow__username ${privateContentClassName}`}+ />+ ),}}/></p>diff --git a/frontend/src/editor/core/components/shared/privateClassNameIf.ts b/frontend/src/editor/core/components/shared/privateClassNameIf.tsnew file mode 100644index 0000000000..cb450fbef9--- /dev/null+++ b/frontend/src/editor/core/components/shared/privateClassNameIf.ts@@ -0,0 +1,10 @@+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";++/** `className` plus the private-content classes when `isPrivate`, for an element+ * that only sometimes shows the user's content. */+export function privateClassNameIf(+ isPrivate: boolean | undefined,+ className: string,+): string {+ return isPrivate ? `${className} ${privateContentClassName}` : className;+}diff --git a/frontend/src/editor/core/components/shared/privateContentClassName.ts b/frontend/src/editor/core/components/shared/privateContentClassName.tsnew file mode 100644index 0000000000..972ba48716--- /dev/null+++ b/frontend/src/editor/core/components/shared/privateContentClassName.ts@@ -0,0 +1,5 @@+/** Classes that keep an element's content out of analytics and feedback+ * captures. Clicks on it are still sent as events, without its text; session+ * replay shows it as an empty box. Put them on an element directly where a+ * `PrivateContent` wrapper would break its styling, such as a grid row. */+export const privateContentClassName = "ph-sensitive";diff --git a/frontend/src/editor/core/components/shared/quickNav/QuickNavRailAccount.tsx b/frontend/src/editor/core/components/shared/quickNav/QuickNavRailAccount.tsxindex 7612318f47..98cf0aa3b0 100644--- a/frontend/src/editor/core/components/shared/quickNav/QuickNavRailAccount.tsx+++ b/frontend/src/editor/core/components/shared/quickNav/QuickNavRailAccount.tsx@@ -3,6 +3,8 @@ import { Tooltip } from "@editor/components/shared/Tooltip";import { Avatar } from "@editor/ui/Avatar";import type { QuickNavIdentity } from "@editor/contexts/QuickNavHostContext";import "@editor/components/shared/quickNav/QuickNavRailAccount.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface QuickNavRailAccountProps {onOpen: () => void;@@ -26,7 +28,11 @@ export function QuickNavRailAccount({return (<div className="quick-nav-rail-account" data-active={active || undefined}>- <Tooltip content={label} position="right" arrow>+ <Tooltip+ content={<PrivateContent>{label}</PrivateContent>}+ position="right"+ arrow+ >{/* A span, not the Avatar: Tooltip binds by cloning its child. */}<spanclassName="quick-nav-rail-avatar-target"@@ -40,7 +46,7 @@ export function QuickNavRailAccount({onClick={onOpen}ariaLabel={label}ariaCurrent={active ? "page" : undefined}- className="quick-nav-rail-avatar"+ className={`quick-nav-rail-avatar ${privateContentClassName}`}/></span></Tooltip>diff --git a/frontend/src/editor/core/components/shared/signing/SigningDocumentPicker.tsx b/frontend/src/editor/core/components/shared/signing/SigningDocumentPicker.tsxindex 2bdbc05339..d77417aedf 100644--- a/frontend/src/editor/core/components/shared/signing/SigningDocumentPicker.tsx+++ b/frontend/src/editor/core/components/shared/signing/SigningDocumentPicker.tsx@@ -14,6 +14,7 @@ import {type StirlingFileStub,} from "@editor/types/fileContext";import thumbnailStyles from "@editor/components/fileEditor/FileEditorThumbnail.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Picks one PDF without navigating away; library imports use the normal FileContext ingestion path. */export function SigningDocumentPicker({@@ -180,7 +181,7 @@ function SigningDocumentCard({onSelect: () => void;}) {return (- <label className="signing-document-card">+ <label className={`signing-document-card ${privateContentClassName}`}><inputtype="radio"name="signing-document"diff --git a/frontend/src/editor/core/components/shared/signing/SigningSessionHeader.tsx b/frontend/src/editor/core/components/shared/signing/SigningSessionHeader.tsxindex 09bfaee64e..a8d1d66266 100644--- a/frontend/src/editor/core/components/shared/signing/SigningSessionHeader.tsx+++ b/frontend/src/editor/core/components/shared/signing/SigningSessionHeader.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Avatar } from "@editor/ui/Avatar";import { Icon } from "@editor/ui/Icon";import "@editor/components/shared/signing/signingDetail.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SigningSessionHeaderProps {documentName: string;@@ -31,11 +32,18 @@ export function SigningSessionHeader({{status}{actions}</div>- <h2>{documentName}</h2>+ <h2 className={privateContentClassName}>{documentName}</h2><div className="signing-detail__sender">- {owner && <Avatar name={owner} size="sm" tone="neutral" />}+ {owner && (+ <Avatar+ name={owner}+ size="sm"+ tone="neutral"+ className={privateContentClassName}+ />+ )}<div>- <span>+ <span className={owner ? privateContentClassName : undefined}>{owner? `${t("certSign.collab.signRequest.from", "From")}: ${owner}`: t("signWorkspace.createdByMe", "Created by me")}diff --git a/frontend/src/editor/core/components/shared/signing/SigningSessionRow.tsx b/frontend/src/editor/core/components/shared/signing/SigningSessionRow.tsxindex 1be1257fb1..9fa53ff7b7 100644--- a/frontend/src/editor/core/components/shared/signing/SigningSessionRow.tsx+++ b/frontend/src/editor/core/components/shared/signing/SigningSessionRow.tsx@@ -7,6 +7,8 @@ import {} from "@editor/utils/signingItems";import { signingStatus } from "@editor/utils/signingStatus";import { SigningActivityDot } from "@editor/components/shared/signing/SigningActivityDot";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";interface SigningSessionRowProps {item: SigningMenuItem;@@ -44,13 +46,21 @@ export function SigningSessionRow({</span><span className="sign-menu__session-copy"><span className="sign-menu__document-heading">- <span className="sign-menu__document" title={item.documentName}>+ <span+ className={`sign-menu__document ${privateContentClassName}`}+ title={item.documentName}+ >{item.documentName}</span>{item.unread && <SigningActivityDot />}</span><span className="sign-menu__state">{state}</span>- <span className="sign-menu__meta">+ <span+ className={privateClassNameIf(+ item.kind === "request",+ "sign-menu__meta",+ )}+ >{item.kind === "request"? `${t("certSign.collab.signRequest.from", "From")}: ${item.ownerUsername}`: t(diff --git a/frontend/src/editor/core/components/shared/signing/SigningSessionsTable.tsx b/frontend/src/editor/core/components/shared/signing/SigningSessionsTable.tsxindex fa6187284c..bb5aa9e10c 100644--- a/frontend/src/editor/core/components/shared/signing/SigningSessionsTable.tsx+++ b/frontend/src/editor/core/components/shared/signing/SigningSessionsTable.tsx@@ -8,6 +8,7 @@ import {} from "@editor/ui/DataTableFilterBar";import { Icon } from "@editor/ui/Icon";import { Input } from "@editor/ui/Input";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";import { SegmentedControl } from "@editor/ui/SegmentedControl";import type { StatusTone } from "@editor/ui/StatusBadge";import {@@ -103,6 +104,7 @@ export function SigningSessionsTable({value === "mine"? t("signWorkspace.createdByMe", "Created by me"): value.slice(5),+ privateContent: true,},{key: "status",@@ -132,6 +134,7 @@ export function SigningSessionsTable({key: "document",header: t("signWorkspace.document", "Document"),sortable: true,+ privateContent: true,primary: (item) => item.documentName,icon: () => <Icon name="file-text" size={18} />,unreadLabel: (item) =>@@ -146,6 +149,7 @@ export function SigningSessionsTable({key: "owner",header: t("signWorkspace.owner", "Owner"),sortable: true,+ privateContent: true,get: owner,}),column.badge<SigningItem>({@@ -204,7 +208,7 @@ export function SigningSessionsTable({<div className="signing-workspace__content"><div className="signing-workspace__list-heading"><Input- className="signing-workspace__search"+ className={`signing-workspace__search ${privateContentClassName}`}inputSize="sm"leadingIcon={<Icon name="search" size={16} />}value={filters.filterBar.search?.value ?? ""}diff --git a/frontend/src/editor/core/components/shared/signing/SigningWorkspace.tsx b/frontend/src/editor/core/components/shared/signing/SigningWorkspace.tsxindex 4d816b5b0d..e89b71a421 100644--- a/frontend/src/editor/core/components/shared/signing/SigningWorkspace.tsx+++ b/frontend/src/editor/core/components/shared/signing/SigningWorkspace.tsx@@ -28,6 +28,7 @@ import {usePendingSigningIntent,} from "@editor/utils/pendingSigningIntent";import "@editor/components/shared/signing/signing.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const Viewer = lazy(() => import("@editor/components/viewer/Viewer"));@@ -167,7 +168,11 @@ export default function SigningWorkspace() {</Button><Icon name="chevron-right" size={16} aria-hidden="true" /><span- className="signing-workspace__current"+ className={+ showCreate+ ? "signing-workspace__current"+ : `signing-workspace__current ${privateContentClassName}`+ }aria-current="page"title={currentLocation}>diff --git a/frontend/src/editor/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx b/frontend/src/editor/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsxindex d9f27e6ecf..0dac57e846 100644--- a/frontend/src/editor/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx+++ b/frontend/src/editor/core/components/shared/signing/steps/ConfigureSignatureDefaultsStep.tsx@@ -5,6 +5,7 @@ import { Icon } from "@editor/ui/Icon";import SignatureSettingsInput, {SignatureSettings,} from "@editor/components/tools/certSign/SignatureSettingsInput";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface ConfigureSignatureDefaultsStepProps {settings: SignatureSettings;@@ -54,7 +55,7 @@ export const ConfigureSignatureDefaultsStep: React.FC<"Reason:",)}</strong>{" "}- {settings.reason}+ <PrivateContent>{settings.reason}</PrivateContent></Text>)}{settings.showSignature && settings.location && (@@ -65,7 +66,7 @@ export const ConfigureSignatureDefaultsStep: React.FC<"Location:",)}</strong>{" "}- {settings.location}+ <PrivateContent>{settings.location}</PrivateContent></Text>)}</Stack>diff --git a/frontend/src/editor/core/components/shared/signing/steps/ReviewSessionStep.tsx b/frontend/src/editor/core/components/shared/signing/steps/ReviewSessionStep.tsxindex f2a5a6b565..32357d2b68 100644--- a/frontend/src/editor/core/components/shared/signing/steps/ReviewSessionStep.tsx+++ b/frontend/src/editor/core/components/shared/signing/steps/ReviewSessionStep.tsx@@ -5,6 +5,8 @@ import { Icon } from "@editor/ui/Icon";import type { SignatureSettings } from "@editor/components/tools/certSign/SignatureSettingsInput";import type { FileState } from "@editor/types/file";import { formatFileSize } from "@editor/utils/fileUtils";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ReviewSessionStepProps {selectedFile: FileState;@@ -55,7 +57,11 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({backgroundColor: "var(--mantine-color-default-hover)",}}>- <Text size="sm" style={{ overflowWrap: "anywhere" }}>+ <Text+ size="sm"+ style={{ overflowWrap: "anywhere" }}+ className={privateContentClassName}+ >{selectedFile.name}</Text>{selectedFile.size && (@@ -120,7 +126,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({<strong>{t("groupSigning.steps.review.reason", "Reason:")}</strong>{" "}- {signatureSettings.reason}+ <PrivateContent>{signatureSettings.reason}</PrivateContent></Text>)}{signatureSettings.showSignature && signatureSettings.location && (@@ -128,7 +134,7 @@ export const ReviewSessionStep: React.FC<ReviewSessionStepProps> = ({<strong>{t("groupSigning.steps.review.location", "Location:")}</strong>{" "}- {signatureSettings.location}+ <PrivateContent>{signatureSettings.location}</PrivateContent></Text>)}{signatureSettings.showSignature && (diff --git a/frontend/src/editor/core/components/shared/signing/steps/SelectDocumentStep.tsx b/frontend/src/editor/core/components/shared/signing/steps/SelectDocumentStep.tsxindex 4cc6a02691..4f0a1b47f8 100644--- a/frontend/src/editor/core/components/shared/signing/steps/SelectDocumentStep.tsx+++ b/frontend/src/editor/core/components/shared/signing/steps/SelectDocumentStep.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import type { FileState } from "@editor/types/file";import { formatFileSize } from "@editor/utils/fileUtils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SelectDocumentStepProps {selectedFiles: FileState[];@@ -54,7 +55,12 @@ export const SelectDocumentStep: React.FC<SelectDocumentStepProps> = ({style={{ color: "var(--mantine-color-red-6)" }}/><div style={{ flex: 1, minWidth: 0 }}>- <Text size="sm" fw={600} truncate>+ <Text+ size="sm"+ fw={600}+ truncate+ className={privateContentClassName}+ >{selectedFile?.name}</Text>{selectedFile?.size && (diff --git a/frontend/src/editor/core/components/shared/superSearch/SuperSearch.tsx b/frontend/src/editor/core/components/shared/superSearch/SuperSearch.tsxindex f4b9f2d4ea..841de2fdbc 100644--- a/frontend/src/editor/core/components/shared/superSearch/SuperSearch.tsx+++ b/frontend/src/editor/core/components/shared/superSearch/SuperSearch.tsx@@ -32,6 +32,8 @@ import {import "@editor/components/shared/superSearch/SuperSearch.css";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";/** Rows shown per group before a "show more" toggle reveals the rest. */const COLLAPSED_GROUP_SIZE = 5;@@ -596,7 +598,12 @@ export default function SuperSearch({/>)}</span>- <span className="super-search-item-text">+ <span+ className={privateClassNameIf(+ result.privateContent,+ "super-search-item-text",+ )}+ ><span className="super-search-item-title">{result.title}</span>@@ -644,6 +651,7 @@ export default function SuperSearch({id={inputId}name={inputId}ref={inputRef}+ className={privateContentClassName}value={query}onChange={setQuery}placeholder={diff --git a/frontend/src/editor/core/components/shared/wetSignature/DrawSignatureCanvas.tsx b/frontend/src/editor/core/components/shared/wetSignature/DrawSignatureCanvas.tsxindex 3394a0b9e1..4fc0c8cd73 100644--- a/frontend/src/editor/core/components/shared/wetSignature/DrawSignatureCanvas.tsx+++ b/frontend/src/editor/core/components/shared/wetSignature/DrawSignatureCanvas.tsx@@ -3,6 +3,7 @@ import { Stack, Group, ColorPicker, Slider, Text } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface DrawSignatureCanvasProps {signature: string | null;onChange: (signature: string | null) => void;@@ -104,6 +105,7 @@ export const DrawSignatureCanvas: React.FC<DrawSignatureCanvasProps> = ({ref={canvasRef}width={400}height={150}+ className={privateContentClassName}onMouseDown={startDrawing}onMouseMove={draw}onMouseUp={stopDrawing}diff --git a/frontend/src/editor/core/components/shared/wetSignature/TypeSignatureText.tsx b/frontend/src/editor/core/components/shared/wetSignature/TypeSignatureText.tsxindex 94a9f11eb4..44c846e5f8 100644--- a/frontend/src/editor/core/components/shared/wetSignature/TypeSignatureText.tsx+++ b/frontend/src/editor/core/components/shared/wetSignature/TypeSignatureText.tsx@@ -8,6 +8,7 @@ import {} from "@mantine/core";import { useTranslation } from "react-i18next";import { useEffect, useRef } from "react";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface TypeSignatureTextProps {text: string;@@ -106,6 +107,7 @@ export const TypeSignatureText: React.FC<TypeSignatureTextProps> = ({"Enter your name...",)}value={text}+ className={privateContentClassName}onChange={(e) => onTextChange(e.target.value)}disabled={disabled}/>@@ -183,6 +185,7 @@ export const TypeSignatureText: React.FC<TypeSignatureTextProps> = ({fontSize: `${fontSize}px`,color: color,}}+ className={privateContentClassName}>{text}</Text>diff --git a/frontend/src/editor/core/components/shared/wetSignature/UploadSignatureImage.tsx b/frontend/src/editor/core/components/shared/wetSignature/UploadSignatureImage.tsxindex 3e1342df28..4fbf91263e 100644--- a/frontend/src/editor/core/components/shared/wetSignature/UploadSignatureImage.tsx+++ b/frontend/src/editor/core/components/shared/wetSignature/UploadSignatureImage.tsx@@ -3,6 +3,7 @@ import { Stack, Text, Image } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface UploadSignatureImageProps {signature: string | null;onChange: (signature: string | null) => void;@@ -92,6 +93,7 @@ export const UploadSignatureImage: React.FC<UploadSignatureImageProps> = ({><Imagesrc={signature}+ className={privateContentClassName}alt={t("certSign.collab.signRequest.signatureImageAlt","Signature",diff --git a/frontend/src/editor/core/components/toast/ToastRenderer.tsx b/frontend/src/editor/core/components/toast/ToastRenderer.tsxindex 0a1dd9863b..a7e16ca268 100644--- a/frontend/src/editor/core/components/toast/ToastRenderer.tsx+++ b/frontend/src/editor/core/components/toast/ToastRenderer.tsx@@ -4,6 +4,7 @@ import { useToast } from "@editor/components/toast/ToastContext";import { ToastInstance, ToastLocation } from "@editor/components/toast/types";import { ActionIcon } from "@editor/ui/ActionIcon";import { Button } from "@editor/ui/Button";+import { PrivateContent } from "@editor/components/shared/PrivateContent";import "@editor/components/toast/ToastRenderer.css";import { Icon, type IconName } from "@editor/ui/Icon";@@ -86,7 +87,11 @@ export default function ToastRenderer() {{/* Title + count badge */}<div className="toast-title-container">- <span>{t.title}</span>+ <span>+ <PrivateContent enabled={Boolean(t.privateTitle)}>+ {t.title}+ </PrivateContent>+ </span>{typeof t.count === "number" && t.count > 1 && (<span className="toast-count-badge">{t.count}</span>)}@@ -134,7 +139,11 @@ export default function ToastRenderer() {{/* Body content - only show when expanded */}{(t.isExpanded || !t.expandable) && (- <div className="toast-body">{t.body}</div>+ <div className="toast-body">+ <PrivateContent enabled={Boolean(t.privateBody)}>+ {t.body}+ </PrivateContent>+ </div>)}{/* Button - always show when present, positioned below body */}diff --git a/frontend/src/editor/core/components/toast/types.ts b/frontend/src/editor/core/components/toast/types.tsindex 1edbf62fbd..1a600a33e0 100644--- a/frontend/src/editor/core/components/toast/types.ts+++ b/frontend/src/editor/core/components/toast/types.ts@@ -11,7 +11,12 @@ export type ToastAlertType = "success" | "error" | "warning" | "neutral";export interface ToastOptions {alertType?: ToastAlertType;title: string;+ /** Set when the title names the user's content, such as a file name, to keep+ * it out of analytics and feedback captures. */+ privateTitle?: boolean;body?: ReactNode;+ /** As `privateTitle`, for the body. */+ privateBody?: boolean;buttonText?: string;buttonCallback?: () => void;isPersistentPopup?: boolean;diff --git a/frontend/src/editor/core/components/tools/addAttachments/AttachmentRow.tsx b/frontend/src/editor/core/components/tools/addAttachments/AttachmentRow.tsxindex 864423c66c..c030ff7843 100644--- a/frontend/src/editor/core/components/tools/addAttachments/AttachmentRow.tsx+++ b/frontend/src/editor/core/components/tools/addAttachments/AttachmentRow.tsx@@ -13,6 +13,8 @@ import { Icon } from "@editor/ui/Icon";import { ActionIcon } from "@editor/ui/ActionIcon";import { formatFileSize, detectFileExtension } from "@editor/utils/fileUtils";import { DraftRowKind } from "@editor/hooks/tools/addAttachments/useAttachmentManager";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface AttachmentRowProps {id: string;@@ -141,6 +143,7 @@ export const AttachmentRow = memo(function AttachmentRow({<Group gap={6} style={{ flex: 1, minWidth: 0 }}><TextInputvalue={editingName}+ className={privateContentClassName}onChange={(e) => setEditingName(e.currentTarget.value)}onKeyDown={(e) => {if (e.key === "Enter") {@@ -179,12 +182,16 @@ export const AttachmentRow = memo(function AttachmentRow({style={{ minWidth: 0, width: "100%", overflow: "hidden" }}><Box style={{ flex: 1, minWidth: 0, overflow: "hidden" }}>- <Tooltip label={tooltipLabel} openDelay={400}>+ <Tooltip+ label={<PrivateContent>{tooltipLabel}</PrivateContent>}+ openDelay={400}+ ><Textsize="sm"fw={500}c={isDeleted ? "dimmed" : undefined}truncate="end"+ className={privateContentClassName}style={{display: "block",width: "100%",diff --git a/frontend/src/editor/core/components/tools/addPassword/AddPasswordSettings.tsx b/frontend/src/editor/core/components/tools/addPassword/AddPasswordSettings.tsxindex b6837f6517..0b3c5a0fc4 100644--- a/frontend/src/editor/core/components/tools/addPassword/AddPasswordSettings.tsx+++ b/frontend/src/editor/core/components/tools/addPassword/AddPasswordSettings.tsx@@ -2,6 +2,7 @@ import { Stack, PasswordInput, Select, Text } from "@mantine/core";import { useTranslation } from "react-i18next";import { AddPasswordParameters } from "@editor/hooks/tools/addPassword/useAddPasswordParameters";import { Z_INDEX_AUTOMATE_DROPDOWN } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AddPasswordSettingsProps {parameters: AddPasswordParameters;@@ -25,6 +26,7 @@ const AddPasswordSettings = ({<Stack gap="md"><Stack gap="sm"><PasswordInput+ className={privateContentClassName}size="xs"label={showOwnerPassword@@ -42,6 +44,7 @@ const AddPasswordSettings = ({/>{showOwnerPassword && (<PasswordInput+ className={privateContentClassName}size="xs"label={t("encryptedPdfUnlock.newOwnerPassword",diff --git a/frontend/src/editor/core/components/tools/addStamp/StampPreview.tsx b/frontend/src/editor/core/components/tools/addStamp/StampPreview.tsxindex 3e1d0a72f5..0d1117d35c 100644--- a/frontend/src/editor/core/components/tools/addStamp/StampPreview.tsx+++ b/frontend/src/editor/core/components/tools/addStamp/StampPreview.tsx@@ -16,6 +16,7 @@ import {} from "@editor/components/tools/addStamp/StampPreviewUtils";import styles from "@editor/components/tools/addStamp/StampPreview.module.css";import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";@@ -397,7 +398,7 @@ export default function StampPreview({)}{parameters.stampType === "text" && (<div- className={`${styles.stampItem} ${styles.stampItemGridMode}`}+ className={`${styles.stampItem} ${styles.stampItemGridMode} ${privateContentClassName}`}style={style.item}data-user-content-preview="">@@ -419,7 +420,7 @@ export default function StampPreview({)}{parameters.stampType === "image" && imageMeta && (<div- className={`${styles.stampItem} ${showQuickGrid ? styles.stampItemGridMode : styles.stampItemDraggable}`}+ className={`${styles.stampItem} ${showQuickGrid ? styles.stampItemGridMode : styles.stampItemDraggable} ${privateContentClassName}`}style={style.item}onPointerDown={(e) => handlePointerDown(e, "move")}>@@ -435,7 +436,7 @@ export default function StampPreview({{parameters.stampType === "qr" &&isQrContentWithinLimit(parameters.stampText) && (<div- className={`${styles.stampItem} ${showQuickGrid ? styles.stampItemGridMode : styles.stampItemDraggable}`}+ className={`${styles.stampItem} ${showQuickGrid ? styles.stampItemGridMode : styles.stampItemDraggable} ${privateContentClassName}`}style={style.item}onPointerDown={(e) => handlePointerDown(e, "move")}data-user-content-preview=""diff --git a/frontend/src/editor/core/components/tools/addStamp/StampSetupSettings.tsx b/frontend/src/editor/core/components/tools/addStamp/StampSetupSettings.tsxindex 364569901a..5936ea50a5 100644--- a/frontend/src/editor/core/components/tools/addStamp/StampSetupSettings.tsx+++ b/frontend/src/editor/core/components/tools/addStamp/StampSetupSettings.tsx@@ -26,6 +26,7 @@ import { getDefaultFontSizeForAlphabet } from "@editor/components/tools/addStampimport { useFileWithUrl } from "@editor/hooks/useFileWithUrl";import { Z_INDEX_AUTOMATE_DROPDOWN } from "@editor/styles/zIndex";import { alphabetOptions } from "@editor/constants/addWatermarkConstants";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const STAMP_TEMPLATES = [{@@ -186,6 +187,7 @@ const StampTextPreview = ({</Text><Textsize="sm"+ className={privateContentClassName}style={{whiteSpace: "pre-wrap",fontFamily: "monospace",@@ -297,6 +299,7 @@ const StampSetupSettings = ({"Use dynamic variables below. Use @@ for literal @. Use \\n for new lines.",)}value={parameters.stampText}+ className={privateContentClassName}onChange={(e) =>onParameterChange("stampText", e.currentTarget.value)}@@ -681,6 +684,7 @@ const StampSetupSettings = ({"Text or link to encode. Dynamic variables such as @filename and @page_number are supported.",)}value={parameters.stampText}+ className={privateContentClassName}onChange={(e) =>onParameterChange("stampText", e.currentTarget.value)}@@ -720,7 +724,7 @@ const StampSetupSettings = ({{t("chooseFile", "Choose File")}</Button>{parameters.stampImage && stampImageWithUrl && (- <Stack gap="xs">+ <Stack gap="xs" className={privateContentClassName}><imgsrc={stampImageWithUrl.url}alt={t(diff --git a/frontend/src/editor/core/components/tools/addWatermark/WatermarkWording.tsx b/frontend/src/editor/core/components/tools/addWatermark/WatermarkWording.tsxindex dbb05f400f..45829be3a1 100644--- a/frontend/src/editor/core/components/tools/addWatermark/WatermarkWording.tsx+++ b/frontend/src/editor/core/components/tools/addWatermark/WatermarkWording.tsx@@ -3,6 +3,7 @@ import { Stack, TextInput } from "@mantine/core";import { useTranslation } from "react-i18next";import { AddWatermarkParameters } from "@editor/hooks/tools/addWatermark/useAddWatermarkParameters";import { removeEmojis } from "@editor/utils/textUtils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface WatermarkWordingProps {parameters: AddWatermarkParameters;@@ -34,6 +35,7 @@ const WatermarkWording = ({"Enter watermark text",)}value={parameters.watermarkText}+ className={privateContentClassName}onChange={handleTextChange}disabled={disabled}/>diff --git a/frontend/src/editor/core/components/tools/adjustContrast/AdjustContrastPreview.tsx b/frontend/src/editor/core/components/tools/adjustContrast/AdjustContrastPreview.tsxindex 664e097c0c..f4a990761e 100644--- a/frontend/src/editor/core/components/tools/adjustContrast/AdjustContrastPreview.tsx+++ b/frontend/src/editor/core/components/tools/adjustContrast/AdjustContrastPreview.tsx@@ -5,6 +5,7 @@ import ObscuredOverlay from "@editor/components/shared/ObscuredOverlay";import { Text } from "@mantine/core";import { useTranslation } from "react-i18next";import { applyAdjustmentsToCanvas } from "@editor/components/tools/adjustContrast/utils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {file: File | null;@@ -104,6 +105,7 @@ export default function AdjustContrastPreview({ file, parameters }: Props) {><divref={containerRef}+ className={privateContentClassName}style={{aspectRatio: "8.5/11",width: "100%",diff --git a/frontend/src/editor/core/components/tools/autoRotate/AutoRotateReport.tsx b/frontend/src/editor/core/components/tools/autoRotate/AutoRotateReport.tsxindex 466a427b6c..49018c82cb 100644--- a/frontend/src/editor/core/components/tools/autoRotate/AutoRotateReport.tsx+++ b/frontend/src/editor/core/components/tools/autoRotate/AutoRotateReport.tsx@@ -13,6 +13,7 @@ import {AutoRotateReport as ReportData,AutoRotatePageResult,} from "@editor/hooks/tools/autoRotate/useAutoRotateOperation";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AutoRotateReportProps {reports: { fileName: string; report: ReportData }[];@@ -102,7 +103,12 @@ const AutoRotateReport = ({ reports }: AutoRotateReportProps) => {{reports.map(({ fileName, report }) => (<Stack gap="xs" key={fileName}>{reports.length > 1 && (- <Text size="sm" fw={500} truncate>+ <Text+ size="sm"+ fw={500}+ truncate+ className={privateContentClassName}+ >{fileName}</Text>)}diff --git a/frontend/src/editor/core/components/tools/certSign/CertificateFilesSettings.tsx b/frontend/src/editor/core/components/tools/certSign/CertificateFilesSettings.tsxindex 60ac678e7e..2f33acc341 100644--- a/frontend/src/editor/core/components/tools/certSign/CertificateFilesSettings.tsx+++ b/frontend/src/editor/core/components/tools/certSign/CertificateFilesSettings.tsx@@ -2,6 +2,7 @@ import { Stack, Text, TextInput } from "@mantine/core";import { useTranslation } from "react-i18next";import { CertSignParameters } from "@editor/hooks/tools/certSign/useCertSignParameters";import FileUploadButton from "@editor/components/shared/FileUploadButton";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface CertificateFilesSettingsProps {parameters: CertSignParameters;@@ -95,6 +96,7 @@ const CertificateFilesSettings = ({(parameters.certType === "PFX" && parameters.p12File) ||(parameters.certType === "JKS" && parameters.jksFile)) && (<TextInput+ className={privateContentClassName}label={t("certSign.password", "Certificate Password")}placeholder={t("certSign.passwordOptional",diff --git a/frontend/src/editor/core/components/tools/certSign/HardwareCertificateSettings.tsx b/frontend/src/editor/core/components/tools/certSign/HardwareCertificateSettings.tsxindex f6e95058f4..2e63ed358d 100644--- a/frontend/src/editor/core/components/tools/certSign/HardwareCertificateSettings.tsx+++ b/frontend/src/editor/core/components/tools/certSign/HardwareCertificateSettings.tsx@@ -19,6 +19,7 @@ import {listWindowsCertificates,Pkcs11LibraryInfo,} from "@editor/services/hardwareSigningService";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface HardwareCertificateSettingsProps {parameters: CertSignParameters;@@ -346,6 +347,10 @@ const HardwareCertificateSettings = ({)}data={certOptions}value={parameters.alias ?? null}+ className={privateContentClassName}+ comboboxProps={{+ classNames: { dropdown: privateContentClassName },+ }}onChange={(v) => onParameterChange("alias", v ?? undefined)}disabled={disabled || loading}searchable@@ -451,6 +456,10 @@ const HardwareCertificateSettings = ({)}data={certOptions}value={parameters.alias ?? null}+ className={privateContentClassName}+ comboboxProps={{+ classNames: { dropdown: privateContentClassName },+ }}onChange={(v) => onParameterChange("alias", v ?? undefined)}disabled={disabled || loading}searchablediff --git a/frontend/src/editor/core/components/tools/certSign/SignatureAppearanceSettings.tsx b/frontend/src/editor/core/components/tools/certSign/SignatureAppearanceSettings.tsxindex dee6c5ea7c..a729a9de2d 100644--- a/frontend/src/editor/core/components/tools/certSign/SignatureAppearanceSettings.tsx+++ b/frontend/src/editor/core/components/tools/certSign/SignatureAppearanceSettings.tsx@@ -2,6 +2,7 @@ import { Stack, Text, TextInput, NumberInput } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { CertSignParameters } from "@editor/hooks/tools/certSign/useCertSignParameters";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SignatureAppearanceSettingsProps {parameters: CertSignParameters;@@ -80,6 +81,7 @@ const SignatureAppearanceSettings = ({<TextInputlabel={t("certSign.reason", "Reason")}value={parameters.reason}+ className={privateContentClassName}onChange={(event) =>onParameterChange("reason", event.currentTarget.value)}@@ -88,6 +90,7 @@ const SignatureAppearanceSettings = ({<TextInputlabel={t("certSign.location", "Location")}value={parameters.location}+ className={privateContentClassName}onChange={(event) =>onParameterChange("location", event.currentTarget.value)}@@ -96,6 +99,7 @@ const SignatureAppearanceSettings = ({<TextInputlabel={t("certSign.name", "Name")}value={parameters.name}+ className={privateContentClassName}onChange={(event) =>onParameterChange("name", event.currentTarget.value)}diff --git a/frontend/src/editor/core/components/tools/certSign/modals/CertificateConfigModal.tsx b/frontend/src/editor/core/components/tools/certSign/modals/CertificateConfigModal.tsxindex 33ad5a4942..9afc817f27 100644--- a/frontend/src/editor/core/components/tools/certSign/modals/CertificateConfigModal.tsx+++ b/frontend/src/editor/core/components/tools/certSign/modals/CertificateConfigModal.tsx@@ -13,6 +13,8 @@ import {} from "@editor/components/tools/certSign/CertificateSelector";import { isAxiosError } from "axios";import apiClient from "@editor/services/apiClient";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface CertificateSubmitData {certType: CertificateType;@@ -322,9 +324,9 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({: "—",},)}- {certValidation.subjectName- ? ` · ${certValidation.subjectName}`- : ""}+ {certValidation.subjectName && (+ <PrivateContent>{` · ${certValidation.subjectName}`}</PrivateContent>+ )}</Text></Group>)}@@ -388,6 +390,7 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({"Why are you signing?",)}value={reason}+ className={privateContentClassName}onChange={(e) => setReason(e.currentTarget.value)}disabled={disabled || signing}/>@@ -404,6 +407,7 @@ export const CertificateConfigModal: React.FC<CertificateConfigModalProps> = ({"Where are you signing from?",)}value={location}+ className={privateContentClassName}onChange={(e) => setLocation(e.currentTarget.value)}disabled={disabled || signing}/>diff --git a/frontend/src/editor/core/components/tools/certSign/modals/SelectSignatureModal.tsx b/frontend/src/editor/core/components/tools/certSign/modals/SelectSignatureModal.tsxindex d2ebf0b126..4f3d84fef3 100644--- a/frontend/src/editor/core/components/tools/certSign/modals/SelectSignatureModal.tsx+++ b/frontend/src/editor/core/components/tools/certSign/modals/SelectSignatureModal.tsx@@ -7,6 +7,7 @@ import {SavedSignature,} from "@editor/hooks/tools/sign/useSavedSignatures";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SelectSignatureModalProps {opened: boolean;onClose: () => void;@@ -54,6 +55,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({textOverflow: "ellipsis",maxWidth: "100%",}}+ className={privateContentClassName}>{sig.signerName}</Text>@@ -78,6 +80,7 @@ export const SelectSignatureModal: React.FC<SelectSignatureModalProps> = ({<Boxcomponent="img"src={sig.dataUrl}+ className={privateContentClassName}alt={sig.label ||t("certSign.collab.signRequest.saved.defaultLabel", "Signature")diff --git a/frontend/src/editor/core/components/tools/certSign/panels/ParticipantListPanel.tsx b/frontend/src/editor/core/components/tools/certSign/panels/ParticipantListPanel.tsxindex 8dbb89dda1..8b9e115fa5 100644--- a/frontend/src/editor/core/components/tools/certSign/panels/ParticipantListPanel.tsx+++ b/frontend/src/editor/core/components/tools/certSign/panels/ParticipantListPanel.tsx@@ -9,6 +9,7 @@ import type {} from "@editor/types/signingSession";import { getFileColor } from "@editor/utils/fileColors";import "@editor/components/shared/signing/signingDetail.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ParticipantListPanelProps {participants: (SigningParticipantPreview & { email?: string })[];@@ -45,11 +46,18 @@ export const ParticipantListPanel: React.FC<ParticipantListPanelProps> = ({const name = participant.name || participant.email || "";return (<li className="signing-participant" key={participant.id}>- <Avatar name={name} size="sm" tone="neutral" />+ <Avatar+ name={name}+ size="sm"+ tone="neutral"+ className={privateContentClassName}+ /><div className="signing-participant__identity">- <strong>{name}</strong>+ <strong className={privateContentClassName}>{name}</strong>{participant.email && participant.email !== name && (- <span className="signing-participant__email">+ <span+ className={`signing-participant__email ${privateContentClassName}`}+ >{participant.email}</span>)}diff --git a/frontend/src/editor/core/components/tools/certSign/panels/SessionActionsPanel.tsx b/frontend/src/editor/core/components/tools/certSign/panels/SessionActionsPanel.tsxindex e41579d647..d5a9520e1f 100644--- a/frontend/src/editor/core/components/tools/certSign/panels/SessionActionsPanel.tsx+++ b/frontend/src/editor/core/components/tools/certSign/panels/SessionActionsPanel.tsx@@ -7,6 +7,8 @@ import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import type { SessionDetail } from "@editor/types/signingSession";import "@editor/components/shared/signing/signingDetail.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SessionActionsPanelProps {session: SessionDetail;@@ -97,7 +99,7 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({"certSign.collab.finalize.confirmTitle","Finalize this signing session?",)}- subtitle={session.documentName}+ subtitle={<PrivateContent>{session.documentName}</PrivateContent>}footer={<Group justify="flex-end"><Button@@ -144,7 +146,9 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({size={16}style={{ color: "var(--c-success)" }}/>- <span>{p.name || p.email}</span>+ <span className={privateContentClassName}>+ {p.name || p.email}+ </span></li>))}</ul>@@ -165,7 +169,7 @@ export const SessionActionsPanel: React.FC<SessionActionsPanelProps> = ({size={16}style={{ color: "var(--c-text-muted)" }}/>- <span>+ <span className={privateContentClassName}>{p.name || p.email} —{" "}{p.status === "DECLINED"? t("certSign.declined", "Declined")diff --git a/frontend/src/editor/core/components/tools/certSign/panels/SignControlsPanel.tsx b/frontend/src/editor/core/components/tools/certSign/panels/SignControlsPanel.tsxindex 3a1cbb1907..7fe2176870 100644--- a/frontend/src/editor/core/components/tools/certSign/panels/SignControlsPanel.tsx+++ b/frontend/src/editor/core/components/tools/certSign/panels/SignControlsPanel.tsx@@ -18,6 +18,7 @@ import {} from "@editor/hooks/tools/sign/useSavedSignatures";import { SignatureCreationStep } from "@editor/components/tools/certSign/steps/SignatureCreationStep";import { type SignatureType } from "@editor/components/shared/wetSignature/SignatureTypeSelector";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SignControlsPanelProps {placementMode: boolean;@@ -78,7 +79,9 @@ export default function SignControlsPanel({(sig: SavedSignature) => {if (sig.type === "text") {return (- <span className="signing-controls__preview">+ <span+ className={`signing-controls__preview ${privateContentClassName}`}+ ><Textsize="lg"style={{@@ -97,7 +100,9 @@ export default function SignControlsPanel({}return (- <span className="signing-controls__preview">+ <span+ className={`signing-controls__preview ${privateContentClassName}`}+ ><imgsrc={sig.dataUrl}alt={@@ -380,7 +385,11 @@ export default function SignControlsPanel({"Change signature",)}>- <span className="signing-controls__preview">{previewNode}</span>+ <span+ className={`signing-controls__preview ${privateContentClassName}`}+ >+ {previewNode}+ </span></Button></Menu.Target><Menu.Dropdown>diff --git a/frontend/src/editor/core/components/tools/changeMetadata/steps/CustomMetadataStep.tsx b/frontend/src/editor/core/components/tools/changeMetadata/steps/CustomMetadataStep.tsxindex 4fbfd46bb1..7b15f2bf6a 100644--- a/frontend/src/editor/core/components/tools/changeMetadata/steps/CustomMetadataStep.tsx+++ b/frontend/src/editor/core/components/tools/changeMetadata/steps/CustomMetadataStep.tsx@@ -2,6 +2,7 @@ import { Stack, TextInput, Group, Text } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { ChangeMetadataParameters } from "@editor/hooks/tools/changeMetadata/useChangeMetadataParameters";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface CustomMetadataStepProps {parameters: ChangeMetadataParameters;@@ -57,6 +58,7 @@ const CustomMetadataStep = ({"Custom key",)}value={entry.key}+ className={privateContentClassName}onChange={(e) =>updateCustomMetadata(entry.id, e.target.value, entry.value)}@@ -68,6 +70,7 @@ const CustomMetadataStep = ({"Custom value",)}value={entry.value}+ className={privateContentClassName}onChange={(e) =>updateCustomMetadata(entry.id, entry.key, e.target.value)}diff --git a/frontend/src/editor/core/components/tools/changeMetadata/steps/StandardMetadataStep.tsx b/frontend/src/editor/core/components/tools/changeMetadata/steps/StandardMetadataStep.tsxindex 1adac9e158..f487076cc8 100644--- a/frontend/src/editor/core/components/tools/changeMetadata/steps/StandardMetadataStep.tsx+++ b/frontend/src/editor/core/components/tools/changeMetadata/steps/StandardMetadataStep.tsx@@ -1,6 +1,7 @@import { Stack, TextInput } from "@mantine/core";import { useTranslation } from "react-i18next";import { ChangeMetadataParameters } from "@editor/hooks/tools/changeMetadata/useChangeMetadataParameters";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface StandardMetadataStepProps {parameters: ChangeMetadataParameters;@@ -24,6 +25,7 @@ const StandardMetadataStep = ({label={t("changeMetadata.title.label", "Title")}placeholder={t("changeMetadata.title.placeholder", "Document title")}value={parameters.title}+ className={privateContentClassName}onChange={(e) => onParameterChange("title", e.target.value)}disabled={disabled}/>@@ -32,6 +34,7 @@ const StandardMetadataStep = ({label={t("changeMetadata.author.label", "Author")}placeholder={t("changeMetadata.author.placeholder", "Document author")}value={parameters.author}+ className={privateContentClassName}onChange={(e) => onParameterChange("author", e.target.value)}disabled={disabled}/>@@ -43,6 +46,7 @@ const StandardMetadataStep = ({"Document subject",)}value={parameters.subject}+ className={privateContentClassName}onChange={(e) => onParameterChange("subject", e.target.value)}disabled={disabled}/>@@ -54,6 +58,7 @@ const StandardMetadataStep = ({"Document keywords",)}value={parameters.keywords}+ className={privateContentClassName}onChange={(e) => onParameterChange("keywords", e.target.value)}disabled={disabled}/>@@ -65,6 +70,7 @@ const StandardMetadataStep = ({"Document creator",)}value={parameters.creator}+ className={privateContentClassName}onChange={(e) => onParameterChange("creator", e.target.value)}disabled={disabled}/>@@ -76,6 +82,7 @@ const StandardMetadataStep = ({"Document producer",)}value={parameters.producer}+ className={privateContentClassName}onChange={(e) => onParameterChange("producer", e.target.value)}disabled={disabled}/>diff --git a/frontend/src/editor/core/components/tools/compare/CompareDocumentPane.tsx b/frontend/src/editor/core/components/tools/compare/CompareDocumentPane.tsxindex a2994dc898..573e5ce0bb 100644--- a/frontend/src/editor/core/components/tools/compare/CompareDocumentPane.tsx+++ b/frontend/src/editor/core/components/tools/compare/CompareDocumentPane.tsx@@ -14,6 +14,7 @@ import {import CompareNavigationDropdown from "@editor/components/tools/compare/CompareNavigationDropdown";import { useIsMobile } from "@editor/hooks/useIsMobile";import { truncateCenter } from "@editor/utils/textUtils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const COMPARE_PANE_TITLE_MAX_LEN = 48;@@ -116,6 +117,7 @@ const CompareDocumentPane = ({size="lg"style={{ minWidth: 0, flex: 1 }}title={title || undefined}+ className={privateContentClassName}>{title ? truncateCenter(title, COMPARE_PANE_TITLE_MAX_LEN) : title}</Text>@@ -348,7 +350,7 @@ const CompareDocumentPane = ({}}><div- className={`compare-diff-page__inner compare-diff-page__inner--${pane}`}+ className={`compare-diff-page__inner compare-diff-page__inner--${pane} ${privateContentClassName}`}style={{transform: `scale(${innerScale}) translate3d(${-(clampedPanX / innerScale)}px, ${-(clampedPanY / innerScale)}px, 0)`,transformOrigin: "top left",diff --git a/frontend/src/editor/core/components/tools/compare/CompareNavigationDropdown.tsx b/frontend/src/editor/core/components/tools/compare/CompareNavigationDropdown.tsxindex 9d2a9b2a89..171ae9ef59 100644--- a/frontend/src/editor/core/components/tools/compare/CompareNavigationDropdown.tsx+++ b/frontend/src/editor/core/components/tools/compare/CompareNavigationDropdown.tsx@@ -2,6 +2,7 @@ import { Combobox, ScrollArea, useCombobox } from "@mantine/core";import { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import type { NavigationDropdownProps } from "@editor/types/compare";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const CompareNavigationDropdown = ({changes,@@ -188,6 +189,7 @@ const CompareNavigationDropdown = ({"Search changes...",)}value={query}+ className={privateContentClassName}onChange={(e) => setQuery(e.currentTarget.value)}/></div>@@ -256,7 +258,9 @@ const CompareNavigationDropdown = ({}}><div className="compare-dropdown-option">- <span className="compare-dropdown-option__text">+ <span+ className={`compare-dropdown-option__text ${privateContentClassName}`}+ >{item.label}</span></div>diff --git a/frontend/src/editor/core/components/tools/compare/ComparePixelWorkbenchView.tsx b/frontend/src/editor/core/components/tools/compare/ComparePixelWorkbenchView.tsxindex 4ad4aef14d..d4aa860538 100644--- a/frontend/src/editor/core/components/tools/compare/ComparePixelWorkbenchView.tsx+++ b/frontend/src/editor/core/components/tools/compare/ComparePixelWorkbenchView.tsx@@ -9,6 +9,7 @@ import type {ComparePixelPageResult,} from "@editor/types/compare";import "@editor/components/tools/compare/compareView.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ComparePixelWorkbenchViewProps {result: CompareResultPixelData;@@ -70,6 +71,7 @@ const PixelPageCard = ({<div className="compare-pixel-triptych"><figure><img+ className={privateContentClassName}src={page.baseImageUrl}alt={t("compare.pixel.base", "Original")}loading="lazy"@@ -80,6 +82,7 @@ const PixelPageCard = ({</figure><figure><img+ className={privateContentClassName}src={page.diffImageUrl}alt={t("compare.pixel.diff", "Differences")}loading="lazy"@@ -90,6 +93,7 @@ const PixelPageCard = ({</figure><figure><img+ className={privateContentClassName}src={page.comparisonImageUrl}alt={t("compare.pixel.comparison", "Edited")}loading="lazy"@@ -104,6 +108,7 @@ const PixelPageCard = ({{viewMode === "diff-only" && (<figure><img+ className={privateContentClassName}src={page.diffImageUrl}alt={t("compare.pixel.diff", "Differences")}loading="lazy"@@ -120,14 +125,14 @@ const PixelPageCard = ({alt={t("compare.pixel.base", "Original")}loading="lazy"decoding="async"- className="compare-pixel-overlay-img"+ className={`compare-pixel-overlay-img ${privateContentClassName}`}/><imgsrc={page.diffImageUrl}alt={t("compare.pixel.diff", "Differences")}loading="lazy"decoding="async"- className="compare-pixel-overlay-img compare-pixel-overlay-top"+ className={`compare-pixel-overlay-img compare-pixel-overlay-top ${privateContentClassName}`}/></div>)}diff --git a/frontend/src/editor/core/components/tools/createPortfolio/CreatePortfolioSettings.tsx b/frontend/src/editor/core/components/tools/createPortfolio/CreatePortfolioSettings.tsxindex 93652ad027..bc33fb0f67 100644--- a/frontend/src/editor/core/components/tools/createPortfolio/CreatePortfolioSettings.tsx+++ b/frontend/src/editor/core/components/tools/createPortfolio/CreatePortfolioSettings.tsx@@ -6,6 +6,7 @@import { Stack, Text, TextInput } from "@mantine/core";import { useTranslation } from "react-i18next";import { CreatePortfolioParameters } from "@editor/hooks/tools/createPortfolio/useCreatePortfolioParameters";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface CreatePortfolioSettingsProps {parameters: CreatePortfolioParameters;@@ -32,6 +33,7 @@ const CreatePortfolioSettings = ({"PDF Portfolio",)}value={parameters.coverTitle}+ className={privateContentClassName}onChange={(event) =>onParameterChange("coverTitle", event.currentTarget.value)}diff --git a/frontend/src/editor/core/components/tools/editTableOfContents/BookmarkEditor.tsx b/frontend/src/editor/core/components/tools/editTableOfContents/BookmarkEditor.tsxindex 0e42f872aa..cc84f56887 100644--- a/frontend/src/editor/core/components/tools/editTableOfContents/BookmarkEditor.tsx+++ b/frontend/src/editor/core/components/tools/editTableOfContents/BookmarkEditor.tsx@@ -19,6 +19,7 @@ import {} from "@editor/utils/editTableOfContents";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface BookmarkEditorProps {bookmarks: BookmarkNode[];onChange: (bookmarks: BookmarkNode[]) => void;@@ -242,7 +243,7 @@ export default function BookmarkEditor({</ActionIcon><Stack gap={2}><Group gap="xs" align="center">- <Text fw={600}>+ <Text fw={600} className={privateContentClassName}>{bookmark.title ||t("editTableOfContents.editor.untitled",@@ -342,6 +343,7 @@ export default function BookmarkEditor({value={editingId === bookmark.id ? currentTitleInput : bookmark.title}+ className={privateContentClassName}onFocus={() => {setEditingId(bookmark.id);setCurrentTitleInput(bookmark.title);diff --git a/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx b/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsxindex 9fa0c57c7c..0aa08ee179 100644--- a/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx+++ b/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsSettings.tsx@@ -5,6 +5,7 @@ import { Button as DSButton } from "@editor/ui/Button";import { FilePicker } from "@editor/ui/FilePicker";import { Icon } from "@editor/ui/Icon";import { BookmarkNode } from "@editor/utils/editTableOfContents";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface EditTableOfContentsSettingsProps {bookmarks: BookmarkNode[];@@ -67,7 +68,11 @@ export default function EditTableOfContentsSettings({<Text size="sm" fw={500}>{t("editTableOfContents.actions.source", "Load bookmarks")}</Text>- <Text size="xs" c="dimmed">+ <Text+ size="xs"+ c="dimmed"+ className={selectedFileName ? privateContentClassName : undefined}+ >{selectedFileName? t("editTableOfContents.actions.selectedFile", {file: selectedFileName,diff --git a/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx b/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsxindex fd0194fa84..f88856dd11 100644--- a/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx+++ b/frontend/src/editor/core/components/tools/editTableOfContents/EditTableOfContentsWorkbenchView.tsx@@ -9,6 +9,7 @@ import ResultsPreview from "@editor/components/tools/shared/ResultsPreview";import BookmarkEditor from "@editor/components/tools/editTableOfContents/BookmarkEditor";import { useFileActionTerminology } from "@editor/hooks/useFileActionTerminology";import { downloadFromUrl } from "@editor/services/downloadService";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface EditTableOfContentsWorkbenchViewData {bookmarks: BookmarkNode[];@@ -131,7 +132,13 @@ const EditTableOfContentsWorkbenchView = ({<Text fw={600}>{t("editTableOfContents.editor.heading", "Bookmark editor")}</Text>- <Text size="sm" c="dimmed">+ <Text+ size="sm"+ c="dimmed"+ className={+ selectedFileName ? privateContentClassName : undefined+ }+ >{selectedFileName? t("editTableOfContents.actions.selectedFile", {file: selectedFileName,diff --git a/frontend/src/editor/core/components/tools/getPdfInfo/GetPdfInfoReportView.tsx b/frontend/src/editor/core/components/tools/getPdfInfo/GetPdfInfoReportView.tsxindex a3cf5be831..77117cb020 100644--- a/frontend/src/editor/core/components/tools/getPdfInfo/GetPdfInfoReportView.tsx+++ b/frontend/src/editor/core/components/tools/getPdfInfo/GetPdfInfoReportView.tsx@@ -14,6 +14,7 @@ import TableOfContentsSection from "@editor/components/tools/getPdfInfo/sectionsimport OtherSection from "@editor/components/tools/getPdfInfo/sections/OtherSection";import PerPageSection from "@editor/components/tools/getPdfInfo/sections/PerPageSection";import ComplianceSection from "@editor/components/tools/getPdfInfo/sections/ComplianceSection";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/** Valid section anchor IDs for navigation */const VALID_ANCHORS = new Set([@@ -112,7 +113,7 @@ const GetPdfInfoReportView: React.FC<GetPdfInfoReportViewProps> = ({size="xl"style={{ lineHeight: 1.3, wordBreak: "break-word" }}>- {entry.fileName}+ <PrivateContent>{entry.fileName}</PrivateContent><Text component="span" fw={700}>{" "}- {t("getPdfInfo.summary.title", "PDF Summary")}diff --git a/frontend/src/editor/core/components/tools/getPdfInfo/sections/SummarySection.tsx b/frontend/src/editor/core/components/tools/getPdfInfo/sections/SummarySection.tsxindex 597b7a85df..6b967d7f7c 100644--- a/frontend/src/editor/core/components/tools/getPdfInfo/sections/SummarySection.tsx+++ b/frontend/src/editor/core/components/tools/getPdfInfo/sections/SummarySection.tsx@@ -8,6 +8,7 @@ import type {} from "@editor/types/getPdfInfo";import SectionBlock from "@editor/components/tools/getPdfInfo/shared/SectionBlock";import KeyValueList from "@editor/components/tools/getPdfInfo/shared/KeyValueList";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SummarySectionProps {sections: ParsedPdfSections;@@ -241,7 +242,7 @@ const SummarySection: React.FC<SummarySectionProps> = ({<Text fw={600} size="sm">{t("getPdfInfo.summary.overviewTitle", "PDF Overview")}</Text>- <Text size="sm" c="dimmed">+ <Text size="sm" c="dimmed" className={privateContentClassName}>{summaryBlocks.overview}</Text></Stack>diff --git a/frontend/src/editor/core/components/tools/getPdfInfo/sections/TableOfContentsSection.tsx b/frontend/src/editor/core/components/tools/getPdfInfo/sections/TableOfContentsSection.tsxindex b6c5cbb4df..ac201c3b32 100644--- a/frontend/src/editor/core/components/tools/getPdfInfo/sections/TableOfContentsSection.tsx+++ b/frontend/src/editor/core/components/tools/getPdfInfo/sections/TableOfContentsSection.tsx@@ -3,6 +3,7 @@ import { Stack, Text } from "@mantine/core";import { useTranslation } from "react-i18next";import type { PdfTocEntry } from "@editor/types/getPdfInfo";import SectionBlock from "@editor/components/tools/getPdfInfo/shared/SectionBlock";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface TableOfContentsSectionProps {anchorId: string;@@ -28,7 +29,12 @@ const TableOfContentsSection: React.FC<TableOfContentsSectionProps> = ({) : (<Stack gap={4}>{tocArray.map((item, idx) => (- <Text key={idx} size="sm" c="dimmed">+ <Text+ key={idx}+ size="sm"+ c="dimmed"+ className={privateContentClassName}+ >{typeof item === "string" ? item : JSON.stringify(item)}</Text>))}diff --git a/frontend/src/editor/core/components/tools/getPdfInfo/shared/KeyValueList.tsx b/frontend/src/editor/core/components/tools/getPdfInfo/shared/KeyValueList.tsxindex 80278a7bdf..8132338baf 100644--- a/frontend/src/editor/core/components/tools/getPdfInfo/shared/KeyValueList.tsx+++ b/frontend/src/editor/core/components/tools/getPdfInfo/shared/KeyValueList.tsx@@ -1,6 +1,7 @@import React from "react";import { Group, Stack, Text } from "@mantine/core";import { useTranslation } from "react-i18next";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface KeyValueListProps {obj?: Record<string, unknown> | null;@@ -34,6 +35,7 @@ const KeyValueList: React.FC<KeyValueListProps> = ({ obj, emptyLabel }) => {<Textsize="sm"c="dimmed"+ className={privateContentClassName}style={{wordBreak: "break-word",overflowWrap: "break-word",diff --git a/frontend/src/editor/core/components/tools/getPdfInfo/shared/ScrollableCodeBlock.tsx b/frontend/src/editor/core/components/tools/getPdfInfo/shared/ScrollableCodeBlock.tsxindex 35373c0ef7..b051936a2c 100644--- a/frontend/src/editor/core/components/tools/getPdfInfo/shared/ScrollableCodeBlock.tsx+++ b/frontend/src/editor/core/components/tools/getPdfInfo/shared/ScrollableCodeBlock.tsx@@ -1,6 +1,7 @@import React from "react";import { Code, Text } from "@mantine/core";import { useTranslation } from "react-i18next";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ScrollableCodeBlockProps {content: string | null | undefined;@@ -30,6 +31,7 @@ const ScrollableCodeBlock: React.FC<ScrollableCodeBlockProps> = ({return (<Codeblock+ className={privateContentClassName}style={{whiteSpace: "pre-wrap",backgroundColor: "var(--c-surface-raised)",diff --git a/frontend/src/editor/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx b/frontend/src/editor/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsxindex cf39eaef51..3ddfb226ab 100644--- a/frontend/src/editor/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx+++ b/frontend/src/editor/core/components/tools/overlayPdfs/OverlayPdfsSettings.tsx@@ -20,6 +20,7 @@ import { Icon } from "@editor/ui/Icon";import { FilesModalContext } from "@editor/contexts/FilesModalContext";import styles from "@editor/components/tools/overlayPdfs/OverlayPdfsSettings.module.css";import { Z_INDEX_AUTOMATE_DROPDOWN } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface OverlayPdfsSettingsProps {parameters: OverlayPdfsParameters;@@ -240,7 +241,10 @@ export default function OverlayPdfsSettings({><Group gap="xs" className={styles.fileGroup}><div className={styles.fileNameContainer}>- <div className={styles.fileName} title={file.name}>+ <div+ className={`${styles.fileName} ${privateContentClassName}`}+ title={file.name}+ >{file.name}</div></div>diff --git a/frontend/src/editor/core/components/tools/redact/WordsToRedactInput.tsx b/frontend/src/editor/core/components/tools/redact/WordsToRedactInput.tsxindex 8fd7098b1b..ab0afc4ecb 100644--- a/frontend/src/editor/core/components/tools/redact/WordsToRedactInput.tsx+++ b/frontend/src/editor/core/components/tools/redact/WordsToRedactInput.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Stack, Text, TextInput, Group } from "@mantine/core";import { Button } from "@editor/ui/Button";import { ActionIcon } from "@editor/ui/ActionIcon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface WordsToRedactInputProps {wordsToRedact: string[];@@ -63,6 +64,7 @@ export default function WordsToRedactInput({whiteSpace: "nowrap",}}title={word}+ className={privateContentClassName}>{word}</Text>@@ -87,6 +89,7 @@ export default function WordsToRedactInput({"Enter a word",)}value={currentWord}+ className={privateContentClassName}onChange={(e) => setCurrentWord(e.target.value)}onKeyDown={handleKeyPress}disabled={disabled}diff --git a/frontend/src/editor/core/components/tools/removePassword/RemovePasswordSettings.tsx b/frontend/src/editor/core/components/tools/removePassword/RemovePasswordSettings.tsxindex e3844369df..ca5c238f3a 100644--- a/frontend/src/editor/core/components/tools/removePassword/RemovePasswordSettings.tsx+++ b/frontend/src/editor/core/components/tools/removePassword/RemovePasswordSettings.tsx@@ -1,6 +1,7 @@import { Stack, PasswordInput } from "@mantine/core";import { useTranslation } from "react-i18next";import { RemovePasswordParameters } from "@editor/hooks/tools/removePassword/useRemovePasswordParameters";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface RemovePasswordSettingsProps {parameters: RemovePasswordParameters;@@ -22,6 +23,7 @@ const RemovePasswordSettings = ({<Stack gap="md"><Stack gap="sm"><PasswordInput+ className={privateContentClassName}label={t("removePassword.password.label", "Current Password")}placeholder={t("removePassword.password.placeholder",diff --git a/frontend/src/editor/core/components/tools/shared/ScopedOperationButton.tsx b/frontend/src/editor/core/components/tools/shared/ScopedOperationButton.tsxindex 17f5f5e274..b343ba6c0b 100644--- a/frontend/src/editor/core/components/tools/shared/ScopedOperationButton.tsx+++ b/frontend/src/editor/core/components/tools/shared/ScopedOperationButton.tsx@@ -14,6 +14,7 @@ import { StirlingFile } from "@editor/types/fileContext";import { useAllFiles } from "@editor/contexts/FileContext";import { useViewer } from "@editor/contexts/ViewerContext";import { useNavigationState } from "@editor/contexts/NavigationContext";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface ScopedOperationButtonProps extends OperationButtonProps {selectedFiles: StirlingFile[];@@ -136,7 +137,14 @@ export function ScopedOperationButton({/>)}{viewerFileName && (- <Text size="xs" c="dimmed" ta="center" mx="md" mt={2}>+ <Text+ size="xs"+ c="dimmed"+ ta="center"+ mx="md"+ mt={2}+ className={privateContentClassName}+ >{t("tool.singleFileScope", "Only applying to: {{fileName}}", {fileName: viewerFileName,})}diff --git a/frontend/src/editor/core/components/tools/showJS/ShowJSView.tsx b/frontend/src/editor/core/components/tools/showJS/ShowJSView.tsxindex 7fc7f8f21f..06286df338 100644--- a/frontend/src/editor/core/components/tools/showJS/ShowJSView.tsx+++ b/frontend/src/editor/core/components/tools/showJS/ShowJSView.tsx@@ -21,6 +21,7 @@ import {triggerDownload,type ShowJsToken,} from "@editor/components/tools/showJS/utils";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ScriptData {scriptText: string;@@ -151,7 +152,7 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {onChange={(e) => setQuery(e.currentTarget.value)}size="xs"placeholder={t("search.placeholder", "Enter search term...")}- className="showjs-search-input"+ className={`showjs-search-input ${privateContentClassName}`}/><Text size="xs" c="dimmed">{matches.length ? `${active + 1}/${matches.length}` : "0/0"}@@ -204,7 +205,10 @@ const ShowJSView: React.FC<ShowJSViewProps> = ({ data }) => {</div><ScrollArea className="showjs-scrollarea" offsetScrollbars><div ref={scrollAreaInnerRef} className="showjs-inner">- <div ref={codeRef} className="showjs-code">+ <div+ ref={codeRef}+ className={`showjs-code ${privateContentClassName}`}+ >{lines.map((tokens, ln) => {if (isHidden(ln)) return null;const end = startToEnd.get(ln);diff --git a/frontend/src/editor/core/components/tools/sign/SavedSignaturesSection.tsx b/frontend/src/editor/core/components/tools/sign/SavedSignaturesSection.tsxindex a2403e6021..9436361504 100644--- a/frontend/src/editor/core/components/tools/sign/SavedSignaturesSection.tsx+++ b/frontend/src/editor/core/components/tools/sign/SavedSignaturesSection.tsx@@ -27,6 +27,7 @@ import {SavedSignatureType,} from "@editor/hooks/tools/sign/useSavedSignatures";import type { StorageType } from "@editor/services/signatureStorageService";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SavedSignaturesSectionProps {signatures: SavedSignature[];@@ -250,6 +251,7 @@ function SignaturePreview({ signature }: { signature: SavedSignature }) {color: signature.textColor,whiteSpace: "nowrap",}}+ className={privateContentClassName}>{signature.signerName}</Text>@@ -274,6 +276,7 @@ function SignaturePreview({ signature }: { signature: SavedSignature }) {component="img"src={signature.dataUrl}alt={signature.label}+ className={privateContentClassName}style={{maxWidth: "100%",maxHeight: "100%",@@ -380,6 +383,7 @@ function SavedSignatureCard({<TextInputlabel={translate("saved.label", "Label")}value={labelDrafts[signature.id] ?? signature.label}+ className={privateContentClassName}onChange={(event) => onLabelChange(event, signature)}onBlur={() => onLabelBlur(signature)}onKeyDown={(event) => onLabelKeyDown(event, signature)}diff --git a/frontend/src/editor/core/components/tools/sign/SignSettings.tsx b/frontend/src/editor/core/components/tools/sign/SignSettings.tsxindex 8b68897e59..1d7c60b0db 100644--- a/frontend/src/editor/core/components/tools/sign/SignSettings.tsx+++ b/frontend/src/editor/core/components/tools/sign/SignSettings.tsx@@ -42,6 +42,7 @@ import { useIsMobile } from "@editor/hooks/useIsMobile";import { buildSignaturePreview } from "@editor/utils/signaturePreview";import { Icon, type IconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type SignatureDrafts = {canvas?: string;image?: string;@@ -1046,6 +1047,7 @@ const SignSettings = ({><imgsrc={imageSignatureData}+ className={privateContentClassName}alt={translate("image.previewAlt", "Current image signature")}style={{maxWidth: "100%",diff --git a/frontend/src/editor/core/components/tools/sign/createSignature/PhoneSignaturePanel.tsx b/frontend/src/editor/core/components/tools/sign/createSignature/PhoneSignaturePanel.tsxindex 54fcf58e5f..0f4fb43b0f 100644--- a/frontend/src/editor/core/components/tools/sign/createSignature/PhoneSignaturePanel.tsx+++ b/frontend/src/editor/core/components/tools/sign/createSignature/PhoneSignaturePanel.tsx@@ -8,6 +8,7 @@ import type { MobileSignaturePayload } from "@editor/components/tools/sign/Mobilimport { parseMobileSignatureFile } from "@editor/components/tools/sign/parseMobileSignatureFile";import { TransparentPreview } from "@editor/components/tools/sign/createSignature/TransparentPreview";import styles from "@editor/components/tools/sign/createSignature/PhoneSignaturePanel.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface PhoneSignaturePanelProps {active: boolean;@@ -120,6 +121,7 @@ export function PhoneSignaturePanel({<div className={styles.qrCard}>{active && (<QRCodeSVG+ className={privateContentClassName}value={mobileUrl}size={176}level="H"diff --git a/frontend/src/editor/core/components/tools/sign/createSignature/SaveSignatureOptions.tsx b/frontend/src/editor/core/components/tools/sign/createSignature/SaveSignatureOptions.tsxindex 0ea4685362..1f1df84bb7 100644--- a/frontend/src/editor/core/components/tools/sign/createSignature/SaveSignatureOptions.tsx+++ b/frontend/src/editor/core/components/tools/sign/createSignature/SaveSignatureOptions.tsx@@ -9,6 +9,7 @@ import type {SaveScope,} from "@editor/components/tools/sign/createSignature/types";import styles from "@editor/components/tools/sign/createSignature/SaveSignatureOptions.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface SaveOptionsState {enabled: boolean;@@ -95,6 +96,7 @@ export function SaveSignatureOptions({<FormField label={t("sign.wallet.create.name", "Name")}><Inputvalue={value.label ?? defaultLabel}+ className={privateContentClassName}onChange={(event) =>update({ label: event.currentTarget.value })}diff --git a/frontend/src/editor/core/components/tools/sign/createSignature/SignatureStylePicker.tsx b/frontend/src/editor/core/components/tools/sign/createSignature/SignatureStylePicker.tsxindex 185b7a8ca4..f0b7657b9d 100644--- a/frontend/src/editor/core/components/tools/sign/createSignature/SignatureStylePicker.tsx+++ b/frontend/src/editor/core/components/tools/sign/createSignature/SignatureStylePicker.tsx@@ -7,6 +7,7 @@ import {} from "@editor/components/tools/sign/createSignature/signatureStyles";import { ControlLabel } from "@editor/components/tools/sign/createSignature/ControlLabel";import styles from "@editor/components/tools/sign/createSignature/SignatureStylePicker.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const PREVIEW_FONT_SIZE = 30;@@ -48,7 +49,7 @@ export function SignatureStylePicker({<spandata-user-content-previewdata-placeholder={!text.trim() || undefined}- className={styles.preview}+ className={`${styles.preview} ${privateContentClassName}`}style={{fontFamily: `"${font.family}", cursive`,fontSize: PREVIEW_FONT_SIZE * font.previewScale,diff --git a/frontend/src/editor/core/components/tools/sign/createSignature/TypeSignaturePanel.tsx b/frontend/src/editor/core/components/tools/sign/createSignature/TypeSignaturePanel.tsxindex 2868251724..7e0b568e0e 100644--- a/frontend/src/editor/core/components/tools/sign/createSignature/TypeSignaturePanel.tsx+++ b/frontend/src/editor/core/components/tools/sign/createSignature/TypeSignaturePanel.tsx@@ -22,6 +22,7 @@ import type {TypedSignatureSource,} from "@editor/components/tools/sign/createSignature/types";import styles from "@editor/components/tools/sign/createSignature/TypeSignaturePanel.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const RENDER_FONT_SIZE = 120;@@ -117,6 +118,7 @@ export const TypeSignaturePanel = forwardRef<<FormField label={t("sign.wallet.type.name", "Your name")}><Inputvalue={name}+ className={privateContentClassName}onChange={(event) => setName(event.currentTarget.value)}placeholder={t("sign.wallet.type.namePlaceholder",@@ -129,6 +131,7 @@ export const TypeSignaturePanel = forwardRef<<FormField label={t("sign.wallet.type.initials", "Initials")}><Inputvalue={initials}+ className={privateContentClassName}onChange={(event) => setInitialsOverride(event.currentTarget.value)}maxLength={6}/>diff --git a/frontend/src/editor/core/components/tools/sign/createSignature/UploadSignaturePanel.tsx b/frontend/src/editor/core/components/tools/sign/createSignature/UploadSignaturePanel.tsxindex f69e8ab29e..e270cf56ae 100644--- a/frontend/src/editor/core/components/tools/sign/createSignature/UploadSignaturePanel.tsx+++ b/frontend/src/editor/core/components/tools/sign/createSignature/UploadSignaturePanel.tsx@@ -14,6 +14,7 @@ import {import { useCleanedSignatureImage } from "@editor/components/tools/sign/createSignature/useCleanedSignatureImage";import type { UploadPanelHandle } from "@editor/components/tools/sign/createSignature/types";import styles from "@editor/components/tools/sign/createSignature/UploadSignaturePanel.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const ACCEPTED_TYPES = ["image/png", "image/jpeg", "image/webp"];const MAX_UPLOAD_MB = 10;@@ -115,7 +116,9 @@ export const UploadSignaturePanel = forwardRef</><div className={styles.fileRow}><Icon name="image" size={16} />- <span className={styles.fileName}>{source.name}</span>+ <span className={`${styles.fileName} ${privateContentClassName}`}>+ {source.name}+ </span>{source.size !== undefined && (<span className={styles.fileSize}>{formatFileSize(source.size)}diff --git a/frontend/src/editor/core/components/tools/sign/wallet/DeleteSignatureModal.tsx b/frontend/src/editor/core/components/tools/sign/wallet/DeleteSignatureModal.tsxindex 06f7b5ec56..b1e5879bc6 100644--- a/frontend/src/editor/core/components/tools/sign/wallet/DeleteSignatureModal.tsx+++ b/frontend/src/editor/core/components/tools/sign/wallet/DeleteSignatureModal.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Button } from "@editor/ui/Button";import { Modal } from "@editor/ui/Modal";import styles from "@editor/components/tools/sign/wallet/SignatureWallet.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface DeleteSignatureModalProps {name: string;@@ -49,7 +50,7 @@ export function DeleteSignatureModal({width="sm"footer={footer}>- <p className={styles.dialogBody}>+ <p className={`${styles.dialogBody} ${privateContentClassName}`}>{t("sign.wallet.delete.body",'"{{name}}" is removed from your signatures. Documents you already signed keep it.',diff --git a/frontend/src/editor/core/components/tools/sign/wallet/PlacedSignaturesList.tsx b/frontend/src/editor/core/components/tools/sign/wallet/PlacedSignaturesList.tsxindex 38f779e988..49fb385c0b 100644--- a/frontend/src/editor/core/components/tools/sign/wallet/PlacedSignaturesList.tsx+++ b/frontend/src/editor/core/components/tools/sign/wallet/PlacedSignaturesList.tsx@@ -5,6 +5,7 @@ import { DrawingControls } from "@editor/components/annotation/shared/DrawingConimport type { PlacedSignature } from "@editor/contexts/SignatureContext";import type { HistoryAvailability } from "@editor/hooks/useHistoryAvailability";import styles from "@editor/components/tools/sign/wallet/PlacedSignaturesList.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface PlacedSignaturesListProps {placed: PlacedSignature[];@@ -89,13 +90,18 @@ function PlacedSignatureRow({return (<li className={styles.row}>- <span className={styles.thumb} aria-hidden>+ <span+ className={`${styles.thumb} ${privateContentClassName}`}+ aria-hidden+ >{entry.imageSrc && (<img className={styles.thumbImage} src={entry.imageSrc} alt="" />)}</span><span className={styles.text}>- <span className={styles.name}>{name}</span>+ <span className={`${styles.name} ${privateContentClassName}`}>+ {name}+ </span><span className={styles.where}>{t("sign.wallet.placed.page", "Page {{page}}", {page: entry.pageIndex + 1,diff --git a/frontend/src/editor/core/components/tools/sign/wallet/PlacementStatus.tsx b/frontend/src/editor/core/components/tools/sign/wallet/PlacementStatus.tsxindex 7f64202448..865969c0db 100644--- a/frontend/src/editor/core/components/tools/sign/wallet/PlacementStatus.tsx+++ b/frontend/src/editor/core/components/tools/sign/wallet/PlacementStatus.tsx@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";import { Banner } from "@editor/ui/Banner";import { Button } from "@editor/ui/Button";import { Icon } from "@editor/ui/Icon";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface PlacementStatusProps {placing: string | null;@@ -18,11 +19,15 @@ export function PlacementStatus({ placing, onStop }: PlacementStatusProps) {<Bannertone="info"icon={icon}- description={t(- "sign.wallet.status.placing",- "Click the page to place {{name}}.",- { name: placing },- )}+ description={+ <PrivateContent>+ {t(+ "sign.wallet.status.placing",+ "Click the page to place {{name}}.",+ { name: placing },+ )}+ </PrivateContent>+ }action={<Button variant="secondary" size="sm" onClick={onStop}>{t("sign.wallet.status.stop", "Stop")}diff --git a/frontend/src/editor/core/components/tools/sign/wallet/RenameSignatureModal.tsx b/frontend/src/editor/core/components/tools/sign/wallet/RenameSignatureModal.tsxindex 47087a0047..afd4110314 100644--- a/frontend/src/editor/core/components/tools/sign/wallet/RenameSignatureModal.tsx+++ b/frontend/src/editor/core/components/tools/sign/wallet/RenameSignatureModal.tsx@@ -5,6 +5,7 @@ import { FormField } from "@editor/ui/FormField";import { Input } from "@editor/ui/Input";import { Modal } from "@editor/ui/Modal";import styles from "@editor/components/tools/sign/wallet/SignatureWallet.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface RenameSignatureModalProps {currentName: string;@@ -61,6 +62,7 @@ export function RenameSignatureModal({<Inputvalue={name}maxLength={60}+ className={privateContentClassName}disabled={saving}onChange={(event) => setName(event.currentTarget.value)}onKeyDown={(event) => {diff --git a/frontend/src/editor/core/components/tools/sign/wallet/SignatureTile.tsx b/frontend/src/editor/core/components/tools/sign/wallet/SignatureTile.tsxindex b34b11b8dc..e7bedb8cad 100644--- a/frontend/src/editor/core/components/tools/sign/wallet/SignatureTile.tsx+++ b/frontend/src/editor/core/components/tools/sign/wallet/SignatureTile.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Dropdown } from "@editor/ui/Dropdown";import { Icon, type IconName } from "@editor/ui/Icon";import styles from "@editor/components/tools/sign/wallet/SignatureTile.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface SignatureTileAction {id: string;@@ -37,7 +38,10 @@ export function SignatureTile({const defaultLabel = t("sign.wallet.default", "Default");return (- <div className={styles.tile} data-testid="signature-tile">+ <div+ className={`${styles.tile} ${privateContentClassName}`}+ data-testid="signature-tile"+ ><buttontype="button"className={styles.paper}diff --git a/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureReportView.tsx b/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureReportView.tsxindex dbe9749ae2..c6cb8ec88e 100644--- a/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureReportView.tsx+++ b/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureReportView.tsx@@ -9,6 +9,7 @@ import "@editor/components/tools/validateSignature/reportView/styles.css";import ThumbnailPreview from "@editor/components/tools/validateSignature/reportView/ThumbnailPreview";import FileSummaryHeader from "@editor/components/tools/validateSignature/reportView/FileSummaryHeader";import SignatureSection from "@editor/components/tools/validateSignature/reportView/SignatureSection";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ValidateSignatureReportViewProps {data: SignatureValidationReportData;@@ -82,7 +83,12 @@ const PageSummary = ({<Stack gap="sm" style={{ flex: 1 }}><Group justify="space-between" align="flex-start"><div>- <Text fw={700} size="xl" style={{ lineHeight: 1.1 }}>+ <Text+ fw={700}+ size="xl"+ style={{ lineHeight: 1.1 }}+ className={privateContentClassName}+ >{entry.fileName}</Text><Text size="sm" c="dimmed">diff --git a/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureResults.tsx b/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureResults.tsxindex 64a460fa8d..42b5b8ccaf 100644--- a/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureResults.tsx+++ b/frontend/src/editor/core/components/tools/validateSignature/ValidateSignatureResults.tsx@@ -22,6 +22,7 @@ import {computeSignatureStatus,type SignatureStatusKind,} from "@editor/hooks/tools/validateSignature/utils/signatureStatus";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Worst trust-aware status across a file's signatures - keeps the summary badge// consistent with the per-signature badges in the report (valid vs unverified vs invalid).@@ -251,7 +252,10 @@ const ValidateSignatureResults = ({style={{ borderLeft: "2px solid var(--mantine-color-gray-4)" }}><Group justify="space-between" align="flex-start">- <div style={{ flex: 1, minWidth: 0 }}>+ <div+ className={privateContentClassName}+ style={{ flex: 1, minWidth: 0 }}+ ><FitTexttext={result.fileName}lines={2}diff --git a/frontend/src/editor/core/components/tools/validateSignature/reportView/SignatureSection.tsx b/frontend/src/editor/core/components/tools/validateSignature/reportView/SignatureSection.tsxindex 5106d681b9..db9ebd4ac7 100644--- a/frontend/src/editor/core/components/tools/validateSignature/reportView/SignatureSection.tsx+++ b/frontend/src/editor/core/components/tools/validateSignature/reportView/SignatureSection.tsx@@ -4,6 +4,7 @@ import type { SignatureValidationSignature } from "@editor/types/validateSignatuimport SignatureStatusBadge from "@editor/components/tools/validateSignature/reportView/SignatureStatusBadge";import FieldBlock from "@editor/components/tools/validateSignature/reportView/FieldBlock";import "@editor/components/tools/validateSignature/reportView/styles.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";const formatDate = (value?: string | null) => {if (!value) return "-";@@ -25,7 +26,7 @@ const SignatureSection = ({const signatureFields = [FieldBlock(t("validateSignature.signer", "Signer"),- signature.signerName || "-",+ <PrivateContent>{signature.signerName || "-"}</PrivateContent>,),FieldBlock(t("validateSignature.date", "Date"),@@ -33,26 +34,26 @@ const SignatureSection = ({),FieldBlock(t("validateSignature.reason", "Reason"),- signature.reason || "-",+ <PrivateContent>{signature.reason || "-"}</PrivateContent>,),FieldBlock(t("validateSignature.location", "Location"),- signature.location || "-",+ <PrivateContent>{signature.location || "-"}</PrivateContent>,),];const certificateFields = [FieldBlock(t("validateSignature.cert.issuer", "Issuer"),- signature.issuerDN || "-",+ <PrivateContent>{signature.issuerDN || "-"}</PrivateContent>,),FieldBlock(t("validateSignature.cert.subject", "Subject"),- signature.subjectDN || "-",+ <PrivateContent>{signature.subjectDN || "-"}</PrivateContent>,),FieldBlock(t("validateSignature.cert.serialNumber", "Serial Number"),- signature.serialNumber || "-",+ <PrivateContent>{signature.serialNumber || "-"}</PrivateContent>,),FieldBlock(t("validateSignature.cert.validFrom", "Valid From"),diff --git a/frontend/src/editor/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx b/frontend/src/editor/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsxindex 106eeec5f8..42c645000f 100644--- a/frontend/src/editor/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx+++ b/frontend/src/editor/core/components/tools/validateSignature/reportView/ThumbnailPreview.tsx@@ -1,6 +1,7 @@import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import "@editor/components/tools/validateSignature/reportView/styles.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const ThumbnailPreview = ({thumbnailUrl,@@ -12,7 +13,7 @@ const ThumbnailPreview = ({const { t } = useTranslation();if (thumbnailUrl) {return (- <div className="thumbnail-container">+ <div className={`thumbnail-container ${privateContentClassName}`}><imgsrc={thumbnailUrl}alt={t(diff --git a/frontend/src/editor/core/components/viewer/AnnotationMenuButtons.tsx b/frontend/src/editor/core/components/viewer/AnnotationMenuButtons.tsxindex e2131c968a..0faf6feeda 100644--- a/frontend/src/editor/core/components/viewer/AnnotationMenuButtons.tsx+++ b/frontend/src/editor/core/components/viewer/AnnotationMenuButtons.tsx@@ -5,6 +5,7 @@ import { Icon } from "@editor/ui/Icon";import { Button } from "@editor/ui/Button";import type { FirstLinkTarget } from "@editor/components/viewer/useAnnotationMenuHandlers";import "@editor/components/viewer/TextSelectionMenu.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function DeleteButton({ onDelete }: { onDelete: () => void }) {const { t } = useTranslation();@@ -145,6 +146,7 @@ export function LinkButton({<TextInputplaceholder="https://..."value={url}+ className={privateContentClassName}onChange={(e) => setUrl(e.currentTarget.value)}size="sm"style={{ minWidth: 220 }}diff --git a/frontend/src/editor/core/components/viewer/AttachmentSidebar.tsx b/frontend/src/editor/core/components/viewer/AttachmentSidebar.tsxindex 39f9c795dc..6e03a063d4 100644--- a/frontend/src/editor/core/components/viewer/AttachmentSidebar.tsx+++ b/frontend/src/editor/core/components/viewer/AttachmentSidebar.tsx@@ -21,6 +21,7 @@ import { detectNonPdfFileType, isPdfFile } from "@editor/utils/fileUtils";import { readPortfolioMemberBytes } from "@editor/utils/portfolioMembers";import { downloadFile } from "@editor/services/downloadService";import "@editor/components/viewer/AttachmentSidebar.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AttachmentSidebarProps {visible: boolean;@@ -618,11 +619,11 @@ export const AttachmentSidebar = ({className="attachment-item-wrapper"><div- className={+ className={`${isCurrent? "attachment-item attachment-item--current": "attachment-item"- }+ } ${privateContentClassName}`}onClick={rowClick}role="button"tabIndex={0}diff --git a/frontend/src/editor/core/components/viewer/BookmarkSidebar.tsx b/frontend/src/editor/core/components/viewer/BookmarkSidebar.tsxindex 6813649468..28659549be 100644--- a/frontend/src/editor/core/components/viewer/BookmarkSidebar.tsx+++ b/frontend/src/editor/core/components/viewer/BookmarkSidebar.tsx@@ -23,6 +23,7 @@ import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import { SidebarBase } from "@editor/components/viewer/SidebarBase";import "@editor/components/viewer/BookmarkSidebar.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface BookmarkSidebarProps {visible: boolean;@@ -649,7 +650,11 @@ export const BookmarkSidebar = ({<span className="bookmark-item__dash">-</span>)}<div className="bookmark-item__content">- <Text size="sm" fw={500} className="bookmark-item__title">+ <Text+ size="sm"+ fw={500}+ className={`bookmark-item__title ${privateContentClassName}`}+ >{node.title || t("viewer.bookmarks.untitled", "Untitled")}</Text>{pageNumber && (@@ -814,6 +819,7 @@ export const BookmarkSidebar = ({</Text><TextInputsize="xs"+ className={privateContentClassName}placeholder={t("viewer.bookmarks.bookmarkTitle","Bookmark title",diff --git a/frontend/src/editor/core/components/viewer/LayerSidebar.tsx b/frontend/src/editor/core/components/viewer/LayerSidebar.tsxindex d2cb251cf3..047d4574cf 100644--- a/frontend/src/editor/core/components/viewer/LayerSidebar.tsx+++ b/frontend/src/editor/core/components/viewer/LayerSidebar.tsx@@ -13,6 +13,8 @@ import {} from "@editor/components/viewer/layerUtils";import type { LayerInfo } from "@editor/components/viewer/layerUtils";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export type { LayerInfo };interface LayerSidebarProps {@@ -267,12 +269,14 @@ export function LayerSidebar({)}<Tooltip- label={layer.name}+ label={<PrivateContent>{layer.name}</PrivateContent>}position="left"withinPortaldisabled={layer.name.length < 20}>- <span className="layer-item__label">{layer.name}</span>+ <span className={`layer-item__label ${privateContentClassName}`}>+ {layer.name}+ </span></Tooltip></div>diff --git a/frontend/src/editor/core/components/viewer/LinkLayer.tsx b/frontend/src/editor/core/components/viewer/LinkLayer.tsxindex 9605f84ce3..a92003d79b 100644--- a/frontend/src/editor/core/components/viewer/LinkLayer.tsx+++ b/frontend/src/editor/core/components/viewer/LinkLayer.tsx@@ -23,6 +23,7 @@ import { Button } from "@editor/ui/Button";import { ActionIcon } from "@editor/ui/ActionIcon";import { openExternalTab } from "@editor/platform/openExternalTab";import { getExternalHref } from "@editor/utils/externalUrl";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// ---------------------------------------------------------------------------// Helpers@@ -172,7 +173,7 @@ const LinkToolbar: React.FC<LinkToolbarProps> = React.memo({/* Navigate / Open */}<Buttonvariant="tertiary"- className="pdf-link-toolbar-btn pdf-link-toolbar-btn--go"+ className={`pdf-link-toolbar-btn pdf-link-toolbar-btn--go ${privateContentClassName}`}onClick={(e) => {e.stopPropagation();onNavigate(annotationLink);diff --git a/frontend/src/editor/core/components/viewer/NonPdfViewer.tsx b/frontend/src/editor/core/components/viewer/NonPdfViewer.tsxindex 9cd6bf26f7..84d88ddfa2 100644--- a/frontend/src/editor/core/components/viewer/NonPdfViewer.tsx+++ b/frontend/src/editor/core/components/viewer/NonPdfViewer.tsx@@ -18,6 +18,7 @@ import { CsvViewer } from "@editor/components/viewer/nonpdf/CsvViewer";import { JsonViewer } from "@editor/components/viewer/nonpdf/JsonViewer";import { TextViewer } from "@editor/components/viewer/nonpdf/TextViewer";import { HtmlViewer } from "@editor/components/viewer/nonpdf/HtmlViewer";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface ViewerProps {onClose?: () => void;@@ -113,6 +114,7 @@ export function NonPdfViewer({ file }: NonPdfViewerProps) {onConvertToPdf={isConvertAvailable ? handleConvertToPdf : undefined}/><Box+ className={privateContentClassName}style={{flex: 1,display: "flex",diff --git a/frontend/src/editor/core/components/viewer/SearchInterface.tsx b/frontend/src/editor/core/components/viewer/SearchInterface.tsxindex 0f1953d781..bb39ba2da9 100644--- a/frontend/src/editor/core/components/viewer/SearchInterface.tsx+++ b/frontend/src/editor/core/components/viewer/SearchInterface.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";import { ActionIcon } from "@editor/ui/ActionIcon";import { ViewerContext } from "@editor/contexts/ViewerContext";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SearchInterfaceProps {visible: boolean;@@ -223,6 +224,7 @@ export function SearchInterface({ visible, onClose }: SearchInterfaceProps) {ref={inputRef}placeholder={t("search.placeholder", "Enter search term...")}value={searchQuery}+ className={privateContentClassName}onChange={(e) => {const newValue = e.currentTarget.value;setSearchQuery(newValue);diff --git a/frontend/src/editor/core/components/viewer/SidebarBase.tsx b/frontend/src/editor/core/components/viewer/SidebarBase.tsxindex e631d2113a..60054e8f36 100644--- a/frontend/src/editor/core/components/viewer/SidebarBase.tsx+++ b/frontend/src/editor/core/components/viewer/SidebarBase.tsx@@ -5,6 +5,7 @@ import { ActionIcon } from "@editor/ui/ActionIcon";import "@editor/components/viewer/SidebarBase.css";import { Icon, isIconName, type IconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export const SIDEBAR_WIDTH = "15rem";export interface SidebarBaseProps {@@ -105,6 +106,7 @@ export function SidebarBase({<Box px="sm" pb="sm" className="sidebar-base__search"><TextInputvalue={searchTerm ?? ""}+ className={privateContentClassName}placeholder={searchPlaceholder ??t("viewer.sidebar.searchPlaceholder", "Search...")diff --git a/frontend/src/editor/core/components/viewer/SignaturePreviewLayer.tsx b/frontend/src/editor/core/components/viewer/SignaturePreviewLayer.tsxindex b1bea1e1ee..f834207efa 100644--- a/frontend/src/editor/core/components/viewer/SignaturePreviewLayer.tsx+++ b/frontend/src/editor/core/components/viewer/SignaturePreviewLayer.tsx@@ -10,6 +10,7 @@ import {Z_INDEX_SIGNATURE_OVERLAY_HANDLE,} from "@editor/styles/zIndex";import type { SignaturePreview } from "@editor/components/viewer/viewerTypes";+import { PrivateContent } from "@editor/components/shared/PrivateContent";const DEFAULT_COLOR = "rgb(0, 122, 204)";const RESIZE_HANDLES = [@@ -136,7 +137,7 @@ export const SignaturePreviewLayer = memo(function SignaturePreviewLayer({return (<Tooltipkey={preview.id}- label={preview.participantName ?? ""}+ label={<PrivateContent>{preview.participantName}</PrivateContent>}position="top"withArrowdisabled={!preview.participantName}diff --git a/frontend/src/editor/core/components/viewer/StampPlacementOverlay.tsx b/frontend/src/editor/core/components/viewer/StampPlacementOverlay.tsxindex 303ccfd23e..1d6a492144 100644--- a/frontend/src/editor/core/components/viewer/StampPlacementOverlay.tsx+++ b/frontend/src/editor/core/components/viewer/StampPlacementOverlay.tsx@@ -15,6 +15,7 @@ import {MIN_SIGNATURE_DIMENSION_REM,OVERLAY_EDGE_PADDING_REM,} from "@editor/constants/signConstants";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Convert rem to pixels using browser's base font size (typically 16px)const remToPx = (rem: number) =>@@ -182,6 +183,7 @@ export const StampPlacementOverlay: React.FC<StampPlacementOverlayProps> = ({return (<Box+ className={privateContentClassName}style={{position: "absolute",pointerEvents: "none",diff --git a/frontend/src/editor/core/components/viewer/TextSelectionMenu.tsx b/frontend/src/editor/core/components/viewer/TextSelectionMenu.tsxindex adcef1e29a..4e51e54490 100644--- a/frontend/src/editor/core/components/viewer/TextSelectionMenu.tsx+++ b/frontend/src/editor/core/components/viewer/TextSelectionMenu.tsx@@ -32,6 +32,7 @@ import {type ReadAloudFromSelectionDetail,} from "@editor/components/viewer/readAloudFromSelection";import "@editor/components/viewer/TextSelectionMenu.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export type TextSelectionMenuProps = SelectionSelectionMenuProps & {documentId?: string;@@ -485,6 +486,7 @@ function TextSelectionMenuInner({<TextInputplaceholder="https://..."value={linkUrl}+ className={privateContentClassName}onChange={(e) => setLinkUrl(e.currentTarget.value)}onKeyDown={(e) => {if (e.key === "Enter" && linkUrl.trim()) {diff --git a/frontend/src/editor/core/components/viewer/readerRail/ReaderRail.tsx b/frontend/src/editor/core/components/viewer/readerRail/ReaderRail.tsxindex e9d45164bb..e48c72b0ef 100644--- a/frontend/src/editor/core/components/viewer/readerRail/ReaderRail.tsx+++ b/frontend/src/editor/core/components/viewer/readerRail/ReaderRail.tsx@@ -16,6 +16,7 @@ import { useFilesModalContext } from "@editor/contexts/FilesModalContext";import { truncateCenter } from "@editor/utils/textUtils";import { isStirlingFile } from "@editor/types/fileContext";import "@editor/components/viewer/readerRail/ReaderRail.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The quick-nav rail's icon size, so the two rails read as one family. */const SIZE = "1.125rem";@@ -184,7 +185,10 @@ export function ReaderRail() {data-current={doc.id === activeFileId || undefined}onClick={() => setActiveFileId(doc.id)}>- <span className="reader-rail__doc-name" title={doc.name}>+ <span+ className={`reader-rail__doc-name ${privateContentClassName}`}+ title={doc.name}+ >{truncateCenter(doc.name, 48)}</span></Menu.Item>diff --git a/frontend/src/editor/core/contexts/DamagedFileRepairContext.tsx b/frontend/src/editor/core/contexts/DamagedFileRepairContext.tsxindex 469e27291c..c7f7aa414c 100644--- a/frontend/src/editor/core/contexts/DamagedFileRepairContext.tsx+++ b/frontend/src/editor/core/contexts/DamagedFileRepairContext.tsx@@ -73,6 +73,7 @@ export function DamagedFileRepairProvider({title: t("damagedPdf.repaired", "Repaired {{name}}", {name: repairing.name,}),+ privateTitle: true,expandable: false,durationMs: 3000,});@@ -82,7 +83,9 @@ export function DamagedFileRepairProvider({title: t("damagedPdf.repairFailed", "Couldn't repair {{name}}", {name: repairing.name,}),+ privateTitle: true,body: operation.errorMessage ?? undefined,+ privateBody: true,expandable: false,durationMs: 6000,});diff --git a/frontend/src/editor/core/contexts/FileContext.tsx b/frontend/src/editor/core/contexts/FileContext.tsxindex 922a8f656f..6336269903 100644--- a/frontend/src/editor/core/contexts/FileContext.tsx+++ b/frontend/src/editor/core/contexts/FileContext.tsx@@ -996,6 +996,7 @@ function FileContextInner({"encryptedPdfUnlock.sessionSuccessBody","Protection retained.",),+ privateBody: Boolean(fileName),expandable: false,isPersistentPopup: false,});diff --git a/frontend/src/editor/core/hooks/usePosthogTracking.ts b/frontend/src/editor/core/hooks/usePosthogTracking.tsindex 7f2abd29e3..72ee9a3516 100644--- a/frontend/src/editor/core/hooks/usePosthogTracking.ts+++ b/frontend/src/editor/core/hooks/usePosthogTracking.ts@@ -49,6 +49,23 @@ function initializePosthog(posthog: Posthog, key: string, host: string): void {opt_out_capturing_by_default: true,persistence: "memory",cross_subdomain_cookie: false,+ // Supabase auth redirects carry the session tokens in the hash.+ disable_capture_url_hashes: true,+ session_recording: { blockSelector: ".ph-sensitive" },+ // Autocapture records attributes even on ph-sensitive elements, and these+ // are the ones that carry file names, link targets and usernames. A link's+ // href is still sent when the link is outside ph-sensitive.+ autocapture: {+ element_attribute_ignorelist: [+ "aria-label",+ "title",+ "alt",+ "href",+ "value",+ "data-testid",+ "data-slot-filename",+ ],+ },});}diff --git a/frontend/src/editor/core/hooks/useSuperSearch.ts b/frontend/src/editor/core/hooks/useSuperSearch.tsindex 44dd0ee621..e03606e1ec 100644--- a/frontend/src/editor/core/hooks/useSuperSearch.ts+++ b/frontend/src/editor/core/hooks/useSuperSearch.ts@@ -255,6 +255,7 @@ export function rankFileResults(key: `file:${item.id}`,group: "files",title: item.name,+ privateContent: true,// The file-type doc icon (PDF/image/doc/…) the sidebar and grid use,// rather than a flat generic file glyph.icon: createElement(FileDocIcon, {diff --git a/frontend/src/editor/core/pages/MobileScannerPage.tsx b/frontend/src/editor/core/pages/MobileScannerPage.tsxindex 58db633883..bb1811a21c 100644--- a/frontend/src/editor/core/pages/MobileScannerPage.tsx+++ b/frontend/src/editor/core/pages/MobileScannerPage.tsx@@ -23,6 +23,7 @@ import {} from "@editor/utils/loadJscanify";import apiClient from "@editor/services/apiClient";import { fitThumbs, THUMB_GAP } from "@editor/utils/mobileScannerThumbs";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const API_BASE = (apiClient.defaults.baseURL ?? "").replace(/\/+$/, "");@@ -1098,6 +1099,7 @@ export default function MobileScannerPage() {← {t("mobileScanner.back", "Back")}</DSButton><img+ className={privateContentClassName}src={viewing}alt={t("mobileScanner.imagePosition",@@ -1273,6 +1275,7 @@ export default function MobileScannerPage() {← {t("mobileScanner.back", "Back")}</DSButton><video+ className={privateContentClassName}ref={videoRef}autoPlayplaysInline@@ -1286,6 +1289,7 @@ export default function MobileScannerPage() {/><canvas ref={canvasRef} style={{ display: "none" }} /><canvas+ className={privateContentClassName}ref={highlightCanvasRef}style={{position: "absolute",@@ -1441,6 +1445,7 @@ export default function MobileScannerPage() {}}><img+ className={privateContentClassName}src={img}alt=""style={{diff --git a/frontend/src/editor/core/pages/MobileSignPage.tsx b/frontend/src/editor/core/pages/MobileSignPage.tsxindex dc56151cda..96c7f53b67 100644--- a/frontend/src/editor/core/pages/MobileSignPage.tsx+++ b/frontend/src/editor/core/pages/MobileSignPage.tsx@@ -23,6 +23,7 @@ import {type MobileDrawCanvasHandle,} from "@editor/components/mobileSign/MobileDrawCanvas";import apiClient from "@editor/services/apiClient";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Use the configured API base (e.g. api.stirling.com), not the page origin.const API_BASE = (apiClient.defaults.baseURL ?? "").replace(/\/+$/, "");@@ -476,6 +477,7 @@ export default function MobileSignPage() {{photoDataUrl ? (<Card withBorder radius="md" style={{ background: "white" }}><Image+ className={privateContentClassName}src={photoDataUrl}alt={t("mobileSign.photo.previewAlt", "Signature")}fit="contain"diff --git a/frontend/src/editor/core/services/fileStorage.ts b/frontend/src/editor/core/services/fileStorage.tsindex 6177145bfb..2dfa4dbe16 100644--- a/frontend/src/editor/core/services/fileStorage.ts+++ b/frontend/src/editor/core/services/fileStorage.ts@@ -594,6 +594,7 @@ class FileStorageService {'"{{name}}" is saved in this browser but its contents can no longer be read. Upload the file again to keep working on it.',{ name: record.name },),+ privateBody: true,expandable: false,durationMs: 8000,});diff --git a/frontend/src/editor/core/services/fileSyncService.ts b/frontend/src/editor/core/services/fileSyncService.tsindex 73179079a7..837deb1582 100644--- a/frontend/src/editor/core/services/fileSyncService.ts+++ b/frontend/src/editor/core/services/fileSyncService.ts@@ -554,6 +554,7 @@ export async function materializeServerStubs("Some files couldn't be opened",),body: bodyText,+ privateBody: true,expandable: false,durationMs: 5000,});diff --git a/frontend/src/editor/core/tests/stubbed/viewer-in-place-reload.spec.ts b/frontend/src/editor/core/tests/stubbed/viewer-in-place-reload.spec.tsindex 33cb84487e..7b7acb9d7d 100644--- a/frontend/src/editor/core/tests/stubbed/viewer-in-place-reload.spec.ts+++ b/frontend/src/editor/core/tests/stubbed/viewer-in-place-reload.spec.ts@@ -89,7 +89,7 @@ async function saveDocument(page: import("@playwright/test").Page) {function tagViewerWrapper(page: import("@playwright/test").Page) {return page.evaluate(() => {const span = document.querySelector<HTMLElement>(- ".ph-no-capture:has([data-page-index])",+ ".ph-sensitive:has([data-page-index])",);span?.setAttribute("data-reload-probe", "1");});diff --git a/frontend/src/editor/core/tests/stubbed/viewer-redaction-exit-restores-selection.spec.ts b/frontend/src/editor/core/tests/stubbed/viewer-redaction-exit-restores-selection.spec.tsindex 680700f36e..222c8a3322 100644--- a/frontend/src/editor/core/tests/stubbed/viewer-redaction-exit-restores-selection.spec.ts+++ b/frontend/src/editor/core/tests/stubbed/viewer-redaction-exit-restores-selection.spec.ts@@ -179,7 +179,7 @@ test("saving redactions keeps the live document mounted", async ({ page }) => {await page.evaluate(() => {const span = document.querySelector<HTMLElement>(- ".ph-no-capture:has([data-page-index])",+ ".ph-sensitive:has([data-page-index])",);span?.setAttribute("data-reload-probe", "1");for (const el of document.querySelectorAll("[data-page-index]")) {diff --git a/frontend/src/editor/core/tools/ChangePermissions.tsx b/frontend/src/editor/core/tools/ChangePermissions.tsxindex 4e0669543e..269d1e8368 100644--- a/frontend/src/editor/core/tools/ChangePermissions.tsx+++ b/frontend/src/editor/core/tools/ChangePermissions.tsx@@ -11,6 +11,7 @@ import { useBaseTool } from "@editor/hooks/tools/shared/useBaseTool";import { BaseToolProps, ToolComponent } from "@editor/types/tool";import { usePdfAccess } from "@editor/hooks/usePdfAccess";import { getPdfAccess } from "@editor/services/pdfAccessService";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const ChangePermissions = (props: BaseToolProps) => {const { t } = useTranslation();@@ -107,6 +108,7 @@ const ChangePermissions = (props: BaseToolProps) => {)}{showOwnerPassword && (<PasswordInput+ className={privateContentClassName}size="xs"label={t("encryptedPdfUnlock.newOwnerPassword",diff --git a/frontend/src/editor/core/tools/Compare.tsx b/frontend/src/editor/core/tools/Compare.tsxindex 78299661d6..646a96681a 100644--- a/frontend/src/editor/core/tools/Compare.tsx+++ b/frontend/src/editor/core/tools/Compare.tsx@@ -30,6 +30,7 @@ import {FileSelectorResult,} from "@editor/components/shared/FileSelectorPicker";import "@editor/components/tools/compare/compareView.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const CUSTOM_VIEW_ID = "compareWorkbenchView";const CUSTOM_WORKBENCH_ID = "custom:compareWorkbenchView" as const;@@ -359,6 +360,7 @@ const Compare = (props: BaseToolProps) => {data-testid={`compare-slot-${role}`}data-slot-state="filled"data-slot-filename={stub?.name}+ className={privateContentClassName}style={{border: "1px solid var(--c-border)",borderRadius: "var(--radius-md)",diff --git a/frontend/src/editor/core/tools/annotate/AnnotationPanel.tsx b/frontend/src/editor/core/tools/annotate/AnnotationPanel.tsxindex 3f1897cb32..f948e7ccc5 100644--- a/frontend/src/editor/core/tools/annotate/AnnotationPanel.tsx+++ b/frontend/src/editor/core/tools/annotate/AnnotationPanel.tsx@@ -35,6 +35,7 @@ import type { SignParameters } from "@editor/hooks/tools/sign/useSignParameters"import type { BuildToolOptionsExtras } from "@editor/tools/annotate/useAnnotationStyleState";import { Icon, type IconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface StyleState {inkColor: string;inkWidth: number;@@ -508,7 +509,7 @@ export function AnnotationPanel(props: AnnotationPanelProps) {disabled={false}/>{stampImageData && (- <Stack gap="xs">+ <Stack gap="xs" className={privateContentClassName}><Text size="xs" c="dimmed">{t("annotation.imagePreview", "Preview")}</Text>diff --git a/frontend/src/editor/core/tools/formFill/FieldInput.tsx b/frontend/src/editor/core/tools/formFill/FieldInput.tsxindex c0d88b6f98..f816e38856 100644--- a/frontend/src/editor/core/tools/formFill/FieldInput.tsx+++ b/frontend/src/editor/core/tools/formFill/FieldInput.tsx@@ -18,6 +18,10 @@ import {import { useTranslation } from "react-i18next";import { useFieldValue } from "@editor/tools/formFill/FormFillContext";import type { FormField } from "@editor/tools/formFill/types";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";++// Dropdowns portal out of the field container, and their options are the PDF's.+const PRIVATE_DROPDOWN = { classNames: { dropdown: privateContentClassName } };function FieldInputInner({field,@@ -101,6 +105,7 @@ function FieldInputInner({disabled={field.readOnly}aria-label={field.label || field.name}aria-required={field.required}+ comboboxProps={PRIVATE_DROPDOWN}styles={{ input: { fontSize: "0.8125rem" } }}/>);@@ -124,6 +129,7 @@ function FieldInputInner({disabled={field.readOnly}aria-label={field.label || field.name}aria-required={field.required}+ comboboxProps={PRIVATE_DROPDOWN}styles={{ input: { fontSize: "0.8125rem" } }}/>);@@ -140,6 +146,7 @@ function FieldInputInner({disabled={field.readOnly}aria-label={field.label || field.name}aria-required={field.required}+ comboboxProps={PRIVATE_DROPDOWN}styles={{ input: { fontSize: "0.8125rem" } }}/>);diff --git a/frontend/src/editor/core/tools/formFill/FormFieldModifyPanel.tsx b/frontend/src/editor/core/tools/formFill/FormFieldModifyPanel.tsxindex 5f115b23d1..c9fa9ff5f2 100644--- a/frontend/src/editor/core/tools/formFill/FormFieldModifyPanel.tsx+++ b/frontend/src/editor/core/tools/formFill/FormFieldModifyPanel.tsx@@ -31,6 +31,7 @@ import { isTextEntryTarget } from "@editor/tools/formFill/usePageScale";import { PendingFields } from "@editor/tools/formFill/PendingFields";import { SkippedEditsAlert } from "@editor/tools/formFill/SkippedEditsAlert";import styles from "@editor/tools/formFill/FormFill.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FormFieldModifyPanelProps {currentFile: File | Blob | null;@@ -337,7 +338,12 @@ function FieldRow({ field, pageIdx, selectedRowRef }: FieldRowProps) {><Icon name={FIELD_TYPE_ICON[field.type]} size={16} /></span>- <Text size="xs" truncate td={deleted ? "line-through" : undefined}>+ <Text+ size="xs"+ truncate+ td={deleted ? "line-through" : undefined}+ className={privateContentClassName}+ >{field.label || field.name}</Text></Group>diff --git a/frontend/src/editor/core/tools/formFill/FormFieldOverlay.tsx b/frontend/src/editor/core/tools/formFill/FormFieldOverlay.tsxindex 5efeec5ea6..d17ff15066 100644--- a/frontend/src/editor/core/tools/formFill/FormFieldOverlay.tsx+++ b/frontend/src/editor/core/tools/formFill/FormFieldOverlay.tsx@@ -322,7 +322,6 @@ function WidgetInputInner({) : (<inputtype="text"- id={`${field.name}_${widget.pageIndex}_${widget.x}_${widget.y}`}value={value}onChange={(e) => onChange(field.name, e.target.value)}onFocus={handleFocus}@@ -403,8 +402,6 @@ function WidgetInputInner({case "combobox":case "listbox": {- const inputId = `${field.name}_${widget.pageIndex}_${widget.x}_${widget.y}`;-// For multi-select, value should be an array// We store as comma-separated string, so parse itconst selectValue = field.multiSelect@@ -429,7 +426,6 @@ function WidgetInputInner({return (<div {...commonProps} title={error || field.tooltip || field.label}><select- id={inputId}value={selectValue}onChange={handleSelectChange}onFocus={handleFocus}diff --git a/frontend/src/editor/core/tools/formFill/FormFieldPropertyEditor.tsx b/frontend/src/editor/core/tools/formFill/FormFieldPropertyEditor.tsxindex 60f78db9d9..afb2cb9f8a 100644--- a/frontend/src/editor/core/tools/formFill/FormFieldPropertyEditor.tsx+++ b/frontend/src/editor/core/tools/formFill/FormFieldPropertyEditor.tsx@@ -17,6 +17,7 @@ import { Button } from "@editor/ui/Button";import { ActionIcon } from "@editor/ui/ActionIcon";import { useTranslation } from "react-i18next";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** A switch's help has to wrap the control: Mantine does not surface a tooltip from its label. */function SwitchWithHelp({help,@@ -193,6 +194,7 @@ export function FormFieldPropertyEditor({/>}value={value.name ?? ""}+ className={privateContentClassName}onChange={(e) => onChange({ name: e.currentTarget.value })}/>)}@@ -220,6 +222,7 @@ export function FormFieldPropertyEditor({/>}value={value.label ?? ""}+ className={privateContentClassName}onChange={(e) => onChange({ label: e.currentTarget.value })}/>@@ -269,6 +272,7 @@ export function FormFieldPropertyEditor({size="xs"style={{ flex: 1 }}value={opt}+ className={privateContentClassName}placeholder={t("formFill.editor.optionPlaceholder","Option {{n}}",@@ -359,6 +363,7 @@ export function FormFieldPropertyEditor({/>}value={value.defaultValue ?? ""}+ className={privateContentClassName}onChange={(e) => onChange({ defaultValue: e.currentTarget.value })}/>)}@@ -375,6 +380,7 @@ export function FormFieldPropertyEditor({/>}value={value.tooltip ?? ""}+ className={privateContentClassName}onChange={(e) => onChange({ tooltip: e.currentTarget.value })}/>@@ -431,6 +437,7 @@ export function FormFieldPropertyEditor({/>}value={action.url}+ className={privateContentClassName}onChange={(e) =>onChange({buttonAction: buildButtonAction(diff --git a/frontend/src/editor/core/tools/formFill/FormFill.tsx b/frontend/src/editor/core/tools/formFill/FormFill.tsxindex 653909d5fb..cc7eeda629 100644--- a/frontend/src/editor/core/tools/formFill/FormFill.tsx+++ b/frontend/src/editor/core/tools/formFill/FormFill.tsx@@ -55,6 +55,7 @@ import { FormFieldModifyPanel } from "@editor/tools/formFill/FormFieldModifyPaneimport { assertFilesNotBlocked } from "@editor/services/policyFileGuard";import { dispatchFormApply } from "@editor/tools/formFill/formFillEvents";import { useFormAutoMode } from "@editor/tools/formFill/useFormAutoMode";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";import styles from "@editor/tools/formFill/FormFill.module.css";// ---------------------------------------------------------------------------@@ -790,7 +791,7 @@ const FormFill = (_props: BaseToolProps) => {ref={isFieldActive ? activeFieldRef : undefined}className={`${styles.fieldCard} ${isFieldActive ? styles.fieldCardActive : ""- } ${hasError ? styles.fieldCardError : ""}`}+ } ${hasError ? styles.fieldCardError : ""} ${privateContentClassName}`}onClick={() =>handleFieldClick(field.name, pageIndex)}diff --git a/frontend/src/editor/core/tools/formFill/PendingFields.tsx b/frontend/src/editor/core/tools/formFill/PendingFields.tsxindex 7423987f55..3af0371878 100644--- a/frontend/src/editor/core/tools/formFill/PendingFields.tsx+++ b/frontend/src/editor/core/tools/formFill/PendingFields.tsx@@ -17,6 +17,7 @@ import {import { FormFieldPropertyEditor } from "@editor/tools/formFill/FormFieldPropertyEditor";import type { NewFieldDefinition } from "@editor/tools/formFill/types";import styles from "@editor/tools/formFill/FormFill.module.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function PendingFields() {const { t } = useTranslation();@@ -90,7 +91,11 @@ export function PendingFields() {><Icon name={FIELD_TYPE_ICON[pf.type]} size={16} /></span>- <Text size="xs" truncate>+ <Text+ size="xs"+ truncate+ className={privateContentClassName}+ >{pf.name}</Text><Text size="xs" c="dimmed">diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/DiscardChangesModal.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/DiscardChangesModal.tsxindex 7f69ed9956..87b99b274a 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/DiscardChangesModal.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/DiscardChangesModal.tsx@@ -1,6 +1,7 @@import { Group, Modal, Stack, Text } from "@mantine/core";import { useTranslation } from "react-i18next";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {incomingFileName: string | null;@@ -23,7 +24,7 @@ export function DiscardChangesModal({data-testid="pdf-editor-discard-modal"><Stack gap="md">- <Text size="sm">+ <Text size="sm" className={privateContentClassName}>{t("pdfTextEditor.discard.body","Opening {{name}} closes the document you are editing. Your unsaved changes will be lost.",diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsxindex 37f85e3a73..14fae90f87 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/EditorFileSwitcher.tsx@@ -4,6 +4,8 @@ import { Icon } from "@editor/ui/Icon";import { Button } from "@editor/ui/Button";import { useAllFiles } from "@editor/contexts/FileContext";import type { FileId } from "@editor/types/file";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {/** Workbench file the editor currently holds, when it came from one. */@@ -26,7 +28,11 @@ export function EditorFileSwitcher({const label = (<span className="pdf-editor-topbar__file"><Icon name="file-text" size={20} style={{ flexShrink: 0 }} />- <span className="pdf-editor-topbar__filename">{currentFileName}</span>+ <span+ className={`pdf-editor-topbar__filename ${privateContentClassName}`}+ >+ {currentFileName}+ </span>{dirty && (<spanclassName="pdf-editor-topbar__dirty"@@ -39,7 +45,7 @@ export function EditorFileSwitcher({if (pdfs.length < 2) {return (- <Tooltip label={currentFileName}>+ <Tooltip label={<PrivateContent>{currentFileName}</PrivateContent>}><Textsize="xs"c="dimmed"@@ -63,6 +69,7 @@ export function EditorFileSwitcher({rightSection={<Icon name="chevron-down" size={20} />}data-testid="pdf-editor-file-switcher"title={currentFileName}+ className={privateContentClassName}><span data-testid="pdf-editor-filename">{label}</span></Button>@@ -92,7 +99,7 @@ export function EditorFileSwitcher({onPick(file);}}>- {file.name}+ <PrivateContent>{file.name}</PrivateContent></Menu.Item>);})}diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/FindBar.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/FindBar.tsxindex 7db255748d..1a8431c314 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/FindBar.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/FindBar.tsx@@ -20,6 +20,7 @@ import type {PageSnapshot,TextRunSnapshot,} from "@editor/tools/pdfTextEditor/types";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface FindBarProps {store: EditorStore;@@ -243,6 +244,7 @@ export function FindBar({ store, pages, onClose }: FindBarProps) {<TextInputref={inputRef}value={query}+ className={privateContentClassName}onChange={(e) => setQuery(e.currentTarget.value)}placeholder={t("pdfTextEditor.find.findPlaceholder", "Find")}aria-label={t("pdfTextEditor.find.findPlaceholder", "Find")}@@ -322,6 +324,7 @@ export function FindBar({ store, pages, onClose }: FindBarProps) {<TextInputvalue={replace}+ className={privateContentClassName}onChange={(e) => setReplace(e.currentTarget.value)}placeholder={t("pdfTextEditor.find.replacePlaceholder",diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/PageView.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/PageView.tsxindex dc6aabd552..3a93257fd2 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/PageView.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/PageView.tsx@@ -22,6 +22,7 @@ import { AnnotationOutline } from "@editor/tools/pdfTextEditor/components/Annotaimport { DisplayTransform } from "@editor/tools/pdfTextEditor/model/DisplayTransform";import { PageGuides } from "@editor/tools/pdfTextEditor/components/PageRulers";import { useDevicePixelRatio } from "@editor/tools/pdfTextEditor/hooks/useDevicePixelRatio";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface PageViewProps {document: EditorDocument;@@ -261,6 +262,7 @@ export function PageView({mx="auto"mb="lg"ref={containerRef}+ className={privateContentClassName}style={{width: raster.width,height: raster.height,diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/HeadingOutlineSection.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/HeadingOutlineSection.tsxindex cf65467939..6b019830cc 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/HeadingOutlineSection.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/HeadingOutlineSection.tsx@@ -14,6 +14,7 @@ import {type OutlineEntry,} from "@editor/tools/pdfTextEditor/util/headingOutline";import "@editor/tools/pdfTextEditor/components/inspector/HeadingOutlineSection.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const INDENT_PX = 12;@@ -108,7 +109,7 @@ function OutlineRow({><buttontype="button"- className="pdf-editor-heading-outline__entry"+ className={`pdf-editor-heading-outline__entry ${privateContentClassName}`}title={label}disabled={entry.pageIndex === null}onClick={onSelect}diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/ImageAccessibilitySection.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/ImageAccessibilitySection.tsxindex 6c2cf502a5..1675fbf087 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/ImageAccessibilitySection.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/ImageAccessibilitySection.tsx@@ -15,6 +15,7 @@ import {type ImageAccessibility,type ImageReview,} from "@editor/tools/pdfTextEditor/util/imageAccessibility";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** The selected image's description or decorative mark, or why it cannot have@@ -85,6 +86,7 @@ export function ImageAccessibilitySection({"Image description",)}value={accessibility.description ?? ""}+ className={privateContentClassName}onChange={(e) => onSetDescription(e.currentTarget.value)}autosizeminRows={2}diff --git a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/TextAccessibilitySection.tsx b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/TextAccessibilitySection.tsxindex 61c314ed37..7b0c9aaa85 100644--- a/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/TextAccessibilitySection.tsx+++ b/frontend/src/editor/core/tools/pdfTextEditor/components/inspector/TextAccessibilitySection.tsx@@ -21,6 +21,7 @@ import type {} from "@editor/tools/pdfTextEditor/util/textAccessibility";import type { InnerTagsControl } from "@editor/tools/pdfTextEditor/hooks/useTextAccessibility";import "@editor/tools/pdfTextEditor/components/inspector/TextAccessibilitySection.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** What the selected text is tagged as, and a picker to change it: retagging@@ -120,7 +121,10 @@ function InnerTagRow({onClick={onSelect}><span className="pdf-editor-inner-tag__number">{number}</span>- <span className="pdf-editor-inner-tag__text" title={text}>+ <span+ className={`pdf-editor-inner-tag__text ${privateContentClassName}`}+ title={text}+ >{text}</span></button>diff --git a/frontend/src/editor/core/types/superSearch.ts b/frontend/src/editor/core/types/superSearch.tsindex 2d52fb5342..a1bf1b2439 100644--- a/frontend/src/editor/core/types/superSearch.ts+++ b/frontend/src/editor/core/types/superSearch.ts@@ -18,6 +18,9 @@ export interface SuperSearchResult {group: string;title: string;subtitle?: string;+ /** Set when the title or subtitle is user content, such as a file name or an+ * email, to keep it out of analytics and feedback captures. */+ privateContent?: boolean;/** Registry icon name (files/settings); tools provide a node via `icon`. */iconName?: IconName;icon?: React.ReactNode;diff --git a/frontend/src/editor/core/ui/DataTableFilterBar.tsx b/frontend/src/editor/core/ui/DataTableFilterBar.tsxindex 79122cc514..2476064ba7 100644--- a/frontend/src/editor/core/ui/DataTableFilterBar.tsx+++ b/frontend/src/editor/core/ui/DataTableFilterBar.tsx@@ -6,6 +6,9 @@ import { Dropdown } from "@editor/ui/Dropdown";import { Icon } from "@editor/ui/Icon";import { Input } from "@editor/ui/Input";import "@editor/ui/DataTableFilterBar.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";/** Faceted filtering for {@link DataTable}'s `toolbar` slot. Facets chain; counts answer "if I picked this next". */@@ -18,6 +21,9 @@ export interface DataTableFacet<T> {getValue: (row: T) => string | null | undefined;/** Display label for a value. Defaults to the value itself. */formatValue?: (value: string) => string;+ /** Keeps the values out of analytics and feedback captures, for user content+ * such as names and emails. */+ privateContent?: boolean;}/** A pickable value within a facet, with how many rows it would keep. */@@ -32,6 +38,7 @@ export interface DataTableFacetView {key: string;label: string;options: DataTableFacetOption[];+ privateContent?: boolean;}export interface DataTableFilterBarProps {@@ -112,7 +119,12 @@ export function useDataTableFilters<T>({const options = [...counts.entries()].map(([value, count]) => ({ value, label: format(value), count })).sort((a, b) => b.count - a.count || a.label.localeCompare(b.label));- return { key: facet.key, label: facet.label, options };+ return {+ key: facet.key,+ label: facet.label,+ options,+ privateContent: facet.privateContent,+ };});return { filtered, views };@@ -179,7 +191,7 @@ export function DataTableFilterBar({<div className="sui-dtfb__row">{search && (<Input- className="sui-dtfb__search"+ className={`sui-dtfb__search ${privateContentClassName}`}inputSize="sm"leadingIcon={<SearchGlyph />}value={search.value}@@ -239,7 +251,12 @@ export function DataTableFilterBar({>{checked && <CheckGlyph />}</span>- <span className="sui-dtfb__option-label">+ <span+ className={privateClassNameIf(+ facet.privateContent,+ "sui-dtfb__option-label",+ )}+ >{option.label}</span><span className="sui-dtfb__option-count">@@ -265,7 +282,10 @@ export function DataTableFilterBar({showDot={false}onRemove={() => onToggle(facet.key, value)}>- {facet.label}: {label}+ {facet.label}:{" "}+ <PrivateContent enabled={Boolean(facet.privateContent)}>+ {label}+ </PrivateContent></Chip>))}<Button variant="quiet" size="sm" onClick={onClearAll}>diff --git a/frontend/src/editor/core/ui/dataTableColumns.tsx b/frontend/src/editor/core/ui/dataTableColumns.tsxindex f64b8da79b..0e77a05039 100644--- a/frontend/src/editor/core/ui/dataTableColumns.tsx+++ b/frontend/src/editor/core/ui/dataTableColumns.tsx@@ -1,4 +1,6 @@import { Fragment, type ReactNode } from "react";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";import { Icon } from "@editor/ui/Icon";import { StatusBadge, type StatusTone } from "@editor/ui/StatusBadge";import { Chip, type ChipAccent } from "@editor/ui/Chip";@@ -151,6 +153,9 @@ interface Common {key: string;header: ReactNode;sortable?: boolean;+ /** Keeps the cell out of analytics and feedback captures, for user content+ * such as names and emails. */+ privateContent?: boolean;}function base<T>(@@ -171,7 +176,9 @@ function base<T>(sortValue: o.sortable ? extra.sortValue : undefined,sortFn: o.sortable ? extra.sortFn : undefined,interactive: extra.interactive,- renderCell: extra.renderCell,+ renderCell: o.privateContent+ ? (row) => <PrivateContent>{extra.renderCell(row)}</PrivateContent>+ : extra.renderCell,};}@@ -400,6 +407,9 @@ function entity<T>(unreadLabel?: (row: T) => string | null | undefined;/** Secondary muted line under the name. */note?: (row: T) => string | null | undefined;+ /** Keeps the row's note out of analytics and feedback captures, where only+ * some rows' notes are user content. */+ privateNote?: (row: T) => boolean;sortBy?: (row: T) => SortValue;},): DataTableColumn<T> {@@ -436,7 +446,16 @@ function entity<T>(<span className="sui-dtc__entity-suffix">{suffix}</span>)}</span>- {note && <span className="sui-dtc__note">{note}</span>}+ {note && (+ <span+ className={privateClassNameIf(+ o.privateNote?.(r),+ "sui-dtc__note",+ )}+ >+ {note}+ </span>+ )}</div></div>);diff --git a/frontend/src/editor/desktop/components/ConnectionSettings.tsx b/frontend/src/editor/desktop/components/ConnectionSettings.tsxindex ca07a70d37..5b4700425d 100644--- a/frontend/src/editor/desktop/components/ConnectionSettings.tsx+++ b/frontend/src/editor/desktop/components/ConnectionSettings.tsx@@ -9,6 +9,7 @@ import {import { authService, UserInfo } from "@editor/services/authService";import { OPEN_SIGN_IN_EVENT } from "@editor/constants/signInEvents";import { useAuth } from "@editor/auth/UseSession";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export const ConnectionSettings: React.FC = () => {const { t } = useTranslation();@@ -130,7 +131,15 @@ export const ConnectionSettings: React.FC = () => {<Text size="sm" fw={500}>{t("settings.connection.server", "Server")}</Text>- <Text size="sm" c="dimmed">+ <Text+ size="sm"+ c="dimmed"+ className={+ config.mode === "saas"+ ? undefined+ : privateContentClassName+ }+ >{config.mode === "saas"? "stirling.com": config.server_config.url}@@ -142,7 +151,11 @@ export const ConnectionSettings: React.FC = () => {<Text size="sm" fw={500}>{t("settings.connection.user", "Logged in as")}</Text>- <Text size="sm" c="dimmed">+ <Text+ size="sm"+ c="dimmed"+ className={privateContentClassName}+ >{userInfo.username}{userInfo.email && ` (${userInfo.email})`}</Text>diff --git a/frontend/src/editor/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx b/frontend/src/editor/desktop/components/SetupWizard/SelfHostedLoginScreen.tsxindex 03576759f4..59fde3b865 100644--- a/frontend/src/editor/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx+++ b/frontend/src/editor/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx@@ -9,6 +9,7 @@ import { DesktopOAuthButtons } from "@editor/components/SetupWizard/DesktopOAuthimport { UserInfo } from "@editor/services/authService";import { SSOProviderConfig } from "@editor/services/connectionModeService";import "@editor/auth/ui/auth.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SelfHostedLoginScreenProps {serverUrl: string;@@ -99,7 +100,7 @@ export const SelfHostedLoginScreen: React.FC<SelfHostedLoginScreenProps> = ({<Text size="sm" mb="md">{t("setup.login.connectingTo", "Connecting to:")}{" "}- <Text span fw="500">+ <Text span fw="500" className={privateContentClassName}>{serverUrl}</Text></Text>diff --git a/frontend/src/editor/desktop/components/SetupWizard/ServerSelection.tsx b/frontend/src/editor/desktop/components/SetupWizard/ServerSelection.tsxindex 6468a3e401..6e9af0725e 100644--- a/frontend/src/editor/desktop/components/SetupWizard/ServerSelection.tsx+++ b/frontend/src/editor/desktop/components/SetupWizard/ServerSelection.tsx@@ -8,6 +8,8 @@ import {} from "@editor/services/connectionModeService";import { connectionModeService } from "@editor/services/connectionModeService";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface ServerSelectionProps {onSelect: (config: ServerConfig) => void;loading: boolean;@@ -251,6 +253,7 @@ export const ServerSelection: React.FC<ServerSelectionProps> = ({><Stack gap="md"><TextInput+ className={privateContentClassName}label={t("setup.server.url.label", "Server URL")}placeholder="https://your-server.com"value={customUrl}@@ -324,9 +327,11 @@ export const ServerSelection: React.FC<ServerSelectionProps> = ({}, 0);}}>- {t("setup.server.useLast", "Last used server: {{serverUrl}}", {- serverUrl: serverUrl,- })}+ <PrivateContent>+ {t("setup.server.useLast", "Last used server: {{serverUrl}}", {+ serverUrl: serverUrl,+ })}+ </PrivateContent></Button></div>)}diff --git a/frontend/src/editor/desktop/services/diskFileSync.ts b/frontend/src/editor/desktop/services/diskFileSync.tsindex 5c781bd575..c8f90eb99f 100644--- a/frontend/src/editor/desktop/services/diskFileSync.ts+++ b/frontend/src/editor/desktop/services/diskFileSync.ts@@ -333,10 +333,13 @@ interface ToastSpec {}/** Lazy: this sits on the hydration path and the toast barrel pulls in the- * whole icon set, costing ~3s of module load per file open. */+ * whole icon set, costing ~3s of module load per file open. Every notice+ * here names a file in its body. */function toast({ alertType = "warning", ...options }: ToastSpec): void {void import("@editor/components/toast")- .then(({ alert }) => alert({ alertType, expandable: false, ...options }))+ .then(({ alert }) =>+ alert({ alertType, expandable: false, privateBody: true, ...options }),+ ).catch((error) => console.error("[diskFileSync] toast failed:", error));}diff --git a/frontend/src/editor/proprietary/auth/ui/EmailPasswordForm.tsx b/frontend/src/editor/proprietary/auth/ui/EmailPasswordForm.tsxindex 870158ecd0..daae49cf4f 100644--- a/frontend/src/editor/proprietary/auth/ui/EmailPasswordForm.tsx+++ b/frontend/src/editor/proprietary/auth/ui/EmailPasswordForm.tsx@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";import { Button } from "@editor/ui/Button";import "@editor/auth/ui/auth.css";import { TextInput, PasswordInput } from "@mantine/core";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Theme-aware auth input colours (the --auth-* vars flip in dark mode via// auth-theme.css). Exported so other auth screens (e.g. invite accept) render@@ -76,7 +77,7 @@ export default function EmailPasswordForm({value={email}onChange={(e) => setEmail(e.target.value)}error={fieldErrors.email}- classNames={{ label: "auth-label" }}+ classNames={{ label: "auth-label", input: privateContentClassName }}styles={authInputStyles}autoFocus/>@@ -93,7 +94,10 @@ export default function EmailPasswordForm({value={password}onChange={(e) => setPassword(e.target.value)}error={fieldErrors.password}- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}styles={authInputStyles}/></div>@@ -116,7 +120,10 @@ export default function EmailPasswordForm({maxLength={6}minLength={6}error={fieldErrors.mfaCode}- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}styles={authInputStyles}/></div>diff --git a/frontend/src/editor/proprietary/billing/InvoiceRow.tsx b/frontend/src/editor/proprietary/billing/InvoiceRow.tsxindex 6227bbea1d..d45cffca7d 100644--- a/frontend/src/editor/proprietary/billing/InvoiceRow.tsx+++ b/frontend/src/editor/proprietary/billing/InvoiceRow.tsx@@ -1,4 +1,5 @@import { StatusBadge, type StatusTone } from "@editor/ui";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export type InvoiceRowState = "paid" | "current" | "failed" | "other";@@ -46,7 +47,7 @@ export function InvoiceRow({</StatusBadge>{href ? (<a- className="billing-inv__door"+ className={`billing-inv__door ${privateContentClassName}`}href={href}target="_blank"rel="noreferrer noopener"diff --git a/frontend/src/editor/proprietary/components/chat/ChatPanel.tsx b/frontend/src/editor/proprietary/components/chat/ChatPanel.tsxindex 2acdfccdc4..0090104e6a 100644--- a/frontend/src/editor/proprietary/components/chat/ChatPanel.tsx+++ b/frontend/src/editor/proprietary/components/chat/ChatPanel.tsx@@ -41,6 +41,7 @@ import { useTranslatedToolCatalog } from "@editor/data/useTranslatedToolRegistryimport { StirlingLogoAnimated } from "@editor/components/agents/StirlingLogoAnimated";import { ChatQuickActions } from "@editor/components/chat/ChatQuickActions";import "@editor/components/chat/ChatPanel.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type TranslateFn = TFunction;@@ -380,6 +381,7 @@ function ChatMessageBubble({<Textref={userTextRef}size="sm"+ className={privateContentClassName}style={{ whiteSpace: "pre-wrap" }}>{content}@@ -403,7 +405,7 @@ function ChatMessageBubble({resolveToolIcon={resolveToolIcon}/>)}- <Text size="sm" component="div">+ <Text size="sm" component="div" className={privateContentClassName}>{renderMarkdown(content)}</Text>{actions}@@ -577,7 +579,7 @@ export function ChatPanel({maxRows={4}variant="unstyled"classNames={{- root: "chat-panel-input__textarea",+ root: `chat-panel-input__textarea ${privateContentClassName}`,input: "chat-panel-input__field",}}/>diff --git a/frontend/src/editor/proprietary/components/policies/FolderIngestionSettings.tsx b/frontend/src/editor/proprietary/components/policies/FolderIngestionSettings.tsxindex 70440bc958..d0a6ca96f6 100644--- a/frontend/src/editor/proprietary/components/policies/FolderIngestionSettings.tsx+++ b/frontend/src/editor/proprietary/components/policies/FolderIngestionSettings.tsx@@ -10,6 +10,7 @@ import {} from "@editor/components/policies/PolicyIngestionConfig";import { ingestChunkingConfigured } from "@editor/policies/ingestOperation";import { policyStepFromWire } from "@editor/policies/operations";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Folder ingestion settings for surfaces without Processor connection management. */export function FolderIngestionSettings({@@ -123,13 +124,18 @@ export function FolderIngestionSettings({"Processed files are saved in this folder. Corpus exports keep the original PDF.",)}>- <Input inputSize="sm" value={folderName} readOnly />+ <Input+ inputSize="sm"+ value={folderName}+ readOnly+ className={privateContentClassName}+ /></FormField>);return (<>- <p className="portal-policies__wizard-desc">+ <p className={`portal-policies__wizard-desc ${privateContentClassName}`}>{t("portal.policies.wizard.locations.folder","Input: {{name}}. Originals are retained when delivering to a vector database.",diff --git a/frontend/src/editor/proprietary/components/policies/PolicyRecoveryGate.tsx b/frontend/src/editor/proprietary/components/policies/PolicyRecoveryGate.tsxindex e22bf5cb4d..0f3e3fea3a 100644--- a/frontend/src/editor/proprietary/components/policies/PolicyRecoveryGate.tsx+++ b/frontend/src/editor/proprietary/components/policies/PolicyRecoveryGate.tsx@@ -38,6 +38,8 @@ import { fileStorage } from "@editor/services/fileStorage";import type { PoliciesByKey } from "@editor/types/policies";import type { FileId } from "@editor/types/file";import "@editor/components/policies/PolicyRecoveryGate.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";/** Keeps the editor mounted but inaccessible until all open, failed inputs are recovered or closed. */export function PolicyRecoveryGate() {@@ -217,7 +219,12 @@ function RecoveryDialog({ blocks, policies, runs }: RecoveryDialogProps) {return (<section className="policy-recovery__policy" key={policyKey}><strong>{policyName(policyKey)}</strong>- <p className="policy-recovery__hint">+ <p+ className={privateClassNameIf(+ Boolean(owner) && !isOwner,+ "policy-recovery__hint",+ )}+ >{t(isOwner? "policy.recoveryOwnedPolicy"@@ -236,13 +243,17 @@ function RecoveryDialog({ blocks, policies, runs }: RecoveryDialogProps) {<div className="policy-recovery__errors">{blocks.map((block) => (<div className="policy-recovery__error" key={recoveryKey(block)}>- <strong>+ <strong className={privateContentClassName}>{block.outcome.fileName ?? block.affectedFiles[0].name}</strong>{policyKeys.length > 1 && (<p>{policyName(block.outcome.policyKey)}</p>)}- {block.outcome.error && <pre>{block.outcome.error}</pre>}+ {block.outcome.error && (+ <pre className={privateContentClassName}>+ {block.outcome.error}+ </pre>+ )}</div>))}</div>diff --git a/frontend/src/editor/proprietary/components/policies/ProcessingFolderLocationPicker.tsx b/frontend/src/editor/proprietary/components/policies/ProcessingFolderLocationPicker.tsxindex b016073b40..36c1c823ba 100644--- a/frontend/src/editor/proprietary/components/policies/ProcessingFolderLocationPicker.tsx+++ b/frontend/src/editor/proprietary/components/policies/ProcessingFolderLocationPicker.tsx@@ -9,6 +9,7 @@ import {type FolderRecord,} from "@editor/types/folder";import { processingFolderPath } from "@editor/components/policies/processingFolderSetup";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ProcessingFolderLocationPickerProps {folders: FolderRecord[];@@ -109,11 +110,12 @@ export function ProcessingFolderLocationPicker({type="button"disabled={blocked}title={blocked ? t("filesPage.moveAcrossKindsBlocked") : path}+ className={blocked ? undefined : privateContentClassName}aria-pressed={parentId === folder.id}onClick={() => select(folder.id)}><Icon name={blocked ? "monitor" : "folder"} size={16} />- <span>{path}</span>+ <span className={privateContentClassName}>{path}</span></button>);})}diff --git a/frontend/src/editor/proprietary/components/policies/ProcessingFolderPicker.tsx b/frontend/src/editor/proprietary/components/policies/ProcessingFolderPicker.tsxindex c998029c1c..734986af6a 100644--- a/frontend/src/editor/proprietary/components/policies/ProcessingFolderPicker.tsx+++ b/frontend/src/editor/proprietary/components/policies/ProcessingFolderPicker.tsx@@ -33,6 +33,8 @@ import { ProcessingFolderLocationPicker } from "@editor/components/policies/Procimport { ProcessingFolderActionCard } from "@editor/components/policies/ProcessingFolderActionCard";import type { DownloadsProcessing } from "@editor/hooks/useDownloadsProcessing";import "@editor/components/filesPage/FilesPage.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";+import { privateClassNameIf } from "@editor/components/shared/privateClassNameIf";type AddedFolder = {folder: FolderRecord;@@ -418,6 +420,7 @@ export function ProcessingFolderPicker({data-autofocus={active || undefined}value={name}maxLength={120}+ className={privateContentClassName}disabled={Boolean(serverDisabledReason)}placeholder={t("processingFolders.setup.namePlaceholder")}onChange={(event) => setName(event.target.value)}@@ -425,7 +428,7 @@ export function ProcessingFolderPicker({</FormField><div className="folder-setup__new-folder-location"><span>{t("processingFolders.setup.createIn")}</span>- <div title={parentPath}>+ <div title={parentPath} className={privateContentClassName}><Icon name="cloud" size={18} /><span>{parentPath}</span><ProcessingFolderLocationPicker@@ -484,7 +487,10 @@ export function ProcessingFolderPicker({{index > 0 && <Icon name="chevron-right" size={14} />}<buttontype="button"- className="files-page-breadcrumb"+ className={privateClassNameIf(+ Boolean(item.id),+ "files-page-breadcrumb",+ )}aria-current={item.id === currentId ? "location" : undefined}diff --git a/frontend/src/editor/proprietary/components/policies/ProcessingFolderWizard.tsx b/frontend/src/editor/proprietary/components/policies/ProcessingFolderWizard.tsxindex 4192357e39..1afd7e529f 100644--- a/frontend/src/editor/proprietary/components/policies/ProcessingFolderWizard.tsx+++ b/frontend/src/editor/proprietary/components/policies/ProcessingFolderWizard.tsx@@ -31,6 +31,7 @@ import {} from "@editor/components/policies/processingFolderSetup";import { policyCategoryIcon } from "@editor/components/policies/policyCategoryIcon";import "@editor/components/policies/FolderProcessingSetup.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface ProcessingFolderWizardProps extends Omit<ProcessingFolderPickerProps,@@ -293,7 +294,7 @@ export function ProcessingFolderWizard({{stage !== "folder" && target && (<div className="folder-setup__destination"><Icon name={local ? "monitor" : "cloud"} size={16} />- <div>+ <div className={privateContentClassName}><strong title={selectedName}>{selectedName}</strong><span className="folder-setup__path" title={path}>{path}diff --git a/frontend/src/editor/proprietary/components/policies/SweepRunWall.tsx b/frontend/src/editor/proprietary/components/policies/SweepRunWall.tsxindex 0aa7be03bc..f32ce7ab6f 100644--- a/frontend/src/editor/proprietary/components/policies/SweepRunWall.tsx+++ b/frontend/src/editor/proprietary/components/policies/SweepRunWall.tsx@@ -9,6 +9,7 @@ import {type ProcessingFolderRun,} from "@editor/services/processingFolderApi";import "@editor/components/policies/SweepRunWall.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const TERMINAL = ["COMPLETED", "FAILED", "CANCELLED"];@@ -77,7 +78,9 @@ export function SweepRunWall({ cards }: { cards: SweepWallCard[] }) {key={card.name}className={`sweep-wall__card sweep-wall__card--${card.state}`}>- <span className="sweep-wall__card-name">{card.name}</span>+ <span className={`sweep-wall__card-name ${privateContentClassName}`}>+ {card.name}+ </span><span className="sweep-wall__card-status">{card.state === "running" && (<span className="sweep-wall__spin" aria-hidden />diff --git a/frontend/src/editor/proprietary/components/settings/ConnectedInstanceRow.tsx b/frontend/src/editor/proprietary/components/settings/ConnectedInstanceRow.tsxindex 7db5dd7ad6..a197ed09f7 100644--- a/frontend/src/editor/proprietary/components/settings/ConnectedInstanceRow.tsx+++ b/frontend/src/editor/proprietary/components/settings/ConnectedInstanceRow.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { Button } from "@editor/ui/Button";import type { LinkedInstanceRow } from "@editor/types/linkedInstance";import "@editor/components/settings/AccountConnectionLayout.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {instance: LinkedInstanceRow;@@ -60,7 +61,7 @@ export function ConnectedInstanceRow({<li className="account-connection__row"><div className="account-connection__identity"><div className="account-connection__name">- <h3>+ <h3 className={privateContentClassName}>{instance.name ??t("portal.accountLink.instances.unnamed", "Unnamed instance")}</h3>@@ -124,7 +125,9 @@ export function ConnectedInstanceRow({<div><dt>{t("settings.connectedInstances.id", "Instance ID")}</dt><dd>- <code>{instance.deviceId}</code>{" "}+ <code className={privateContentClassName}>+ {instance.deviceId}+ </code>{" "}<Button variant="quiet" size="sm" onClick={() => void copyId()}>{t("settings.connectedInstances.copyId", "Copy ID")}</Button>diff --git a/frontend/src/editor/proprietary/components/shared/InviteTeammateButton.tsx b/frontend/src/editor/proprietary/components/shared/InviteTeammateButton.tsxindex 619e7c50d6..026164977c 100644--- a/frontend/src/editor/proprietary/components/shared/InviteTeammateButton.tsx+++ b/frontend/src/editor/proprietary/components/shared/InviteTeammateButton.tsx@@ -5,6 +5,7 @@ import { useAuth } from "@editor/auth/UseSession";import { useSaaSTeam } from "@editor/contexts/SaaSTeamContext";import { Button, Modal } from "@editor/ui";import { Icon } from "@editor/ui/Icon";+import { PrivateContent } from "@editor/components/shared/PrivateContent";const InviteTeammateFlow = lazy(() => import("@processor/components/users/InviteTeammateFlow"),@@ -33,11 +34,15 @@ export function InviteTeammateButton({leftSection={<Icon name="user-plus" size={18} />}onClick={() => setInviteValue(search.trim())}>- {search.trim()- ? t("signWorkspace.invitePerson", "Add teammate: {{name}}", {+ {search.trim() ? (+ <PrivateContent>+ {t("signWorkspace.invitePerson", "Add teammate: {{name}}", {name: search.trim(),- })- : t("signWorkspace.inviteTeammate", "Add a teammate")}+ })}+ </PrivateContent>+ ) : (+ t("signWorkspace.inviteTeammate", "Add a teammate")+ )}</Button>{inviteValue !== null && (<Suspensediff --git a/frontend/src/editor/proprietary/components/shared/config/OverviewHeader.tsx b/frontend/src/editor/proprietary/components/shared/config/OverviewHeader.tsxindex 3c124473e1..ddbf5bfd90 100644--- a/frontend/src/editor/proprietary/components/shared/config/OverviewHeader.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/OverviewHeader.tsx@@ -3,6 +3,7 @@ import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { useAuth } from "@editor/auth/UseSession";import { withBasePath } from "@editor/constants/app";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function OverviewHeader() {const { t } = useTranslation();@@ -39,7 +40,12 @@ export function OverviewHeader() {)}</Text>{user?.email && (- <Text size="xs" c="dimmed" mt="0.25rem">+ <Text+ size="xs"+ c="dimmed"+ mt="0.25rem"+ className={privateContentClassName}+ >{t("account.overview.signedInAs", "Signed in as: {{email}}", {email: user.email,})}diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/AdminMailSection.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/AdminMailSection.tsxindex b463ade2f7..33ece25417 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/AdminMailSection.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/AdminMailSection.tsx@@ -23,6 +23,7 @@ import { SettingsStickyFooter } from "@editor/components/shared/config/SettingsSimport EditableSecretField from "@editor/components/shared/EditableSecretField";import apiClient from "@editor/services/apiClient";import { useLoginRequired } from "@editor/hooks/useLoginRequired";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type MailSettingsData = {enabled?: boolean;@@ -202,6 +203,7 @@ export default function AdminMailSection() {<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -251,6 +253,7 @@ export default function AdminMailSection() {<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -297,6 +300,7 @@ export default function AdminMailSection() {<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/AdminPremiumSection.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/AdminPremiumSection.tsxindex dfbae25561..13e0e82aa6 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/AdminPremiumSection.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/AdminPremiumSection.tsx@@ -21,6 +21,7 @@ import { useSettingsDirty } from "@editor/hooks/useSettingsDirty";import PendingBadge from "@editor/components/shared/config/PendingBadge";import { SettingsStickyFooter } from "@editor/components/shared/config/SettingsStickyFooter";import { useLoginRequired } from "@editor/hooks/useLoginRequired";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface PremiumSettingsData {key?: string;@@ -176,6 +177,7 @@ export default function AdminPremiumSection() {setSettings({ ...settings, key: e.target.value })}placeholder="00000000-0000-0000-0000-000000000000"+ className={privateContentClassName}disabled={!loginEnabled}/></div>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedProcessingCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedProcessingCard.tsxindex bd05af3820..1d8560f907 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedProcessingCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedProcessingCard.tsx@@ -18,6 +18,7 @@ import PendingBadge from "@editor/components/shared/config/PendingBadge";import apiClient from "@editor/services/apiClient";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import type { AdvancedCardProps } from "@editor/components/shared/config/configSections/advanced/advancedCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** Image DPI and the OCR tessdata directory. The language list and its@@ -287,6 +288,7 @@ export function AdvancedProcessingCard({{/* Tessdata Directory */}<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedTempFilesCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedTempFilesCard.tsxindex 07b33b0616..d3564ffbbb 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedTempFilesCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/AdvancedTempFilesCard.tsx@@ -4,6 +4,7 @@ import { SettingsFieldLabel } from "@editor/components/shared/config/SettingsFieimport { NumberInput, Stack, Paper, TextInput } from "@mantine/core";import { useLoginRequired } from "@editor/hooks/useLoginRequired";import type { AdvancedCardProps } from "@editor/components/shared/config/configSections/advanced/advancedCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Where temp files live and when they are swept. */export function AdvancedTempFilesCard({@@ -20,6 +21,7 @@ export function AdvancedTempFilesCard({<Stack gap="md"><div><TextInput+ className={privateContentClassName}label={<SettingsFieldLabelinfo={t(@@ -53,6 +55,7 @@ export function AdvancedTempFilesCard({<div><TextInput+ className={privateContentClassName}label={<SettingsFieldLabelinfo={t(@@ -86,6 +89,7 @@ export function AdvancedTempFilesCard({<div><TextInput+ className={privateContentClassName}label={<SettingsFieldLabelinfo={t(diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/DatabaseConfigCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/DatabaseConfigCard.tsxindex 484c37efe7..d8e4218128 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/DatabaseConfigCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/advanced/DatabaseConfigCard.tsx@@ -15,6 +15,7 @@ import EditableSecretField from "@editor/components/shared/EditableSecretField";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import type { DatasourceSettingsData } from "@editor/components/shared/config/configSections/advanced/advancedSettings";import type { AdvancedCardProps } from "@editor/components/shared/config/configSections/advanced/advancedCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** The `system.datasource` block, previously its own nav row. The password stays@@ -66,6 +67,7 @@ export function DatabaseConfigCard({<><div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -133,6 +135,7 @@ export function DatabaseConfigCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -185,6 +188,7 @@ export function DatabaseConfigCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -211,6 +215,7 @@ export function DatabaseConfigCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiConnectionCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiConnectionCard.tsxindex a2dfad1dce..c2910b0e5c 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiConnectionCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiConnectionCard.tsx@@ -22,6 +22,7 @@ import { HAS_PORTAL } from "@editor/routes/hasPortal";import { useAccountLinked } from "@editor/components/shared/config/configSections/ai/useAiEngineStatus";import type { AiCardProps } from "@editor/components/shared/config/configSections/ai/aiCardProps";import "@editor/components/shared/config/configSections/ai/AiModeOption.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The three places AI could run. Only two of them exist. */type AiMode = "off" | "self" | "cloud";@@ -218,6 +219,7 @@ export function AiConnectionCard({><Stack gap="sm"><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiDocumentsCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiDocumentsCard.tsxindex 46f9e33d81..d6533fa4e7 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiDocumentsCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiDocumentsCard.tsx@@ -21,6 +21,7 @@ import {MASKED_SECRET,} from "@editor/components/shared/config/configSections/aiEngineSettings";import type { AiCardProps } from "@editor/components/shared/config/configSections/ai/aiCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AiDocumentsCardProps extends AiCardProps {/** The picked embedding model differs from the one the server indexed with. */@@ -156,6 +157,7 @@ export function AiDocumentsCard({{showEmbeddingApiKey && (<PasswordInput+ className={privateContentClassName}label={<Group gap="xs"><span>{embeddingApiKeyLabel}</span>@@ -193,6 +195,7 @@ export function AiDocumentsCard({{showEmbeddingBaseUrl && (<TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiModelsCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiModelsCard.tsxindex 225dcf4f6a..1463281238 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiModelsCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/ai/AiModelsCard.tsx@@ -21,6 +21,7 @@ import {MASKED_SECRET,} from "@editor/components/shared/config/configSections/aiEngineSettings";import type { AiCardProps } from "@editor/components/shared/config/configSections/ai/aiCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AiModelsCardProps extends AiCardProps {apiKeyDirty: boolean;@@ -211,6 +212,7 @@ export function AiModelsCard({{showApiKey && (<PasswordInput+ className={privateContentClassName}label={<Group gap="xs"><span>{apiKeyLabel}</span>@@ -243,6 +245,7 @@ export function AiModelsCard({{showBaseUrl && (<TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/apiKeys/ApiKeySection.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/apiKeys/ApiKeySection.tsxindex e088e2dbc3..d2c1278e3a 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/apiKeys/ApiKeySection.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/apiKeys/ApiKeySection.tsx@@ -4,6 +4,7 @@ import { Button } from "@editor/ui/Button";import { Icon } from "@editor/ui/Icon";import FitText from "@editor/components/shared/FitText";import { useTranslation } from "react-i18next";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ApiKeySectionProps {publicKey: string;@@ -52,7 +53,7 @@ export default function ApiKeySection({"Public API key",)}>- <FitText text={publicKey} />+ <FitText text={publicKey} className={privateContentClassName} /></Box></Box><Buttondiff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditChartsSection.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditChartsSection.tsxindex fe7fd4150f..4c70609713 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditChartsSection.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditChartsSection.tsx@@ -24,6 +24,7 @@ import {} from "recharts";import { useTranslation } from "react-i18next";import auditService, { AuditChartsData } from "@editor/services/auditService";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Event type color mappingconst EVENT_TYPE_COLORS: Record<string, string> = {@@ -298,7 +299,10 @@ const AuditChartsSection: React.FC<AuditChartsSectionProps> = ({<Text size="md" fw={600}>{t("audit.charts.byUser", "Top Users")}</Text>- <Box style={{ width: "100%", height: 280 }}>+ <Box+ className={privateContentClassName}+ style={{ width: "100%", height: 280 }}+ >{eventsByUserData.length > 0 ? (<ResponsiveContainer width="100%" height="100%"><BarChart data={eventsByUserData} layout="vertical">diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditEventsTable.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditEventsTable.tsxindex 4225b70a47..f2203b6a98 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditEventsTable.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditEventsTable.tsx@@ -22,6 +22,7 @@ import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import { useAuditFilters } from "@editor/hooks/useAuditFilters";import AuditFiltersForm from "@editor/components/shared/config/configSections/audit/AuditFiltersForm";import { Icon, type IconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface AuditEventsTableProps {loginEnabled?: boolean;@@ -239,16 +240,24 @@ function AuditEventRow({</Badge></Table.Td><Table.Td>- <Text size="sm">{event.username}</Text>+ <Text size="sm" className={privateContentClassName}>+ {event.username}+ </Text></Table.Td><Table.Td>- <Text size="sm" title={documentName}>+ <Text+ size="sm"+ title={documentName}+ className={privateContentClassName}+ >{documentName || "—"}</Text></Table.Td>{showAuthor && (<Table.Td>- <Text size="sm">{author}</Text>+ <Text size="sm" className={privateContentClassName}>+ {author}+ </Text></Table.Td>)}{showFileHash && (@@ -256,6 +265,7 @@ function AuditEventRow({<Textsize="sm"title={fileHash}+ className={privateContentClassName}style={{ fontFamily: "monospace", fontSize: "0.75rem" }}>{fileHash}@@ -418,13 +428,22 @@ function EventDetails({ event }: { event: AuditEvent | null }) {<Text size="sm">{event.eventType}</Text></DetailField><DetailField label={t("audit.events.user", "User")}>- <Text size="sm">{event.username}</Text>+ <Text size="sm" className={privateContentClassName}>+ {event.username}+ </Text></DetailField><DetailField label={t("audit.events.ipAddress", "IP Address")}>- <Text size="sm">{event.ipAddress}</Text>+ <Text size="sm" className={privateContentClassName}>+ {event.ipAddress}+ </Text></DetailField><DetailField label={t("audit.events.details", "Details")}>- <Code block mah={300} style={{ overflow: "auto" }}>+ <Code+ block+ mah={300}+ className={privateContentClassName}+ style={{ overflow: "auto" }}+ >{JSON.stringify(event.details, null, 2)}</Code></DetailField>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditFiltersForm.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditFiltersForm.tsxindex 954f5ec1fc..7bf1ef799f 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditFiltersForm.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/audit/AuditFiltersForm.tsx@@ -5,6 +5,7 @@ import { DateInput } from "@mantine/dates";import { useTranslation } from "react-i18next";import { AuditFilters } from "@editor/services/auditService";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";// Helper to format date as YYYY-MM-DD in local time (avoids DST/UTC issues)const formatDateToYMD = (date: Date): string => {@@ -168,9 +169,11 @@ const AuditFiltersForm: React.FC<AuditFiltersFormProps> = ({clearablesearchabledisabled={disabled}+ className={privateContentClassName}comboboxProps={{withinPortal: true,zIndex: Z_INDEX_OVER_CONFIG_MODAL,+ classNames: { dropdown: privateContentClassName },}}/><DateInputdiff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/plan/LicenseKeySection.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/plan/LicenseKeySection.tsxindex 419a07e67e..8ddbdf9c10 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/plan/LicenseKeySection.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/plan/LicenseKeySection.tsx@@ -20,6 +20,8 @@ import { LicenseInfo } from "@editor/services/licenseService";import licenseService from "@editor/services/licenseService";import { useLicense } from "@editor/contexts/LicenseContext";import { useLoginRequired } from "@editor/hooks/useLoginRequired";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface LicenseKeySectionProps {currentLicenseInfo?: LicenseInfo;@@ -182,7 +184,14 @@ const LicenseKeySection: React.FC<LicenseKeySectionProps> = ({"Active License",)}</Text>- <Text size="xs">+ <Text+ size="xs"+ className={+ currentLicenseInfo.licenseKey.startsWith("file:")+ ? privateContentClassName+ : undefined+ }+ >{currentLicenseInfo.licenseKey.startsWith("file:")? t("admin.settings.premium.currentLicense.file",@@ -259,6 +268,7 @@ const LicenseKeySection: React.FC<LicenseKeySectionProps> = ({: undefined) || "00000000-0000-0000-0000-000000000000"}type="password"+ className={privateContentClassName}disabled={!loginEnabled || savingLicense}/>) : (@@ -283,15 +293,19 @@ const LicenseKeySection: React.FC<LicenseKeySectionProps> = ({variant="secondary"leftSection={<Icon name="file-up" size="1rem" />}>- {licenseFile- ? licenseFile.name- : t(- "admin.settings.premium.file.choose",- "Choose License File",- )}+ {licenseFile ? (+ <PrivateContent>{licenseFile.name}</PrivateContent>+ ) : (+ t("admin.settings.premium.file.choose", "Choose License File")+ )}</FilePicker>{licenseFile && (- <Text size="xs" c="dimmed" mt="xs">+ <Text+ size="xs"+ c="dimmed"+ mt="xs"+ className={privateContentClassName}+ >{t("admin.settings.premium.file.selected","Selected: {{filename}} ({{size}})",diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/security/HtmlUrlSecurityCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/security/HtmlUrlSecurityCard.tsxindex 4f5cc85334..7a29700d55 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/security/HtmlUrlSecurityCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/security/HtmlUrlSecurityCard.tsx@@ -14,6 +14,7 @@ import PendingBadge from "@editor/components/shared/config/PendingBadge";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import type { SecurityCardProps } from "@editor/components/shared/config/configSections/security/securityCardProps";import type { SecuritySettingsData } from "@editor/components/shared/config/configSections/security/securitySettingsTypes";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type UrlSecurity = NonNullable<NonNullable<SecuritySettingsData["html"]>["urlSecurity"]@@ -310,6 +311,7 @@ function DomainListField({return (<div><Textarea+ className={privateContentClassName}name={name}label={<UrlSecurityFieldLabel label={label} info={info} pending={pending} />diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomMetadataCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomMetadataCard.tsxindex aab67b872d..fec6a879bc 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomMetadataCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomMetadataCard.tsx@@ -4,6 +4,7 @@ import { InfoTooltip } from "@editor/ui/InfoTooltip";import { TextInput, Stack, Paper, Group } from "@mantine/core";import PendingBadge from "@editor/components/shared/config/PendingBadge";import type { GeneralCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Metadata stamped onto every processed document. Saved under premium.proFeatures. */export function CustomMetadataCard({@@ -42,6 +43,7 @@ export function CustomMetadataCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -79,6 +81,7 @@ export function CustomMetadataCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -113,6 +116,7 @@ export function CustomMetadataCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomPathsCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomPathsCard.tsxindex 8177b0144d..0cead66e89 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomPathsCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/CustomPathsCard.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { TextInput, Textarea, Stack, Paper, Text, Group } from "@mantine/core";import PendingBadge from "@editor/components/shared/config/PendingBadge";import type { GeneralCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Pipeline directories and external tool paths, all under system.customPaths. */export function CustomPathsCard({@@ -103,6 +104,7 @@ export function CustomPathsCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -142,6 +144,7 @@ export function CustomPathsCard({<div><Textarea+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -201,6 +204,7 @@ export function CustomPathsCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -249,6 +253,7 @@ export function CustomPathsCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -288,6 +293,7 @@ export function CustomPathsCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/FolderAccessCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/FolderAccessCard.tsxindex 85d9992e54..b259131776 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/FolderAccessCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/FolderAccessCard.tsx@@ -7,6 +7,7 @@ import { Button } from "@editor/ui/Button";import PendingBadge from "@editor/components/shared/config/PendingBadge";import { useLoginRequired } from "@editor/hooks/useLoginRequired";import type { FolderAccessCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The directories folder sources and outputs may touch. A security boundary. */export function FolderAccessCard({@@ -84,7 +85,12 @@ export function FolderAccessCard({<Stack gap="xs">{roots.map((root) => (<Group key={root} justify="space-between" wrap="nowrap" gap="xs">- <Code style={{ wordBreak: "break-all" }}>{root}</Code>+ <Code+ className={privateContentClassName}+ style={{ wordBreak: "break-all" }}+ >+ {root}+ </Code><Buttonvariant="tertiary"aria-label={t(@@ -103,6 +109,7 @@ export function FolderAccessCard({<Group gap="xs" align="flex-end" wrap="nowrap"><TextInput+ className={privateContentClassName}style={{ flex: 1 }}value={newRoot}onChange={(e) => setNewRoot(e.currentTarget.value)}diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/McpCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/McpCard.tsxindex 6cf31c647a..ebd2be44eb 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/McpCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/McpCard.tsx@@ -18,6 +18,7 @@ import PendingBadge from "@editor/components/shared/config/PendingBadge";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import type { McpAuthData } from "@editor/components/shared/config/configSections/server/serverSettings";import type { McpCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Parse a comma/space/newline separated list into a string[]. */function parseOpList(raw: string): string[] {@@ -128,6 +129,7 @@ export function McpCard({{authMode === "oauth" && (<><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -152,6 +154,7 @@ export function McpCard({/><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -173,6 +176,7 @@ export function McpCard({/><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>@@ -201,6 +205,7 @@ export function McpCard({/><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/ServerCertificateCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/ServerCertificateCard.tsxindex aecad81597..e270329d51 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/ServerCertificateCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/ServerCertificateCard.tsx@@ -5,6 +5,7 @@ import { TextInput, NumberInput, Stack, Paper, Group } from "@mantine/core";import PendingBadge from "@editor/components/shared/config/PendingBadge";import { useLoginRequired } from "@editor/hooks/useLoginRequired";import type { GeneralCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** The certificate behind "Sign with Stirling-PDF". This was the whole Features@@ -50,6 +51,7 @@ export function ServerCertificateCard({<div><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/config/configSections/server/SystemCard.tsx b/frontend/src/editor/proprietary/components/shared/config/configSections/server/SystemCard.tsxindex bdf50a2034..acbfe2707a 100644--- a/frontend/src/editor/proprietary/components/shared/config/configSections/server/SystemCard.tsx+++ b/frontend/src/editor/proprietary/components/shared/config/configSections/server/SystemCard.tsx@@ -19,6 +19,7 @@ import {} from "@editor/i18n";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";import type { GeneralCardProps } from "@editor/components/shared/config/configSections/server/serverCardProps";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Branding, languages and the system-wide toggles. Writes ui.* and system.*. */export function SystemCard({@@ -221,6 +222,7 @@ export function SystemCard({<div id="frontendUrl"><TextInput+ className={privateContentClassName}label={<Group gap="xs"><span>diff --git a/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/EmailStage.tsx b/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/EmailStage.tsxindex 05b5dafc4a..67497aece4 100644--- a/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/EmailStage.tsx+++ b/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/EmailStage.tsx@@ -2,6 +2,7 @@ import React from "react";import { Stack, Text, TextInput } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface EmailStageProps {emailInput: string;@@ -35,6 +36,7 @@ export const EmailStage: React.FC<EmailStageProps> = ({placeholder={t("payment.emailStage.emailPlaceholder", "[email protected]")}value={emailInput}onChange={(e) => setEmailInput(e.currentTarget.value)}+ className={privateContentClassName}error={emailError}size="lg"requireddiff --git a/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/SuccessStage.tsx b/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/SuccessStage.tsxindex bc6ae604ae..1bffb696b7 100644--- a/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/SuccessStage.tsx+++ b/frontend/src/editor/proprietary/components/shared/stripeCheckout/stages/SuccessStage.tsx@@ -3,6 +3,7 @@ import { Alert, Stack, Text, Paper, Code, Group, Loader } from "@mantine/core";import { Button } from "@editor/ui/Button";import { useTranslation } from "react-i18next";import { PollingStatus } from "@editor/components/shared/stripeCheckout/types/checkout";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SuccessStageProps {isTeam?: boolean;@@ -67,7 +68,9 @@ export const SuccessStage: React.FC<SuccessStageProps> = ({<Text size="sm" fw={600}>{t("payment.licenseKey", "Your License Key")}</Text>- <Code block>{licenseKey}</Code>+ <Code block className={privateContentClassName}>+ {licenseKey}+ </Code><Buttonvariant="secondary"size="sm"diff --git a/frontend/src/editor/proprietary/components/workflow/ParticipantView.tsx b/frontend/src/editor/proprietary/components/workflow/ParticipantView.tsxindex a9987eaeb7..5da919b4a1 100644--- a/frontend/src/editor/proprietary/components/workflow/ParticipantView.tsx+++ b/frontend/src/editor/proprietary/components/workflow/ParticipantView.tsx@@ -15,6 +15,8 @@ import {import { Button } from "@editor/ui/Button";import { useParticipantSession } from "@editor/hooks/workflow/useParticipantSession";import { Icon } from "@editor/ui/Icon";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ParticipantViewProps {token: string;}@@ -303,10 +305,10 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {<Stack gap="sm"><Group justify="space-between"><div>- <Text fw={500} size="lg">+ <Text fw={500} size="lg" className={privateContentClassName}>{session.documentName}</Text>- <Text size="sm" c="dimmed">+ <Text size="sm" c="dimmed" className={privateContentClassName}>{t("workflow.participant.from", "From: {{name}}", {name: session.ownerUsername,})}@@ -321,7 +323,9 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {color="blue"variant="light">- <Text size="sm">{session.message}</Text>+ <Text size="sm" className={privateContentClassName}>+ {session.message}+ </Text></Alert>)}@@ -396,6 +400,7 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {"Select certificate file",)}value={certFile}+ className={privateContentClassName}onChange={setCertFile}accept=".p12,.pfx,.jks"size="sm"@@ -448,9 +453,11 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {},): ""}- {certValidation.subjectName- ? ` · ${certValidation.subjectName}`- : ""}+ {certValidation.subjectName && (+ <PrivateContent>+ {` · ${certValidation.subjectName}`}+ </PrivateContent>+ )}</Text>)}{certValidation.status === "error" && (@@ -476,6 +483,7 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {"e.g., San Francisco, CA",)}value={location}+ className={privateContentClassName}onChange={(e) => setLocation(e.currentTarget.value)}size="sm"/>@@ -487,6 +495,7 @@ const ParticipantView: React.FC<ParticipantViewProps> = ({ token }) => {"e.g., Document approval",)}value={reason}+ className={privateContentClassName}onChange={(e) => setReason(e.currentTarget.value)}size="sm"/>diff --git a/frontend/src/editor/proprietary/routes/InviteAccept.tsx b/frontend/src/editor/proprietary/routes/InviteAccept.tsxindex ad7fc7a626..98c2e8b7f0 100644--- a/frontend/src/editor/proprietary/routes/InviteAccept.tsx+++ b/frontend/src/editor/proprietary/routes/InviteAccept.tsx@@ -21,6 +21,7 @@ import "@editor/auth/ui/auth.css";import { BASE_PATH } from "@editor/constants/app";import apiClient from "@editor/services/apiClient";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface InviteData {email: string | null;role: string;@@ -232,7 +233,10 @@ export default function InviteAccept() {disabled={submitting}requiredautoComplete="email"- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}styles={authInputStyles}/></div>@@ -250,7 +254,10 @@ export default function InviteAccept() {disabled={submitting}requiredautoComplete="new-password"- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}styles={authInputStyles}/></div>@@ -267,7 +274,10 @@ export default function InviteAccept() {disabled={submitting}requiredautoComplete="new-password"- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}styles={authInputStyles}/></div>diff --git a/frontend/src/editor/proprietary/routes/ShareLinkPage.tsx b/frontend/src/editor/proprietary/routes/ShareLinkPage.tsxindex 339bc69658..155e98218f 100644--- a/frontend/src/editor/proprietary/routes/ShareLinkPage.tsx+++ b/frontend/src/editor/proprietary/routes/ShareLinkPage.tsx@@ -24,6 +24,8 @@ import {importShareLinkToWorkbench,ShareLinkMetadata,} from "@editor/services/shareLinkImport";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type ShareLinkStatus =| "loading"@@ -208,11 +210,12 @@ export default function ShareLinkPage() {{status === "ready" && (<>- <Text size="lg" fw={600}>+ <Text size="lg" fw={600} className={privateContentClassName}>{title}</Text><Text size="sm" c="dimmed">- {t("storageShare.ownerLabel", "Owner")}: {ownerLabel}+ {t("storageShare.ownerLabel", "Owner")}:{" "}+ <PrivateContent>{ownerLabel}</PrivateContent></Text>{metadata?.createdAt && (<Text size="sm" c="dimmed">diff --git a/frontend/src/editor/proprietary/routes/signup/SignupForm.tsx b/frontend/src/editor/proprietary/routes/signup/SignupForm.tsxindex 45d4614954..5898bd98a6 100644--- a/frontend/src/editor/proprietary/routes/signup/SignupForm.tsx+++ b/frontend/src/editor/proprietary/routes/signup/SignupForm.tsx@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";import { Checkbox, TextInput, PasswordInput } from "@mantine/core";import { Button } from "@editor/ui/Button";import { SignupFieldErrors } from "@editor/routes/signup/SignupFormValidation";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SignupFormProps {name?: string;@@ -63,7 +64,10 @@ export default function SignupForm({value={name}onChange={(e) => setName?.(e.target.value)}error={fieldErrors.name}- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}/></div>)}@@ -80,7 +84,7 @@ export default function SignupForm({onChange={(e) => setEmail(e.target.value)}onKeyDown={(e) => e.key === "Enter" && !isSubmitting && onSubmit()}error={fieldErrors.email}- classNames={{ label: "auth-label" }}+ classNames={{ label: "auth-label", input: privateContentClassName }}/></div>@@ -95,7 +99,7 @@ export default function SignupForm({onChange={(e) => setPassword(e.target.value)}onKeyDown={(e) => e.key === "Enter" && !isSubmitting && onSubmit()}error={fieldErrors.password}- classNames={{ label: "auth-label" }}+ classNames={{ label: "auth-label", input: privateContentClassName }}/></div>@@ -124,7 +128,10 @@ export default function SignupForm({e.key === "Enter" && !isSubmitting && onSubmit()}error={fieldErrors.confirmPassword}- classNames={{ label: "auth-label" }}+ classNames={{+ label: "auth-label",+ input: privateContentClassName,+ }}/></div></div>diff --git a/frontend/src/editor/proprietary/services/policyExport.ts b/frontend/src/editor/proprietary/services/policyExport.tsindex eff437b8eb..b9f692c055 100644--- a/frontend/src/editor/proprietary/services/policyExport.ts+++ b/frontend/src/editor/proprietary/services/policyExport.ts@@ -245,6 +245,7 @@ export async function enforceExportPolicies(alertType: "neutral",title: progressTitle(0),body: progressBody(0),+ privateBody: true,isPersistentPopup: true,expandable: false,glowColor: active[0].accent,diff --git a/frontend/src/editor/saas/components/settings/ConnectedInstancesSection.tsx b/frontend/src/editor/saas/components/settings/ConnectedInstancesSection.tsxindex 6efc261b9e..94f0bbbfb8 100644--- a/frontend/src/editor/saas/components/settings/ConnectedInstancesSection.tsx+++ b/frontend/src/editor/saas/components/settings/ConnectedInstancesSection.tsx@@ -9,6 +9,8 @@ import type { LinkedInstanceRow } from "@editor/types/linkedInstance";import { Banner, Button, EmptyState, Input, Modal, Skeleton } from "@editor/ui";import { ConnectedInstanceRow } from "@editor/components/settings/ConnectedInstanceRow";import { AccountConnectionLayout } from "@editor/components/settings/AccountConnectionLayout";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const BASE = "/api/v1/account-link/instances";@@ -106,11 +108,13 @@ function InstanceList({ userId, teamId }: { userId: string; teamId: number }) {<>{removedName && (<Banner tone="success">- {t(- "settings.connectedInstances.removedSuccess",- "{{name}} has been disconnected from your team.",- { name: removedName },- )}+ <PrivateContent>+ {t(+ "settings.connectedInstances.removedSuccess",+ "{{name}} has been disconnected from your team.",+ { name: removedName },+ )}+ </PrivateContent></Banner>)}{instances.isPending ? (@@ -191,15 +195,15 @@ function InstanceList({ userId, teamId }: { userId: string; teamId: number }) {open={selected !== null}onClose={close}width="sm"- title={t(- "settings.connectedInstances.confirmTitle",- "Remove {{name}}?",- {- name:- selected?.name ??- t("portal.accountLink.instances.unnamed", "Unnamed instance"),- },- )}+ title={+ <PrivateContent>+ {t("settings.connectedInstances.confirmTitle", "Remove {{name}}?", {+ name:+ selected?.name ??+ t("portal.accountLink.instances.unnamed", "Unnamed instance"),+ })}+ </PrivateContent>+ }disableBackdropClose={removal.isPending}disableEscapeClose={removal.isPending}footer={@@ -290,6 +294,7 @@ function InstanceList({ userId, teamId }: { userId: string; teamId: number }) {id={`${nameFormId}-input`}value={name}maxLength={255}+ className={privateContentClassName}onChange={(event) => setName(event.target.value)}disabled={rename.isPending}data-autofocus@@ -343,7 +348,7 @@ export default function ConnectedInstancesSection() {<span className="account-connection__eyebrow">{t("settings.connectedInstances.yourTeam", "Your team")}</span>- <h2>{currentTeam.name}</h2>+ <h2 className={privateContentClassName}>{currentTeam.name}</h2><p>{t("settings.connectedInstances.teamNote",diff --git a/frontend/src/editor/saas/components/shared/PrivateContent.tsx b/frontend/src/editor/saas/components/shared/PrivateContent.tsxdeleted file mode 100644index 5fb8fc0d66..0000000000--- a/frontend/src/editor/saas/components/shared/PrivateContent.tsx+++ /dev/null@@ -1,30 +0,0 @@-import React from "react";--interface PrivateContentProps extends React.HTMLAttributes<HTMLSpanElement> {- children: React.ReactNode;-}--/**- * SaaS override of the OSS PrivateContent wrapper.- * Adds both the PostHog no-capture class and the Userback opt-out class- * while keeping the same API and layout behavior (display: contents).- */-export const PrivateContent: React.FC<PrivateContentProps> = ({- children,- className = "",- style,- ...props-}) => {- const baseClass = "ph-no-capture userback-block";- const combinedClassName = className ? `${baseClass} ${className}` : baseClass;- const combinedStyle = {- display: "contents" as const,- ...style,- };-- return (- <span className={combinedClassName} style={combinedStyle} {...props}>- {children}- </span>- );-};diff --git a/frontend/src/editor/saas/components/shared/config/ProfilePictureCropper.tsx b/frontend/src/editor/saas/components/shared/config/ProfilePictureCropper.tsxindex 699f3f335b..b973debc2d 100644--- a/frontend/src/editor/saas/components/shared/config/ProfilePictureCropper.tsx+++ b/frontend/src/editor/saas/components/shared/config/ProfilePictureCropper.tsx@@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next";import Cropper from "react-easy-crop";import { getCroppedImage, type Area } from "@editor/utils/cropImage";import { Z_INDEX_OVER_CONFIG_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ProfilePictureCropperProps {file: File | null;@@ -150,7 +151,10 @@ export const ProfilePictureCropper: React.FC<ProfilePictureCropperProps> = ({)}{/* Cropper area */}- <Box style={{ position: "relative", width: "100%", height: 400 }}>+ <Box+ className={privateContentClassName}+ style={{ position: "relative", width: "100%", height: 400 }}+ >{imageSrc && (<Cropperimage={imageSrc}diff --git a/frontend/src/editor/saas/components/shared/config/configSections/Overview.tsx b/frontend/src/editor/saas/components/shared/config/configSections/Overview.tsxindex b66a2050fc..5b1fd85010 100644--- a/frontend/src/editor/saas/components/shared/config/configSections/Overview.tsx+++ b/frontend/src/editor/saas/components/shared/config/configSections/Overview.tsx@@ -30,6 +30,8 @@ import { ProfilePictureCropper } from "@editor/components/shared/config/ProfilePimport { updateProfilePictureMetadata } from "@editor/services/avatarSyncService";import { deleteCurrentAccount } from "@editor/services/accountDeletion";import { alert as showToast } from "@editor/components/toast";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface OverviewProps {onLogoutClick: () => void;@@ -384,7 +386,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {}}>{t("config.account.overview.signedInAs", "Signed in as")}:{" "}- {user.email}+ <PrivateContent>{user.email}</PrivateContent></p>)}</div>@@ -437,6 +439,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {src={profilePictureUrl || undefined}name={displayName}size="xl"+ className={privateContentClassName}/><divstyle={{@@ -474,6 +477,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {src={profilePictureUrl || undefined}name={displayName}size="xl"+ className={privateContentClassName}/><divstyle={{@@ -619,6 +623,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {value={email}onChange={(e) => setEmail(e.target.value)}required+ className={privateContentClassName}style={{ flex: 1 }}/><PasswordInput@@ -693,7 +698,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {"This action is permanent and cannot be undone. All your data will be deleted.",)}</Text>- <Text size="sm" fw={500} mb="xs">+ <Text size="sm" fw={500} mb="xs" className={privateContentClassName}>{t("config.account.overview.enterEmailConfirm","To confirm deletion, please type your email address ({{email}}) below:",@@ -704,6 +709,7 @@ const Overview: React.FC<OverviewProps> = ({ onLogoutClick }) => {placeholder={user?.email || ""}value={confirmEmail}onChange={(e) => setConfirmEmail(e.target.value)}+ className={privateContentClassName}mb="md"/><Group justify="flex-end" gap="sm">diff --git a/frontend/src/editor/saas/components/shared/config/configSections/PasswordSecurity.tsx b/frontend/src/editor/saas/components/shared/config/configSections/PasswordSecurity.tsxindex 22810fa1b5..1e3b8cc09c 100644--- a/frontend/src/editor/saas/components/shared/config/configSections/PasswordSecurity.tsx+++ b/frontend/src/editor/saas/components/shared/config/configSections/PasswordSecurity.tsx@@ -12,6 +12,7 @@ import { useTranslation } from "react-i18next";import { useAuth } from "@editor/auth/UseSession";import { supabase } from "@editor/auth/supabase";import { Z_INDEX_OVER_SETTINGS_MODAL } from "@editor/styles/zIndex";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const PasswordSecurity: React.FC = () => {const { t } = useTranslation();@@ -154,12 +155,14 @@ const PasswordSecurity: React.FC = () => {style={{ display: "flex", flexDirection: "column", gap: "0.75rem" }}><PasswordInput+ className={privateContentClassName}label={t("account.newPassword", "New Password")}placeholder={t("account.newPassword", "New Password")}value={newPassword}onChange={(e) => setNewPassword(e.currentTarget.value)}/><PasswordInput+ className={privateContentClassName}label={t("account.confirmNewPassword", "Confirm New Password")}placeholder={t("account.confirmNewPassword",diff --git a/frontend/src/editor/saas/components/shared/privateContentClassName.ts b/frontend/src/editor/saas/components/shared/privateContentClassName.tsnew file mode 100644index 0000000000..6508f036dd--- /dev/null+++ b/frontend/src/editor/saas/components/shared/privateContentClassName.ts@@ -0,0 +1,5 @@+/** Classes that keep an element's content out of analytics and feedback+ * captures. Clicks on it are still sent as events, without its text; session+ * replay shows it as an empty box. Put them on an element directly where a+ * `PrivateContent` wrapper would break its styling, such as a grid row. */+export const privateContentClassName = "ph-sensitive userback-block";diff --git a/frontend/src/editor/saas/components/tools/sign/SignSettings.tsx b/frontend/src/editor/saas/components/tools/sign/SignSettings.tsxindex 2e0d8ec02b..7d897b6f38 100644--- a/frontend/src/editor/saas/components/tools/sign/SignSettings.tsx+++ b/frontend/src/editor/saas/components/tools/sign/SignSettings.tsx@@ -42,6 +42,7 @@ import { useIsMobile } from "@editor/hooks/useIsMobile";import { buildSignaturePreview } from "@editor/utils/signaturePreview";import { Icon, type IconName } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type SignatureDrafts = {canvas?: string;image?: string;@@ -1085,6 +1086,7 @@ const SignSettings = ({><imgsrc={imageSignatureData}+ className={privateContentClassName}alt={translate("image.previewAlt", "Current image signature")}style={{maxWidth: "100%",diff --git a/frontend/src/editor/saas/hooks/useConfigButtonIcon.tsx b/frontend/src/editor/saas/hooks/useConfigButtonIcon.tsxindex 37ef9cf6b5..2666f9e8f4 100644--- a/frontend/src/editor/saas/hooks/useConfigButtonIcon.tsx+++ b/frontend/src/editor/saas/hooks/useConfigButtonIcon.tsx@@ -1,16 +1,29 @@import { Avatar } from "@mantine/core";import { useAuth } from "@editor/auth/UseSession";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function useConfigButtonIcon(): React.ReactNode {const { profilePictureUrl, user } = useAuth();if (profilePictureUrl) {- return <Avatar src={profilePictureUrl} radius="xl" size={24} />;+ return (+ <Avatar+ src={profilePictureUrl}+ radius="xl"+ size={24}+ className={privateContentClassName}+ />+ );}// Mirror the settings page fallback (initials avatar) so both spots show// the same identity badge while the picture URL is unavailable.const initial = user?.email?.trim()?.charAt(0)?.toUpperCase();return initial ? (- <Avatar radius="xl" size={24} color="blue">+ <Avatar+ radius="xl"+ size={24}+ color="blue"+ className={privateContentClassName}+ >{initial}</Avatar>) : null;diff --git a/frontend/src/editor/saas/routes/ConnectApproveView.tsx b/frontend/src/editor/saas/routes/ConnectApproveView.tsxindex e074e404f0..76d39af8f0 100644--- a/frontend/src/editor/saas/routes/ConnectApproveView.tsx+++ b/frontend/src/editor/saas/routes/ConnectApproveView.tsx@@ -4,6 +4,8 @@ import { Banner, Button, Checkbox, Spinner } from "@editor/ui";import { Icon } from "@editor/ui/Icon";import { Tooltip } from "@editor/components/shared/Tooltip";import { StepModalHeader } from "@editor/portal/components/shared/StepModalHeader";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** This page is step 2 of a flow that started on the instance, so it wears the same chrome: the admin@@ -184,8 +186,11 @@ export function ConnectApproveView({<dl className="saas-connect__facts"><dt>{t("connect.confirm.signedInAs", "Account")}</dt><dd>- {signedInEmail ??- t("connect.confirm.unknownAccount", "an unknown account")}+ {signedInEmail ? (+ <PrivateContent>{signedInEmail}</PrivateContent>+ ) : (+ t("connect.confirm.unknownAccount", "an unknown account")+ )}<buttontype="button"className="saas-connect__switch"@@ -223,7 +228,9 @@ export function ConnectApproveView({</Tooltip>) : null}</dt>- <dd className="saas-connect__origin">{pending?.callbackOrigin}</dd>+ <dd className={`saas-connect__origin ${privateContentClassName}`}>+ {pending?.callbackOrigin}+ </dd></dl>{error ? <Banner tone="danger">{error}</Banner> : null}diff --git a/frontend/src/editor/saas/routes/Login.tsx b/frontend/src/editor/saas/routes/Login.tsxindex eba5e317ab..379571d4a2 100644--- a/frontend/src/editor/saas/routes/Login.tsx+++ b/frontend/src/editor/saas/routes/Login.tsx@@ -28,6 +28,8 @@ import OAuthButtons from "@editor/routes/login/OAuthButtons";import LoggedInState from "@editor/routes/login/LoggedInState";import { LoadingFallback } from "@editor/components/shared/LoadingFallback";import loginHeader from "@editor/assets/brand/modern-logo/LoginLightModeHeader.svg";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export default function Login() {const navigate = useNavigate();@@ -351,7 +353,9 @@ export default function Login() {margin: 0,}}>- {t("login.magicLinkSent", { email: magicLinkEmail })}+ <PrivateContent>+ {t("login.magicLinkSent", { email: magicLinkEmail })}+ </PrivateContent></p>) : (<div className="auth-magic-row">@@ -368,7 +372,7 @@ export default function Login() {!isSigningIn &&signInWithMagicLink()}- className="auth-input"+ className={`auth-input ${privateContentClassName}`}/><ButtononClick={signInWithMagicLink}diff --git a/frontend/src/editor/saas/routes/ResetPassword.tsx b/frontend/src/editor/saas/routes/ResetPassword.tsxindex c0a3f600bc..1d971f3503 100644--- a/frontend/src/editor/saas/routes/ResetPassword.tsx+++ b/frontend/src/editor/saas/routes/ResetPassword.tsx@@ -10,6 +10,7 @@ import { supabase } from "@editor/auth/supabase";import { absoluteWithBasePath } from "@editor/constants/app";import { useTranslation } from "@editor/hooks/useTranslation";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export default function ResetPassword() {const { t } = useTranslation();@@ -215,7 +216,7 @@ export default function ResetPassword() {placeholder={t("signup.enterPassword")}value={password}onChange={(e) => setPassword(e.target.value)}- className="auth-input"+ className={`auth-input ${privateContentClassName}`}/></div><div className="auth-field">@@ -230,7 +231,7 @@ export default function ResetPassword() {placeholder={t("signup.confirmPasswordPlaceholder")}value={confirmPassword}onChange={(e) => setConfirmPassword(e.target.value)}- className="auth-input"+ className={`auth-input ${privateContentClassName}`}/></div></div>diff --git a/frontend/src/editor/saas/routes/login/EmailPasswordForm.tsx b/frontend/src/editor/saas/routes/login/EmailPasswordForm.tsxindex b45b56a376..3ad14cb486 100644--- a/frontend/src/editor/saas/routes/login/EmailPasswordForm.tsx+++ b/frontend/src/editor/saas/routes/login/EmailPasswordForm.tsx@@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next";import "@editor/auth/ui/auth.css";import "@editor/routes/authShared/saas-auth.css";import { Button } from "@editor/ui/Button";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface EmailPasswordFormProps {email: string;@@ -50,7 +51,7 @@ export default function EmailPasswordForm({placeholder={t("login.enterEmail", "Enter email")}value={email}onChange={(e) => setEmail(e.target.value)}- className={`auth-input ${fieldErrors.email ? "auth-input-error" : ""}`}+ className={`auth-input ${privateContentClassName} ${fieldErrors.email ? "auth-input-error" : ""}`}/>{fieldErrors.email && (<div className="auth-field-error">{fieldErrors.email}</div>@@ -70,7 +71,7 @@ export default function EmailPasswordForm({placeholder={t("login.enterPassword")}value={password}onChange={(e) => setPassword(e.target.value)}- className={`auth-input ${fieldErrors.password ? "auth-input-error" : ""}`}+ className={`auth-input ${privateContentClassName} ${fieldErrors.password ? "auth-input-error" : ""}`}/>{fieldErrors.password && (<div className="auth-field-error">{fieldErrors.password}</div>diff --git a/frontend/src/editor/saas/routes/login/MagicLinkForm.tsx b/frontend/src/editor/saas/routes/login/MagicLinkForm.tsxindex 2e482c4d8d..0abd8b17aa 100644--- a/frontend/src/editor/saas/routes/login/MagicLinkForm.tsx+++ b/frontend/src/editor/saas/routes/login/MagicLinkForm.tsx@@ -2,6 +2,7 @@ import { Button } from "@editor/ui/Button";import { useTranslation } from "@editor/hooks/useTranslation";import "@editor/auth/ui/auth.css";import "@editor/routes/authShared/saas-auth.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface MagicLinkFormProps {showMagicLink: boolean;@@ -47,7 +48,7 @@ export default function MagicLinkForm({value={magicLinkEmail}onChange={(e) => setMagicLinkEmail(e.target.value)}onKeyPress={(e) => e.key === "Enter" && !isSubmitting && onSubmit()}- className="auth-input"+ className={`auth-input ${privateContentClassName}`}/><ButtononClick={onSubmit}diff --git a/frontend/src/editor/saas/routes/login/SuccessMessage.tsx b/frontend/src/editor/saas/routes/login/SuccessMessage.tsxindex d2760aa242..7e18e359dc 100644--- a/frontend/src/editor/saas/routes/login/SuccessMessage.tsx+++ b/frontend/src/editor/saas/routes/login/SuccessMessage.tsx@@ -1,3 +1,4 @@+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface SuccessMessageProps {success: string | null;}@@ -7,7 +8,9 @@ export default function SuccessMessage({ success }: SuccessMessageProps) {return (<div className="success-message">- <p className="success-message-text">{success}</p>+ <p className={`success-message-text ${privateContentClassName}`}>+ {success}+ </p></div>);}diff --git a/frontend/src/processor/proprietary/components/AssistantPanel.tsx b/frontend/src/processor/proprietary/components/AssistantPanel.tsxindex 8307ef9acd..922f4a20cf 100644--- a/frontend/src/processor/proprietary/components/AssistantPanel.tsx+++ b/frontend/src/processor/proprietary/components/AssistantPanel.tsx@@ -9,6 +9,7 @@ import {} from "@processor/api/assistant";import { Icon } from "@editor/ui/Icon";import "@processor/components/AssistantPanel.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Message {id: number;@@ -133,9 +134,7 @@ export function AssistantPanel() {{messages.map((m) => (<divkey={m.id}- className={- "portal-assistant__bubble portal-assistant__bubble--" + m.role- }+ className={`portal-assistant__bubble portal-assistant__bubble--${m.role} ${privateContentClassName}`}>{m.text}</div>@@ -167,7 +166,7 @@ export function AssistantPanel() {onChange={(e) => setInput(e.target.value)}placeholder={t("portal.assistant.inputPlaceholder")}aria-label={t("portal.assistant.inputAriaLabel")}- className="portal-assistant__input"+ className={`portal-assistant__input ${privateContentClassName}`}disabled={typing}/><ActionIcondiff --git a/frontend/src/processor/proprietary/components/EditorStatusCard.tsx b/frontend/src/processor/proprietary/components/EditorStatusCard.tsxindex 6076aea8e4..1de3ae2316 100644--- a/frontend/src/processor/proprietary/components/EditorStatusCard.tsx+++ b/frontend/src/processor/proprietary/components/EditorStatusCard.tsx@@ -13,6 +13,7 @@ import { DownloadEditorModal } from "@processor/components/DownloadEditorModal";import "@processor/theme/surface.css";import { BrandTile } from "@editor/components/shared/BrandTile";import "@processor/components/EditorStatusCard.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The instance to headline: the busiest healthy one, else the first. */function primaryInstance(instances: EditorInstance[]): EditorInstance | null {@@ -123,7 +124,11 @@ export function EditorStatusCard({ footer }: EditorStatusCardProps) {{t("portal.home.editor.name")}</span>{view?.host && (- <span className="portal-editor-hero__host">{view.host}</span>+ <span+ className={`portal-editor-hero__host ${privateContentClassName}`}+ >+ {view.host}+ </span>)}{adoption && (<>diff --git a/frontend/src/processor/proprietary/components/account-link/LinkAccountCard.tsx b/frontend/src/processor/proprietary/components/account-link/LinkAccountCard.tsxindex 83559b3ffa..27e8149bee 100644--- a/frontend/src/processor/proprietary/components/account-link/LinkAccountCard.tsx+++ b/frontend/src/processor/proprietary/components/account-link/LinkAccountCard.tsx@@ -7,6 +7,7 @@ import "@editor/components/settings/AccountConnectionLayout.css";import type { UseAccountLink } from "@processor/hooks/useAccountLink";import { useUI } from "@processor/contexts/UIContext";import { useLinkedAccountEmail } from "@processor/hooks/useLinkedAccountEmail";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {link: UseAccountLink;@@ -71,7 +72,13 @@ export function LinkAccountCard({ link, instanceName }: Props) {{t("portal.accountLink.card.eyebrow", "This instance")}</span><div className="portal-link__section-head">- <h2>+ <h2+ className={+ (instanceName ?? link.status?.name)+ ? privateContentClassName+ : undefined+ }+ >{instanceName ??link.status?.name ??t("portal.accountLink.card.title", "Stirling Cloud")}@@ -103,7 +110,7 @@ export function LinkAccountCard({ link, instanceName }: Props) {"portal.accountLink.card.signedInAs","Signed in to Stirling Cloud as",)}{" "}- <strong>{email}</strong>+ <strong className={privateContentClassName}>{email}</strong></p>)}{linked && (diff --git a/frontend/src/processor/proprietary/components/account-link/LinkedInstancesTable.tsx b/frontend/src/processor/proprietary/components/account-link/LinkedInstancesTable.tsxindex 27638ec93e..546f46f7c4 100644--- a/frontend/src/processor/proprietary/components/account-link/LinkedInstancesTable.tsx+++ b/frontend/src/processor/proprietary/components/account-link/LinkedInstancesTable.tsx@@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next";import { Button, EmptyState, Modal } from "@editor/ui";import { ConnectedInstanceRow } from "@editor/components/settings/ConnectedInstanceRow";import type { LinkedInstanceRow } from "@editor/types/linkedInstance";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface Props {instances: LinkedInstanceRow[];@@ -60,15 +61,15 @@ export function LinkedInstancesTable({open={selected !== null}onClose={() => setSelected(null)}width="sm"- title={t(- "settings.connectedInstances.confirmTitle",- "Remove {{name}}?",- {- name:- selected?.name ??- t("portal.accountLink.instances.unnamed", "Unnamed instance"),- },- )}+ title={+ <PrivateContent>+ {t("settings.connectedInstances.confirmTitle", "Remove {{name}}?", {+ name:+ selected?.name ??+ t("portal.accountLink.instances.unnamed", "Unnamed instance"),+ })}+ </PrivateContent>+ }footer={<div className="account-connection__actions"><Buttondiff --git a/frontend/src/processor/proprietary/components/account-link/connect/ConnectDoneSlide.tsx b/frontend/src/processor/proprietary/components/account-link/connect/ConnectDoneSlide.tsxindex 3b319ee0ef..78f51761ec 100644--- a/frontend/src/processor/proprietary/components/account-link/connect/ConnectDoneSlide.tsx+++ b/frontend/src/processor/proprietary/components/account-link/connect/ConnectDoneSlide.tsx@@ -8,6 +8,7 @@ import { useLinkedAccountEmail } from "@processor/hooks/useLinkedAccountEmail";import { VIEW_PATHS, toPortalPath } from "@processor/contexts/ViewContext";import "@processor/components/billing/billing.css";import "@editor/components/account-link/connect.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props {/** Closes the dialog first, so a next step does not land behind the overlay. */@@ -127,7 +128,11 @@ export function ConnectDoneSlide({ onNavigate }: Props) {<span className="portal-connect__row-label">{t("portal.accountLink.connect.done.accountLabel", "Account")}</span>- <span className="portal-connect__row-detail">{email}</span>+ <span+ className={`portal-connect__row-detail ${privateContentClassName}`}+ >+ {email}+ </span></div>)}diff --git a/frontend/src/processor/proprietary/components/billing/BundleCheckoutModal.tsx b/frontend/src/processor/proprietary/components/billing/BundleCheckoutModal.tsxindex e5c8caef02..2790953a92 100644--- a/frontend/src/processor/proprietary/components/billing/BundleCheckoutModal.tsx+++ b/frontend/src/processor/proprietary/components/billing/BundleCheckoutModal.tsx@@ -45,6 +45,7 @@ import {type BundleStripeQuote,} from "@editor/portal/billing/stripe";import "@editor/portal/theme/surface.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";const DEFAULT_POOL_CREDITS = 1_200_000;const DEFAULT_USERS = 25;@@ -1220,6 +1221,7 @@ function PaymentStep({<InputinputSize="sm"value={accountName}+ className={privateContentClassName}onChange={(e) => setAccountName(e.target.value)}placeholder={t("portal.billing.prepaid.pay.accountNamePlaceholder",@@ -1237,6 +1239,7 @@ function PaymentStep({<InputinputSize="sm"value={companyName}+ className={privateContentClassName}onChange={(e) => setCompanyName(e.target.value)}placeholder={t("portal.billing.prepaid.pay.companyNamePlaceholder",@@ -1253,6 +1256,7 @@ function PaymentStep({<InputinputSize="sm"value={poNumber}+ className={privateContentClassName}onChange={(e) => setPoNumber(e.target.value)}placeholder={t("portal.billing.prepaid.pay.poNumberPlaceholder",diff --git a/frontend/src/processor/proprietary/components/billing/PaymentSection.tsx b/frontend/src/processor/proprietary/components/billing/PaymentSection.tsxindex 834219d5b5..d408c632d1 100644--- a/frontend/src/processor/proprietary/components/billing/PaymentSection.tsx+++ b/frontend/src/processor/proprietary/components/billing/PaymentSection.tsx@@ -8,6 +8,7 @@ import {type PaymentMethod,type Wallet,} from "@processor/api/billing";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/*** The Payment section for the portal host, read off the Stripe mirror.@@ -83,7 +84,7 @@ export function PaymentSection({<><KvRowlabel={t("portal.billing.payment.method", "Payment method")}- value={card}+ value={<PrivateContent>{card}</PrivateContent>}door={update}/>{details?.upcomingInvoices?.length ? (@@ -107,14 +108,14 @@ export function PaymentSection({{details?.companyName && (<KvRowlabel={t("portal.billing.payment.billedTo", "Billed to")}- value={details.companyName}+ value={<PrivateContent>{details.companyName}</PrivateContent>}door={update}/>)}{details?.invoiceEmail && (<KvRowlabel={t("portal.billing.payment.invoicesTo", "Invoices go to")}- value={details.invoiceEmail}+ value={<PrivateContent>{details.invoiceEmail}</PrivateContent>}door={update}/>)}diff --git a/frontend/src/processor/proprietary/components/billing/ServerLicenseSection.tsx b/frontend/src/processor/proprietary/components/billing/ServerLicenseSection.tsxindex ab1117ddce..b787f939b0 100644--- a/frontend/src/processor/proprietary/components/billing/ServerLicenseSection.tsx+++ b/frontend/src/processor/proprietary/components/billing/ServerLicenseSection.tsx@@ -6,6 +6,7 @@ import LicenseKeySection from "@editor/components/shared/config/configSections/pimport { KvRow } from "@editor/billing/KvRow";import { Banner, Button, Spinner } from "@editor/ui";import { Modal } from "@editor/ui/Modal";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The caller must restrict this server-local license surface to administrators. */export function ServerLicenseSection({ onSaved }: { onSaved: () => void }) {@@ -56,7 +57,9 @@ export function ServerLicenseSection({ onSaved }: { onSaved: () => void }) {value={licenseKey ? (certificate ? (- <span className="billing-license__value">+ <span+ className={`billing-license__value ${privateContentClassName}`}+ >{certificate.split(/[\\/]/).pop()}</span>) : (@@ -106,7 +109,9 @@ export function ServerLicenseSection({ onSaved }: { onSaved: () => void }) {): label}</p>- <code className="billing-license__value">+ <code+ className={`billing-license__value ${privateContentClassName}`}+ >{certificate ?? licenseKey}</code></div>diff --git a/frontend/src/processor/proprietary/components/documents/DocumentAudit.tsx b/frontend/src/processor/proprietary/components/documents/DocumentAudit.tsxindex 1363c0c750..76ac98de16 100644--- a/frontend/src/processor/proprietary/components/documents/DocumentAudit.tsx+++ b/frontend/src/processor/proprietary/components/documents/DocumentAudit.tsx@@ -5,6 +5,7 @@ import {DOC_AUDIT_TONE,type ReviewDocument,} from "@processor/api/documents";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/** Lifecycle timeline for a single document, oldest first. */export function DocumentAudit({ doc }: { doc: ReviewDocument }) {@@ -30,9 +31,11 @@ export function DocumentAudit({ doc }: { doc: ReviewDocument }) {{event.time}</span></div>- <p className="portal-documents__timeline-detail">{event.detail}</p>+ <p className="portal-documents__timeline-detail">+ <PrivateContent>{event.detail}</PrivateContent>+ </p><span className="portal-documents__timeline-actor">- {event.actor}+ <PrivateContent>{event.actor}</PrivateContent></span></div></li>diff --git a/frontend/src/processor/proprietary/components/documents/DocumentDrawer.tsx b/frontend/src/processor/proprietary/components/documents/DocumentDrawer.tsxindex bf11905738..449ba02ec5 100644--- a/frontend/src/processor/proprietary/components/documents/DocumentDrawer.tsx+++ b/frontend/src/processor/proprietary/components/documents/DocumentDrawer.tsx@@ -12,6 +12,7 @@ import { DocumentOverview } from "@processor/components/documents/DocumentOverviimport { DocumentExtractions } from "@processor/components/documents/DocumentExtractions";import { DocumentAudit } from "@processor/components/documents/DocumentAudit";import { ElevationBanner } from "@processor/components/documents/ElevationBanner";+import { PrivateContent } from "@editor/components/shared/PrivateContent";type SubTab = "overview" | "extractions" | "audit";@@ -78,8 +79,10 @@ export function DocumentDrawer({ doc, onClose }: DocumentDrawerProps) {openonClose={onClose}width="lg"- title={doc.name}- subtitle={`${doc.type} · ${doc.source}`}+ title={<PrivateContent>{doc.name}</PrivateContent>}+ subtitle={+ <PrivateContent>{`${doc.type} · ${doc.source}`}</PrivateContent>+ }><div className="portal-documents__drawer"><div className="portal-documents__drawer-status">diff --git a/frontend/src/processor/proprietary/components/documents/DocumentExtractions.tsx b/frontend/src/processor/proprietary/components/documents/DocumentExtractions.tsxindex c4298579e7..4bfb91715e 100644--- a/frontend/src/processor/proprietary/components/documents/DocumentExtractions.tsx+++ b/frontend/src/processor/proprietary/components/documents/DocumentExtractions.tsx@@ -34,6 +34,7 @@ export function DocumentExtractions({column.mono({key: "value",header: t("portal.documents.extractions.columns.value"),+ privateContent: true,get: (e) => e.value,}),column.badge({diff --git a/frontend/src/processor/proprietary/components/documents/DocumentOverview.tsx b/frontend/src/processor/proprietary/components/documents/DocumentOverview.tsxindex cbcf87d521..58f6e4031a 100644--- a/frontend/src/processor/proprietary/components/documents/DocumentOverview.tsx+++ b/frontend/src/processor/proprietary/components/documents/DocumentOverview.tsx@@ -4,6 +4,7 @@ import {DOCUMENT_STATUS_LABEL,type ReviewDocument,} from "@processor/api/documents";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/** Key fields for the selected document - product, action, user, status. */export function DocumentOverview({ doc }: { doc: ReviewDocument }) {@@ -29,7 +30,7 @@ export function DocumentOverview({ doc }: { doc: ReviewDocument }) {/><StatTilelabel={t("portal.documents.overview.user")}- value={doc.user || "-"}+ value={<PrivateContent>{doc.user || "-"}</PrivateContent>}/><StatTilelabel={t("portal.documents.overview.type")}diff --git a/frontend/src/processor/proprietary/components/documents/ReviewQueue.tsx b/frontend/src/processor/proprietary/components/documents/ReviewQueue.tsxindex f71fdc5158..91ea9dd9f8 100644--- a/frontend/src/processor/proprietary/components/documents/ReviewQueue.tsx+++ b/frontend/src/processor/proprietary/components/documents/ReviewQueue.tsx@@ -15,6 +15,7 @@ import { VIEW_PATHS, toPortalPath } from "@processor/contexts/ViewContext";import { ReviewQueueTable } from "@processor/components/documents/ReviewQueueTable";import { DocumentDrawer } from "@processor/components/documents/DocumentDrawer";import { SourceModal } from "@processor/components/sources/SourceModal";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";type QueueFilter = "all" | "flagged" | "processed" | "in-review";@@ -105,7 +106,7 @@ export function ReviewQueue({ documents, loading }: ReviewQueueProps) {ariaLabel={t("portal.documents.filters.ariaLabel")}/><Input- className="portal-documents__search"+ className={`portal-documents__search ${privateContentClassName}`}value={query}onChange={(e) => setQuery(e.target.value)}placeholder={t("portal.documents.search")}diff --git a/frontend/src/processor/proprietary/components/documents/ReviewQueueTable.tsx b/frontend/src/processor/proprietary/components/documents/ReviewQueueTable.tsxindex 00dd980d5e..d429ef26ca 100644--- a/frontend/src/processor/proprietary/components/documents/ReviewQueueTable.tsx+++ b/frontend/src/processor/proprietary/components/documents/ReviewQueueTable.tsx@@ -30,6 +30,7 @@ export function ReviewQueueTable({key: "document",header: t("portal.documents.table.columns.document"),sortable: true,+ privateContent: true,primary: (d) => d.name,note: (d) => d.note,}),@@ -78,12 +79,14 @@ export function ReviewQueueTable({key: "user",header: t("portal.documents.table.columns.user"),sortable: true,+ privateContent: true,get: (d) => d.user,}),column.badge({key: "status",header: t("portal.documents.table.columns.status"),sortable: true,+ privateContent: true,get: (d) => ({tone: DOCUMENT_STATUS_TONE[d.status],label:diff --git a/frontend/src/processor/proprietary/components/failures/FileRunEventList.tsx b/frontend/src/processor/proprietary/components/failures/FileRunEventList.tsxindex 7798290660..532cfabefd 100644--- a/frontend/src/processor/proprietary/components/failures/FileRunEventList.tsx+++ b/frontend/src/processor/proprietary/components/failures/FileRunEventList.tsx@@ -24,6 +24,7 @@ import {import { useSources } from "@processor/queries/sources";import { buildFailureActionCells } from "@processor/components/failures/failureActionCells";import { outcomeOf } from "@processor/components/failures/failureOutcomes";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** The review queue: what a policy run or an editor tool needs a human to look at. */@@ -77,6 +78,7 @@ export function FileRunEventList() {key: "user",label: t("portal.failures.filters.user", "User"),getValue: (event) => event.actor,+ privateContent: true,},{key: "origin",@@ -149,6 +151,7 @@ export function FileRunEventList() {key: "user",header: t("portal.failures.columns.user", "User"),sortable: true,+ privateContent: true,get: (event) => event.actor,placeholder: "-",}),@@ -179,6 +182,7 @@ export function FileRunEventList() {key: "closedBy",header: t("portal.failures.columns.closedBy", "Closed by"),sortable: true,+ privateContent: true,get: (event) => event.statusActor,placeholder: t("portal.failures.closedBySystem", "Stirling"),}),@@ -287,7 +291,9 @@ export function FileRunEventList() {</Button>}>- <pre className="portal-failures__log">{logOf?.detail}</pre>+ <pre className={`portal-failures__log ${privateContentClassName}`}>+ {logOf?.detail}+ </pre></Modal></div>);diff --git a/frontend/src/processor/proprietary/components/infrastructure/ApiKeyCard.tsx b/frontend/src/processor/proprietary/components/infrastructure/ApiKeyCard.tsxindex 76416b04ce..0d357d3f86 100644--- a/frontend/src/processor/proprietary/components/infrastructure/ApiKeyCard.tsx+++ b/frontend/src/processor/proprietary/components/infrastructure/ApiKeyCard.tsx@@ -6,6 +6,7 @@ import {KEY_LABEL,KEY_TONE,} from "@processor/components/infrastructure/infraFormat";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** Collapsible row for a single API key: header summary + expandable detail grid. */export function ApiKeyCard({@@ -44,7 +45,11 @@ export function ApiKeyCard({><span className="portal-infra__key-id"><span className="portal-infra__cell-strong">{apiKey.name}</span>- <code className="portal-infra__cell-code">{apiKey.prefix}</code>+ <code+ className={`portal-infra__cell-code ${privateContentClassName}`}+ >+ {apiKey.prefix}+ </code></span></Button>diff --git a/frontend/src/processor/proprietary/components/infrastructure/AuditTab.tsx b/frontend/src/processor/proprietary/components/infrastructure/AuditTab.tsxindex cd79cdb35c..ffc0eca597 100644--- a/frontend/src/processor/proprietary/components/infrastructure/AuditTab.tsx+++ b/frontend/src/processor/proprietary/components/infrastructure/AuditTab.tsx@@ -78,12 +78,14 @@ export function AuditTab() {column.mono({key: "actor",header: t("portal.infrastructure.audit.columns.actor"),+ privateContent: true,sortable: true,get: (e) => e.actor,}),column.text({key: "target",header: t("portal.infrastructure.audit.columns.target"),+ privateContent: true,sortable: true,get: (e) => e.target,}),diff --git a/frontend/src/processor/proprietary/components/infrastructure/CreateKeyModal.tsx b/frontend/src/processor/proprietary/components/infrastructure/CreateKeyModal.tsxindex bb113319d8..8abae592a7 100644--- a/frontend/src/processor/proprietary/components/infrastructure/CreateKeyModal.tsx+++ b/frontend/src/processor/proprietary/components/infrastructure/CreateKeyModal.tsx@@ -6,6 +6,7 @@ import {type CreatedApiKey,} from "@processor/api/infrastructure";import { errorMessage } from "@processor/api/http";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export function CreateKeyModal({open,@@ -90,6 +91,7 @@ export function CreateKeyModal({<div className="portal-infra__stack"><CodeBlockcode={created.secret}+ className={privateContentClassName}lang="bash"caption={t("portal.infrastructure.createKey.secretKeyCaption")}/>diff --git a/frontend/src/processor/proprietary/components/infrastructure/EncryptionKeyTable.tsx b/frontend/src/processor/proprietary/components/infrastructure/EncryptionKeyTable.tsxindex 552b7fe939..d8970f858c 100644--- a/frontend/src/processor/proprietary/components/infrastructure/EncryptionKeyTable.tsx+++ b/frontend/src/processor/proprietary/components/infrastructure/EncryptionKeyTable.tsx@@ -107,6 +107,7 @@ export function EncryptionKeyTable({column.muted({key: "lastChange",header: t("portal.infrastructure.encryption.keys.columns.lastChange"),+ privateContent: true,get: (row) => lastChange(row),}),column.actions({diff --git a/frontend/src/processor/proprietary/components/infrastructure/EncryptionPanel.tsx b/frontend/src/processor/proprietary/components/infrastructure/EncryptionPanel.tsxindex 234ba26d3f..36853880a9 100644--- a/frontend/src/processor/proprietary/components/infrastructure/EncryptionPanel.tsx+++ b/frontend/src/processor/proprietary/components/infrastructure/EncryptionPanel.tsx@@ -37,6 +37,7 @@ import { EncryptionMigrationCard } from "@processor/components/infrastructure/Enimport { EncryptionRotationCard } from "@processor/components/infrastructure/EncryptionRotationCard";import "@processor/components/infrastructure/infrastructure.css";import "@processor/components/infrastructure/EncryptionPanel.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/** How often to re-read migration progress while a run is going. */const MIGRATION_POLL_MS = 2000;@@ -396,7 +397,10 @@ export function EncryptionPanel({"portal.infrastructure.encryption.masterKey.fingerprint",)}</span>- <code ref={fingerprintRef}>+ <code+ ref={fingerprintRef}+ className={privateContentClassName}+ >{status.masterKeyFingerprint}</code><InfoHintdiff --git a/frontend/src/processor/proprietary/components/pipelines/PipelineDefinitionModal.tsx b/frontend/src/processor/proprietary/components/pipelines/PipelineDefinitionModal.tsxindex 442d6b0aad..a24bee0b81 100644--- a/frontend/src/processor/proprietary/components/pipelines/PipelineDefinitionModal.tsx+++ b/frontend/src/processor/proprietary/components/pipelines/PipelineDefinitionModal.tsx@@ -1,6 +1,7 @@import { useTranslation } from "react-i18next";import { CodeBlock, Modal } from "@editor/ui";import "@processor/components/pipelines/PipelineDefinitionModal.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";export interface PipelineDefinitionModalProps {open: boolean;@@ -35,7 +36,7 @@ export function PipelineDefinitionModal({code={json}lang="json"maxHeight={420}- className="portal-definition__code"+ className={`portal-definition__code ${privateContentClassName}`}/></Modal>);diff --git a/frontend/src/processor/proprietary/components/pipelines/PipelineGraphToolbar.tsx b/frontend/src/processor/proprietary/components/pipelines/PipelineGraphToolbar.tsxindex 37c13a54e7..c61bc4f1c5 100644--- a/frontend/src/processor/proprietary/components/pipelines/PipelineGraphToolbar.tsx+++ b/frontend/src/processor/proprietary/components/pipelines/PipelineGraphToolbar.tsx@@ -5,6 +5,8 @@ import { Icon } from "@editor/ui/Icon";import { ActionIcon, Button, FilePicker, Spinner } from "@editor/ui";import { type RunOutputFile } from "@processor/api/pipelines";import "@processor/components/pipelines/PipelineGraphToolbar.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** A test run's outcome. Whole-pipeline, not per-node: the backend reports one flat list of files@@ -131,7 +133,9 @@ function RunResultStrip({ result, onDownload }: RunResultStripProps) {{/* The reason it failed, where the failure is announced - not only on the node, which the userhas to know to click. */}{result.status === "failed" && result.error && (- <span className="portal-pipeline-toolbar__result-error">+ <span+ className={`portal-pipeline-toolbar__result-error ${privateContentClassName}`}+ >{result.error}</span>)}@@ -144,7 +148,7 @@ function RunResultStrip({ result, onDownload }: RunResultStripProps) {onClick={() => onDownload(output)}leftSection={<Icon name="download" size={"1.125rem"} />}>- {output.fileName ?? output.fileId}+ <PrivateContent>{output.fileName ?? output.fileId}</PrivateContent></Button>))}</div>diff --git a/frontend/src/processor/proprietary/components/pipelines/PipelineInspector.tsx b/frontend/src/processor/proprietary/components/pipelines/PipelineInspector.tsxindex 655e555dad..c515c2bd70 100644--- a/frontend/src/processor/proprietary/components/pipelines/PipelineInspector.tsx+++ b/frontend/src/processor/proprietary/components/pipelines/PipelineInspector.tsx@@ -4,6 +4,7 @@ import { Icon } from "@editor/ui/Icon";import { Banner, EmptyState } from "@editor/ui";import "@processor/theme/surface.css";import "@processor/components/pipelines/PipelineInspector.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";export interface PipelineInspectorProps {/** Names what is selected, e.g. the step's tool or "Input". Absent when nothing is. */@@ -72,7 +73,11 @@ export function PipelineInspector({<span>{title}</span></div><div className="portal-inspector__body">- {error && <Banner tone="danger">{error}</Banner>}+ {error && (+ <Banner tone="danger">+ <PrivateContent>{error}</PrivateContent>+ </Banner>+ )}{children}</div></aside>diff --git a/frontend/src/processor/proprietary/components/pipelines/PipelineStepSettings.tsx b/frontend/src/processor/proprietary/components/pipelines/PipelineStepSettings.tsxindex 9ddc1839b8..ccf12f28be 100644--- a/frontend/src/processor/proprietary/components/pipelines/PipelineStepSettings.tsx+++ b/frontend/src/processor/proprietary/components/pipelines/PipelineStepSettings.tsx@@ -19,6 +19,7 @@ import { isIngestStep } from "@processor/components/pipelines/docparseStep";import { IngestStepConfig } from "@processor/components/pipelines/IngestStepConfig";import type { ExternalApiStepParams } from "@processor/components/policies/stepOperations";import "@processor/components/pipelines/PipelineStepSettings.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";/*** A params update: the next params outright, or a merge from the latest params. Settings UIs fire@@ -172,7 +173,7 @@ export function PipelineStepSettings({leadingIcon={<Icon name="file" size={"0.875rem"} />}onRemove={() => onClearBinding(chip.field)}>- {chip.label}+ <PrivateContent>{chip.label}</PrivateContent></Chip>))}</div>diff --git a/frontend/src/processor/proprietary/components/policies/PolicyExternalApiConfig.tsx b/frontend/src/processor/proprietary/components/policies/PolicyExternalApiConfig.tsxindex 8f51d99917..80c180077d 100644--- a/frontend/src/processor/proprietary/components/policies/PolicyExternalApiConfig.tsx+++ b/frontend/src/processor/proprietary/components/policies/PolicyExternalApiConfig.tsx@@ -21,6 +21,7 @@ import {type ExternalApiStepParams,type StepOperation,} from "@processor/components/policies/stepOperations";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** Configures a "send the document to another system" step.@@ -213,7 +214,7 @@ export function PolicyExternalApiConfig({>{field.control === "textarea" ? (<textarea- className="portal-sources__connection-textarea"+ className={`portal-sources__connection-textarea ${privateContentClassName}`}rows={3}value={values[field.key] ?? ""}onChange={(e) => setValue(field.key, e.target.value)}@@ -230,6 +231,7 @@ export function PolicyExternalApiConfig({) : (<Inputvalue={values[field.key] ?? ""}+ className={privateContentClassName}placeholder={field.placeholderKey ? t(field.placeholderKey) : undefined}@@ -312,6 +314,7 @@ function CustomCallFields({><Inputvalue={str("path")}+ className={privateContentClassName}placeholder="/v1/scan"onChange={(e) => set("path", e.target.value)}/>@@ -393,7 +396,7 @@ function CustomCallFields({helperText={t("portal.policies.operations.fields.headers.helperText")}><textarea- className="portal-sources__connection-textarea"+ className={`portal-sources__connection-textarea ${privateContentClassName}`}rows={2}value={str("headers")}placeholder='{"X-Api-Version": "2"}'@@ -409,7 +412,7 @@ function CustomCallFields({)}><textarea- className="portal-sources__connection-textarea"+ className={`portal-sources__connection-textarea ${privateContentClassName}`}rows={4}value={str("bodyTemplate")}placeholder='{"file": "{{document.base64}}"}'diff --git a/frontend/src/processor/proprietary/components/policies/PolicySetupInput.tsx b/frontend/src/processor/proprietary/components/policies/PolicySetupInput.tsxindex 9d3572611c..cf7bc5977e 100644--- a/frontend/src/processor/proprietary/components/policies/PolicySetupInput.tsx+++ b/frontend/src/processor/proprietary/components/policies/PolicySetupInput.tsx@@ -20,6 +20,7 @@ import {EDITOR_SOURCE_TYPE,isReadableSource,} from "@processor/components/sources/sourceTypes";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props extends PolicySetupConfigProps {folderName?: string;@@ -105,7 +106,9 @@ export function PolicySetupInput({{t("portal.policies.wizard.locations.input", "Documents to process")}</h3>{folderName ? (- <p className="portal-policies__wizard-desc">+ <p+ className={`portal-policies__wizard-desc ${privateContentClassName}`}+ >{t("portal.policies.wizard.locations.folder","Input: {{name}}. Originals are retained when delivering to a vector database.",diff --git a/frontend/src/processor/proprietary/components/policies/PolicySetupOutput.tsx b/frontend/src/processor/proprietary/components/policies/PolicySetupOutput.tsxindex 60832cf84c..60dc894647 100644--- a/frontend/src/processor/proprietary/components/policies/PolicySetupOutput.tsx+++ b/frontend/src/processor/proprietary/components/policies/PolicySetupOutput.tsx@@ -12,6 +12,7 @@ import { fetchSources } from "@processor/api/sources";import { errorMessage } from "@processor/api/http";import { qk } from "@processor/queries/keys";import { usePolicySetupIngestion } from "@processor/components/policies/usePolicySetupIngestion";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Props extends PolicySetupConfigProps {folderName?: string;@@ -90,7 +91,12 @@ export function PolicySetupOutput({"Processed files are saved in this folder. Corpus exports keep the original PDF.",)}>- <Input inputSize="sm" value={folderName} readOnly />+ <Input+ inputSize="sm"+ value={folderName}+ className={privateContentClassName}+ readOnly+ /></FormField>) : (<>diff --git a/frontend/src/processor/proprietary/components/procurement/ProcurementAgreement.tsx b/frontend/src/processor/proprietary/components/procurement/ProcurementAgreement.tsxindex 1fa1b2295a..7ccb532e84 100644--- a/frontend/src/processor/proprietary/components/procurement/ProcurementAgreement.tsx+++ b/frontend/src/processor/proprietary/components/procurement/ProcurementAgreement.tsx@@ -14,6 +14,7 @@ import { StepModalHeader } from "@processor/components/shared/StepModalHeader";import { useAsync } from "@processor/hooks/useAsync";import "@processor/theme/surface.css";import "@processor/views/Procurement.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** The agreement (security) step: the buyer reviews the full Stirling Enterprise Agreement — Master@@ -208,6 +209,7 @@ export function ProcurementAgreement({</span><inputvalue={legalName}+ className={privateContentClassName}placeholder={t("portal.procurement.agreement.legalNamePlaceholder",)}@@ -220,6 +222,7 @@ export function ProcurementAgreement({</span><inputvalue={signatory}+ className={privateContentClassName}placeholder={t("portal.procurement.agreement.signatoryPlaceholder",)}@@ -232,6 +235,7 @@ export function ProcurementAgreement({</span><inputvalue={title}+ className={privateContentClassName}placeholder={t("portal.procurement.agreement.signatoryTitlePlaceholder",)}diff --git a/frontend/src/processor/proprietary/components/procurement/ProcurementExtras.tsx b/frontend/src/processor/proprietary/components/procurement/ProcurementExtras.tsxindex d2178a70d8..aadcca2fa1 100644--- a/frontend/src/processor/proprietary/components/procurement/ProcurementExtras.tsx+++ b/frontend/src/processor/proprietary/components/procurement/ProcurementExtras.tsx@@ -16,6 +16,7 @@ import { FlowModal } from "@processor/components/shared/FlowModal";import { useAsync } from "@processor/hooks/useAsync";import { openApiUrl } from "@processor/api/externalUrl";import "@processor/views/Procurement.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** Small centred dialogs that hang off the deal-status hero's quick actions — the licence key,@@ -516,6 +517,7 @@ export function TrialSetupModal({</span><inputvalue={contactName}+ className={privateContentClassName}placeholder={t("portal.procurement.setup.fullNamePlaceholder",)}@@ -528,6 +530,7 @@ export function TrialSetupModal({</span><inputvalue={businessName}+ className={privateContentClassName}placeholder={t("portal.procurement.setup.businessNamePlaceholder",)}@@ -542,6 +545,7 @@ export function TrialSetupModal({<inputtype="email"value={contactEmail}+ className={privateContentClassName}placeholder={t("portal.procurement.setup.workEmailPlaceholder")}onChange={(e) => setContactEmail(e.target.value)}/>@@ -552,6 +556,7 @@ export function TrialSetupModal({</span><inputvalue={inviteEmails}+ className={privateContentClassName}placeholder={t("portal.procurement.setup.invitesPlaceholder")}onChange={(e) => setInviteEmails(e.target.value)}/>diff --git a/frontend/src/processor/proprietary/components/sources/ConnectionForm.tsx b/frontend/src/processor/proprietary/components/sources/ConnectionForm.tsxindex cddf3ec5af..9f013655ea 100644--- a/frontend/src/processor/proprietary/components/sources/ConnectionForm.tsx+++ b/frontend/src/processor/proprietary/components/sources/ConnectionForm.tsx@@ -6,6 +6,7 @@ import {type CreatableConnectionType,} from "@processor/components/sources/connectionTypes";import "@processor/components/sources/connections.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";/*** Renders whatever fields a connection type declares, rather than knowing any vendor's shape.@@ -58,6 +59,7 @@ export function ConnectionForm({><Inputvalue={values.name ?? ""}+ className={privateContentClassName}placeholder={t("portal.connections.fields.namePlaceholder")}onChange={(e) => set("name", e.target.value)}/>@@ -106,7 +108,7 @@ function ConnectionField({/>) : field.control === "textarea" || field.control === "hostList" ? (<textarea- className="portal-sources__connection-textarea"+ className={`portal-sources__connection-textarea ${privateContentClassName}`}rows={field.control === "hostList" ? 2 : 5}value={value}placeholder={@@ -118,6 +120,7 @@ function ConnectionField({<Inputtype={field.control === "password" ? "password" : undefined}value={value}+ className={privateContentClassName}placeholder={field.placeholderKey ? t(field.placeholderKey) : undefined}diff --git a/frontend/src/processor/proprietary/components/sources/SourceModal.tsx b/frontend/src/processor/proprietary/components/sources/SourceModal.tsxindex c8f77c6db2..fa323cab40 100644--- a/frontend/src/processor/proprietary/components/sources/SourceModal.tsx+++ b/frontend/src/processor/proprietary/components/sources/SourceModal.tsx@@ -45,6 +45,7 @@ import {} from "@processor/components/sources/connectionTypes";import { createIntegration } from "@processor/api/integrations";import "@processor/components/sources/SourceModal.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";function webhookUrl(webhookId: string): string {return `${window.location.origin}/api/v1/webhooks/${webhookId}`;@@ -505,6 +506,7 @@ export function SourceModal({<Inputtype={field.control === "password" ? "password" : undefined}value={options[field.key] ?? ""}+ className={privateContentClassName}placeholder={field.placeholderKey ? t(field.placeholderKey) : undefined}onChange={(e) => setOption(field.key, e.target.value)}/>@@ -675,6 +677,7 @@ export function SourceModal({<div className="portal-source-modal__copy-row"><Inputvalue={webhookUrl(editingWebhookId)}+ className={privateContentClassName}readOnlyonFocus={(e) => e.currentTarget.select()}/>@@ -744,6 +747,7 @@ export function SourceModal({<div className="portal-source-modal__copy-row"><Inputvalue={webhookUrl(reveal.webhookId)}+ className={privateContentClassName}readOnlyonFocus={(e) => e.currentTarget.select()}/>@@ -763,6 +767,7 @@ export function SourceModal({<div className="portal-source-modal__copy-row"><Inputvalue={reveal.secret}+ className={privateContentClassName}readOnlyonFocus={(e) => e.currentTarget.select()}/>diff --git a/frontend/src/processor/proprietary/components/users/ConfirmModal.tsx b/frontend/src/processor/proprietary/components/users/ConfirmModal.tsxindex 0323d38317..80cbe08aca 100644--- a/frontend/src/processor/proprietary/components/users/ConfirmModal.tsx+++ b/frontend/src/processor/proprietary/components/users/ConfirmModal.tsx@@ -1,6 +1,7 @@import { useTranslation } from "react-i18next";import { Button, Modal } from "@editor/ui";import "@processor/views/Users.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ConfirmModalProps {open: boolean;@@ -53,7 +54,10 @@ export function ConfirmModal({</div>}>- <p className="portal-users__confirm-body">{body}</p>+ {/* Every body here names a member, an invitee or a team. */}+ <p className={`portal-users__confirm-body ${privateContentClassName}`}>+ {body}+ </p></Modal>);}diff --git a/frontend/src/processor/proprietary/components/users/InviteMemberModal.tsx b/frontend/src/processor/proprietary/components/users/InviteMemberModal.tsxindex 0bf97dca55..1e56f151fc 100644--- a/frontend/src/processor/proprietary/components/users/InviteMemberModal.tsx+++ b/frontend/src/processor/proprietary/components/users/InviteMemberModal.tsx@@ -13,6 +13,7 @@ import { errorMessage } from "@processor/api/http";import type { Team } from "@processor/api/teams";import { useTier } from "@processor/contexts/TierContext";import "@processor/views/Users.css";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface InviteMemberModalProps {open: boolean;@@ -385,6 +386,7 @@ export function InviteMemberModal({)}value={email}invalid={!!emailError}+ className={privateContentClassName}onChange={(e) => setEmail(e.target.value)}onBlur={() => touch("email")}/>@@ -400,6 +402,7 @@ export function InviteMemberModal({placeholder={t("users.invite.usernamePlaceholder", "jsmith")}value={username}invalid={!!usernameError}+ className={privateContentClassName}onChange={(e) => setUsername(e.target.value)}onBlur={() => touch("username")}/>diff --git a/frontend/src/processor/proprietary/components/users/MoveToTeamModal.tsx b/frontend/src/processor/proprietary/components/users/MoveToTeamModal.tsxindex 048d887d60..a6406df392 100644--- a/frontend/src/processor/proprietary/components/users/MoveToTeamModal.tsx+++ b/frontend/src/processor/proprietary/components/users/MoveToTeamModal.tsx@@ -5,6 +5,7 @@ import { moveMemberToTeam, type Member } from "@processor/api/users";import type { Team } from "@processor/api/teams";import { errorMessage } from "@processor/api/http";import "@processor/views/Users.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";interface MoveToTeamModalProps {open: boolean;@@ -59,7 +60,7 @@ export function MoveToTeamModal({onClose={onClose}width="sm"title={t("users.moveTeam.title", "Move to team")}- subtitle={member?.name}+ subtitle={member && <PrivateContent>{member.name}</PrivateContent>}footer={<div className="portal-users__modal-footer"><Button variant="tertiary" size="sm" onClick={onClose}>diff --git a/frontend/src/processor/proprietary/components/users/PendingInvitations.tsx b/frontend/src/processor/proprietary/components/users/PendingInvitations.tsxindex 610c117747..76a691b0a5 100644--- a/frontend/src/processor/proprietary/components/users/PendingInvitations.tsx+++ b/frontend/src/processor/proprietary/components/users/PendingInvitations.tsx@@ -39,6 +39,7 @@ export function PendingInvitations({column.entity({key: "invitee",header: t("users.invites.columns.invitee", "Invitee"),+ privateContent: true,icon: (inv) => <Avatar name={inv.email} size="sm" tone="neutral" />,primary: (inv) => inv.email,note: (inv) =>diff --git a/frontend/src/processor/proprietary/components/users/ResetPasswordModal.tsx b/frontend/src/processor/proprietary/components/users/ResetPasswordModal.tsxindex 26f2800e74..2a3f8d6755 100644--- a/frontend/src/processor/proprietary/components/users/ResetPasswordModal.tsx+++ b/frontend/src/processor/proprietary/components/users/ResetPasswordModal.tsx@@ -4,6 +4,8 @@ import { Button, Checkbox, FormField, Input, Modal } from "@editor/ui";import { resetMemberPassword, type Member } from "@processor/api/users";import { errorMessage } from "@processor/api/http";import "@processor/views/Users.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface ResetPasswordModalProps {open: boolean;@@ -108,7 +110,7 @@ export function ResetPasswordModal({onClose={onClose}width="sm"title={t("users.resetPw.title", "Reset password")}- subtitle={member?.name}+ subtitle={member && <PrivateContent>{member.name}</PrivateContent>}footer={<div className="portal-users__modal-footer"><Button variant="tertiary" size="sm" onClick={onClose}>@@ -144,6 +146,7 @@ export function ResetPasswordModal({input, so name the input directly. */}<Inputvalue={generated}+ className={privateContentClassName}readOnlyaria-label={t("users.resetPw.newPassword", "New password")}/>diff --git a/frontend/src/processor/proprietary/components/users/UsersDirectory.tsx b/frontend/src/processor/proprietary/components/users/UsersDirectory.tsxindex e48e89a6b9..f5e54a60c0 100644--- a/frontend/src/processor/proprietary/components/users/UsersDirectory.tsx+++ b/frontend/src/processor/proprietary/components/users/UsersDirectory.tsx@@ -16,6 +16,7 @@ import {Tabs,} from "@editor/ui";import { Icon } from "@editor/ui/Icon";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";import { type Member, type RoleId } from "@processor/api/users";import type { Team } from "@processor/api/teams";import type { UsersCapabilities } from "@processor/api/usersCapabilities";@@ -286,6 +287,7 @@ export function UsersDirectory({column.entity({key: "person",header: t("users.columns.person", "Person"),+ privateContent: true,icon: (m) => (<Avatarname={m.name}@@ -307,6 +309,7 @@ export function UsersDirectory({column.muted({key: "email",header: t("users.columns.email", "Email"),+ privateContent: true,get: (m) => (m.email !== m.name ? m.email : undefined),}),);@@ -595,6 +598,7 @@ export function UsersDirectory({{searchOpen ? (<Inputref={searchRef}+ className={privateContentClassName}inputSize="sm"value={query}placeholder={t("users.filters.search", "Search people")}diff --git a/frontend/src/processor/proprietary/search/entitySearch.tsx b/frontend/src/processor/proprietary/search/entitySearch.tsxindex 98ac5d1c40..accb572cdd 100644--- a/frontend/src/processor/proprietary/search/entitySearch.tsx+++ b/frontend/src/processor/proprietary/search/entitySearch.tsx@@ -249,6 +249,7 @@ export function rankPortalPipelineResults(group: "portal-pipelines",title: item.name,subtitle: item.trigger,+ privateContent: true,icon: <Icon name="workflow" size={18} />,score,onSelect: () => openPipeline(item.id),@@ -290,6 +291,7 @@ export function buildProcessorEntityGroups(group: "portal-users",title: item.name,subtitle: item.email,+ privateContent: true,icon: <Icon name="users" size={18} />,score,onSelect: () =>@@ -360,6 +362,7 @@ export function buildProcessorEntityGroups(group: "portal-sources",title: item.name,subtitle: item.type,+ privateContent: true,icon: <Icon name="plug" size={18} />,score,onSelect: () =>diff --git a/frontend/src/processor/proprietary/views/Integrations.tsx b/frontend/src/processor/proprietary/views/Integrations.tsxindex 0354b448a9..927c923c1f 100644--- a/frontend/src/processor/proprietary/views/Integrations.tsx+++ b/frontend/src/processor/proprietary/views/Integrations.tsx@@ -255,6 +255,7 @@ export function Integrations() {icon: (r) => <BrandMark id={r.brandId} size={22} />,primary: (r) => r.title,note: (r) => r.subtitle || undefined,+ privateNote: (r) => r.kind === "instance",}),column.text({key: "worksWith",diff --git a/frontend/src/processor/proprietary/views/PipelineBuilder.tsx b/frontend/src/processor/proprietary/views/PipelineBuilder.tsxindex a90a0145dc..19aa8f3780 100644--- a/frontend/src/processor/proprietary/views/PipelineBuilder.tsx+++ b/frontend/src/processor/proprietary/views/PipelineBuilder.tsx@@ -126,6 +126,7 @@ import {type WorkingInput,} from "@processor/components/pipelines/PipelineInputTrigger";import "@processor/views/PipelineBuilder.css";+import { PrivateContent } from "@editor/components/shared/PrivateContent";const TERMINAL_STATUSES = new Set(["COMPLETED", "FAILED", "CANCELLED"]);const POLL_INTERVAL_MS = 1500;@@ -1460,7 +1461,10 @@ export function PipelineBuilder() {{error && <Banner tone="danger" description={error} />}{runResult && (- <Banner tone={runResult.tone} description={runResult.text} />+ <Banner+ tone={runResult.tone}+ description={<PrivateContent>{runResult.text}</PrivateContent>}+ />)}{hasUnconfiguredSteps && (<Bannerdiff --git a/frontend/src/processor/proprietary/views/Users.tsx b/frontend/src/processor/proprietary/views/Users.tsxindex 0a2fc25d53..4fb0acb9ca 100644--- a/frontend/src/processor/proprietary/views/Users.tsx+++ b/frontend/src/processor/proprietary/views/Users.tsx@@ -41,6 +41,7 @@ import {} from "@editor/components/shared/ownership/OwnershipTransferModal";import { ownershipAdapter, pendingOwnership } from "@processor/api/ownership";import { useUI } from "@processor/contexts/UIContext";+import { privateContentClassName } from "@editor/components/shared/privateContentClassName";interface Confirm {title: string;@@ -419,7 +420,7 @@ export function Users() {{pendingTransfer && viewer?.orgOwner && (<div role="status">- <p>+ <p className={privateContentClassName}>{t("ownership.pending","An ownership transfer to {{name}} is pending.",