From f975280956b2c107233c07f336ba28dcfbca8015 Mon Sep 17 00:00:00 2001 From: Thibaut Tiberghien Date: Wed, 7 Feb 2024 12:29:12 +0800 Subject: [PATCH] docs for white label --- docs/api-reference/space/space.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api-reference/space/space.md b/docs/api-reference/space/space.md index a2777af..394a819 100644 --- a/docs/api-reference/space/space.md +++ b/docs/api-reference/space/space.md @@ -18,6 +18,7 @@ const space = new smplr.Space({ clientToken: string, containerId: string, disableErrorReporting?: boolean, + whiteLabel?: boolean, }) => Space ``` @@ -25,6 +26,7 @@ const space = new smplr.Space({ - ⚠️ **BREAKING CHANGE** ⚠️ — `clientToken` is an API token that is used to authenticate client-side requests. It is safe to have it exposed in your client code. You can manage your organisation's tokens in the Smplrspace app, by heading to the Developers page from the main menu. Client tokens are being rolled out and currently not enforced, starting October 1st 2022, request with no token or an invalid token will be rejected. [More info](/guides/embedding#client-tokens). - `containerId` is the "id" of the html "div" container where smplr.js should render the viewer, something like "smplr-container" that can be found in your html. Only ids are supported, not classes. - `disableErrorReporting` - _optional_ - can be set to "true" to disable the automated reporting of errors to our 3rd party error tracking tool, [Sentry](https://sentry.io/). We have discovered that Sentry's instrumentation could make it seem as if all network requests originated from smplr.js. Unfortunately, there is nothing simple we can do on our side to avoid that. If this is an issue for you, you can disable Sentry altogether. The tradeoff is that we will not automatically detect errors hapenning in your integration, and you may need to be more proactive to report them for us to roll out fixes. +- `whiteLabel` - _optional_ - can be set to "true" to remove the "Powered by Smplrspace" attribution from the viewer. This is a paid add-on. You can check if it is enabled from the Organization settings page. [Get in touch](mailto:hello@smplrspace.com) to learn more. ## Interactive viewer session