You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update ContentLink documentation with stripStega details
Clarify that stripStega works with any data type (strings, objects, arrays, primitives) by converting to JSON, removing stega encodings with VERCEL_STEGA_REGEX, and parsing back. Add examples for different data types.
|`onNavigateTo`|`(path: string) => void`| - | Callback when [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews) requests navigation to a different page |
245
-
|`currentPath`|`string`| - | Current pathname to sync with [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews)|
246
-
|`enableClickToEdit`|`true \| { scrollToNearestTarget: true }`| - | Enable click-to-edit overlays on mount. Pass `true` or an object with options. If undefined, click-to-edit is disabled |
247
-
|`stripStega`|`boolean`| - | Whether to strip stega encoding from text nodes after stamping |
248
-
|`root`|`React.RefObject<HTMLElement>`| - | Ref to limit scanning to this root element instead of the entire document |
|`onNavigateTo`|`(path: string) => void`| - | Callback when [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews) requests navigation to a different page |
245
+
|`currentPath`|`string`| - | Current pathname to sync with [Web Previews plugin](https://www.datocms.com/marketplace/plugins/i/datocms-plugin-web-previews)|
246
+
|`enableClickToEdit`|`true \| { scrollToNearestTarget: true }`| - | Enable click-to-edit overlays on mount. Pass `true` or an object with options. If undefined, click-to-edit is disabled|
247
+
|`stripStega`|`boolean`| - | Whether to strip stega encoding from text nodes after stamping |
248
+
|`root`|`React.RefObject<HTMLElement>`| - | Ref to limit scanning to this root element instead of the entire document |
249
249
250
250
## Advanced usage: the `useContentLink` hook
251
251
@@ -524,7 +524,7 @@ if (decoded) {
524
524
525
525
### `stripStega`
526
526
527
-
Removes stega encoding from any data type (strings, objects, arrays, primitives) by converting to JSON, removing all stega-encoded segments using the global VERCEL_STEGA_REGEX, and parsing back to the original type:
527
+
Removes stega encoding from any data type (strings, objects, arrays, primitives):
0 commit comments