History

Update posthog

Rhys Sullivan committed 6 months ago

Commit f29480d1 parent dfda4fb2 files · +8 −1Browse files

Unified · Split

2 files
  1. apps/cloud/src/routes/__root.tsx +6 −0
  2. packages/react/src/plugins/secret-form.tsx +2 −1
apps/cloud/src/routes/__root.tsx+6−0
@@ -49,6 +49,12 @@ if (typeof window !== "undefined" && import.meta.env.VITE_PUBLIC_POSTHOG_KEY) { · 48 unmodified lines
4949 ui_host: "https://us.posthog.com",
5050 defaults: "2025-05-24",
5151 person_profiles: "identified_only",
52+ disable_session_recording: false,
53+ session_recording: {
54+ maskAllInputs: true,
55+ maskTextSelector: "[data-ph-mask]",
56+ blockSelector: "[data-ph-block]",
57+ },
5258 });
5359 }
5460
packages/react/src/plugins/secret-form.tsx+2−1
@@ -226,7 +226,7 @@ function ValueField(props: { revealable?: boolean; placeholder?: string; autoFoc · 225 unmodified lines
226226 return (
227227 <Field>
228228 <FieldLabel htmlFor={inputId}>Value</FieldLabel>
229− <div className="relative">
229+ <div className="relative" data-ph-block>
230230 <Input
231231 id={inputId}
232232 type={secretValueInputType({ revealable, revealed })}
@@ -239,6 +239,7 @@ function ValueField(props: { revealable?: boolean; placeholder?: string; autoFoc · 6 unmodified lines
239239 style={
240240 revealable && !revealed ? ({ WebkitTextSecurity: "disc" } as CSSProperties) : undefined
241241 }
242+ data-ph-block
242243 />
243244 {revealable && (
244245 <Button