Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(framework): Add disableOutputSanitization for Framework step options #700

Merged
9 changes: 9 additions & 0 deletions sdks/framework/typescript/steps/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ title: "Step Interface"
skip: async (controls) => true,
});
```
```typescript Disable Output Sanitization
await step.email('stepId', resolver, {
disableOutputSanitization: true,
});
```
```typescript Provider Overrides
await step.email('stepId', resolver, {
providers: {
Expand Down Expand Up @@ -100,6 +105,10 @@ This is an optional configuration object that defines: [Controls Schema](/framew
This object used to access and override the underlying deliver providers SDKs. This is useful when you want to customize the content of the notification with properties that are unique to the provider.
</ResponseField>

<ResponseField name="disableOutputSanitization" type="boolean" default="false">
A flag to disable output sanitization for the step. This is useful when you want to return unsescaped content to the provider or the `<Inbox/>` component.
rifont marked this conversation as resolved.
Show resolved Hide resolved
rifont marked this conversation as resolved.
Show resolved Hide resolved
</ResponseField>

### Providers Overrides Object

This object used to access and override the underlying deliver providers SDKs. This is useful when you want to customize the content of the notification with properties that are unique to the provider.
Expand Down