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
49 ui_host: "https://us.posthog.com",49 ui_host: "https://us.posthog.com",
50 defaults: "2025-05-24",50 defaults: "2025-05-24",
51 person_profiles: "identified_only",51 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 },
52 });58 });
53}59}
54 60
packages/react/src/plugins/secret-form.tsx+2−1
@@ -226,7 +226,7 @@ function ValueField(props: { revealable?: boolean; placeholder?: string; autoFoc · 225 unmodified lines
226 return (226 return (
227 <Field>227 <Field>
228 <FieldLabel htmlFor={inputId}>Value</FieldLabel>228 <FieldLabel htmlFor={inputId}>Value</FieldLabel>
229 <div className="relative">229 <div className="relative" data-ph-block>
230 <Input230 <Input
231 id={inputId}231 id={inputId}
232 type={secretValueInputType({ revealable, revealed })}232 type={secretValueInputType({ revealable, revealed })}
@@ -239,6 +239,7 @@ function ValueField(props: { revealable?: boolean; placeholder?: string; autoFoc · 6 unmodified lines
239 style={239 style={
240 revealable && !revealed ? ({ WebkitTextSecurity: "disc" } as CSSProperties) : undefined240 revealable && !revealed ? ({ WebkitTextSecurity: "disc" } as CSSProperties) : undefined
241 }241 }
242 data-ph-block
242 />243 />
243 {revealable && (244 {revealable && (
244 <Button245 <Button