Skip to content

Commit 5d16b6b

Browse files
committed
feat(replay): Add back deprecated maskInputOptions
This was unintentionally removed in #6645 - it is still deprecated and will be removed at a later date.
1 parent 15ec85b commit 5d16b6b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

packages/replay/src/integration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class Replay implements Integration {
5555
errorSampleRate,
5656
maskAllText,
5757
maskAllInputs = true,
58+
maskInputOptions,
5859
blockAllMedia = true,
5960

6061
mask = [],
@@ -77,6 +78,7 @@ export class Replay implements Integration {
7778
}: ReplayConfiguration = {}) {
7879
this._recordingOptions = {
7980
maskAllInputs,
81+
maskInputOptions,
8082
maskTextFn: maskFn,
8183
maskInputFn: maskFn,
8284

packages/replay/src/types.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ export interface DeprecatedPrivacyOptions {
158158
* @deprecated Use `block` which accepts an array of CSS selectors
159159
*/
160160
blockClass?: RecordingOptions['blockClass'];
161+
/**
162+
* @deprecated Use `ignore` which accepts an array of CSS selectors
163+
*/
164+
ignoreClass?: RecordingOptions['ignoreClass'];
165+
/**
166+
* @deprecated Use `mask` which accepts an array of CSS selectors
167+
*/
168+
maskInputOptions: RecordingOptions['maskInputOptions'];
161169
/**
162170
* @deprecated Use `mask` which accepts an array of CSS selectors
163171
*/
@@ -166,10 +174,6 @@ export interface DeprecatedPrivacyOptions {
166174
* @deprecated Use `mask` which accepts an array of CSS selectors
167175
*/
168176
maskTextSelector?: RecordingOptions['maskTextSelector'];
169-
/**
170-
* @deprecated Use `ignore` which accepts an array of CSS selectors
171-
*/
172-
ignoreClass?: RecordingOptions['ignoreClass'];
173177
}
174178

175179
export interface ReplayConfiguration

packages/replay/src/util/getPrivacyOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DeprecatedPrivacyOptions, ReplayIntegrationPrivacyOptions } from '../types';
22

3-
type GetPrivacyOptions = Required<Omit<ReplayIntegrationPrivacyOptions, 'maskFn'>> & DeprecatedPrivacyOptions;
3+
type GetPrivacyOptions = Required<Omit<ReplayIntegrationPrivacyOptions, 'maskFn'>> & Omit<DeprecatedPrivacyOptions, 'maskInputOptions'>;
44
interface GetPrivacyReturn {
55
maskTextSelector: string;
66
unmaskTextSelector: string;

0 commit comments

Comments
 (0)