@marketrix.ai/widget 3.8.346 → 3.8.347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/widget.mjs +16 -16
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,6 +170,17 @@ Returns the active configuration, or `null` if the widget isn't initialized.
|
|
|
170
170
|
|
|
171
171
|
Widget settings are managed in the dashboard. `widget_appearance: 'hidden'` keeps the widget initialized but suppresses its visible UI on the host page; previews remain visible. `widget_greeting_toast` controls the welcome toast, and `widget_recording` enables rrweb session recording. Recording is off by default.
|
|
172
172
|
|
|
173
|
+
#### Session recording privacy
|
|
174
|
+
|
|
175
|
+
When recording is enabled, **every input value is masked** — recordings capture that a field was typed into, never what was typed. To exclude more of your page, add either class to any element:
|
|
176
|
+
|
|
177
|
+
| Class | Effect |
|
|
178
|
+
| ------------------------ | ----------------------------------------------------------- |
|
|
179
|
+
| `mtx-mask` / `rr-mask` | Text content inside the element is masked |
|
|
180
|
+
| `mtx-block` / `rr-block` | The element is replaced by a placeholder and never recorded |
|
|
181
|
+
|
|
182
|
+
Both the `mtx-` and rrweb's native `rr-` prefixes are honoured, so existing `rr-block` / `rr-mask` markup keeps working.
|
|
183
|
+
|
|
173
184
|
### `MarketrixWidget` — React component (preview)
|
|
174
185
|
|
|
175
186
|
For previewing appearance inside a React app (e.g. a settings/configuration screen). Renders into its own Shadow DOM and makes no network calls.
|