wix-design-systems-providers
TypeScript icon, indicating that this package has built-in type declarations

1.98.1 • Public • Published

wix-design-systems-masking-providers

A common providers library used within the wix-design-systems packages.

WixDesignSystemsMaskingProvider

This provider is a wrapper component that is used for masking components when recording users interactions. The classname attached to the components will act as a hook for third party services to detect where to mask.

Usage

First, you should connect context consumer to the components you would like to mask when provider is used:

import { WixDesignSystemsMaskingContext } from 'wix-design-systems-providers';

export const MyComponent = () => (
  <WixDesignSystemsMaskingContext.Consumer>
    {({ maskingClassNames }) => <p className={maskingClassNames} />}
  </WixDesignSystemsMaskingContext.Consumer>
);

Then, you can wrap the above component with WixDesignSystemsMaskingProvider which will enable the masking feature:

import { WixDesignSystemsMaskingProvider } from 'wix-design-systems-providers';

<WixDesignSystemsMaskingProvider>
  <MyComponent />
</WixDesignSystemsMaskingProvider>;

Readme

Keywords

none

Package Sidebar

Install

npm i wix-design-systems-providers

Weekly Downloads

35

Version

1.98.1

License

none

Unpacked Size

89.2 kB

Total Files

45

Last publish

Collaborators

  • arielh
  • falconci
  • yurynix
  • itai.benda
  • wix-ci
  • wix-ambassador
  • shahata
  • netanelgilad
  • wix-ci-publisher
  • wix-bi-publisher