What happened to customCSSUrl? I just

What happened to customCSSUrl? I just updated the SDK from 1.23 to 1.32 and I get a Typescript error that this field is no longer part of customizations.style. This is a breaking change.
5 Replies
shikharTS
shikharTS4mo ago
Hi, we did have a deprecation notice out for this : https://developers.thoughtspot.com/docs/deprecated-features#_deprecation_of_customcssurl_parameter. cc @utsav.kapoor
Deprecation announcements
This article lists features deprecated and no longer supported in ThoughtSpot Embedded
billsaysthis
billsaysthisOP4mo ago
We are already doing what that notice says and still getting the error:
export const tsInitializer = (userEmail: string, tsAuth: () => Promise<string>) => {
const css = `${window.location.origin}/app/static/thoughtspot/thoughtspot-ao-styles.css`

return init({
thoughtSpotHost,
authType: AuthType.TrustedAuthTokenCookieless,
username: userEmail,
autoLogin: true,
getAuthToken: () => tsAuth(),
customizations: {
style: {
customCSSUrl: css,
},
},
})
}
export const tsInitializer = (userEmail: string, tsAuth: () => Promise<string>) => {
const css = `${window.location.origin}/app/static/thoughtspot/thoughtspot-ao-styles.css`

return init({
thoughtSpotHost,
authType: AuthType.TrustedAuthTokenCookieless,
username: userEmail,
autoLogin: true,
getAuthToken: () => tsAuth(),
customizations: {
style: {
customCSSUrl: css,
},
},
})
}
Also, why would you remove/break something but not change the major version?
utsav.kapoor
utsav.kapoor4mo ago
@billsaysthis - Apologies for this. We will release a patch tomorrow to fix this. Looks like customCSSUrlwas removed by mistake from CSS Customization
billsaysthis
billsaysthisOP4mo ago
Excellent
priyanshu.kumar
priyanshu.kumar4mo ago
Hello @billsaysthis , The issue has been resolved in the latest patch. Kindly update to version 1.32.9 to apply the fix. cc: @utsav.kapoor

Did you find this page helpful?