🐛 (theme) Fix containers disabled bg should be transparent
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/js",
|
"name": "@typebot.io/js",
|
||||||
"version": "0.2.66",
|
"version": "0.2.67",
|
||||||
"description": "Javascript library to display typebots on your website",
|
"description": "Javascript library to display typebots on your website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -325,7 +325,9 @@ const setHostBubbles = (
|
|||||||
|
|
||||||
documentStyle.setProperty(
|
documentStyle.setProperty(
|
||||||
cssVariableNames.chat.hostBubbles.opacity,
|
cssVariableNames.chat.hostBubbles.opacity,
|
||||||
isDefined(hostBubbles?.opacity)
|
hostBubbles?.backgroundColor === 'transparent'
|
||||||
|
? '0'
|
||||||
|
: isDefined(hostBubbles?.opacity)
|
||||||
? hostBubbles.opacity.toString()
|
? hostBubbles.opacity.toString()
|
||||||
: defaultOpacity.toString()
|
: defaultOpacity.toString()
|
||||||
)
|
)
|
||||||
@ -397,7 +399,9 @@ const setGuestBubbles = (
|
|||||||
|
|
||||||
documentStyle.setProperty(
|
documentStyle.setProperty(
|
||||||
cssVariableNames.chat.guestBubbles.opacity,
|
cssVariableNames.chat.guestBubbles.opacity,
|
||||||
isDefined(guestBubbles?.opacity)
|
guestBubbles?.backgroundColor === 'transparent'
|
||||||
|
? '0'
|
||||||
|
: isDefined(guestBubbles?.opacity)
|
||||||
? guestBubbles.opacity.toString()
|
? guestBubbles.opacity.toString()
|
||||||
: defaultOpacity.toString()
|
: defaultOpacity.toString()
|
||||||
)
|
)
|
||||||
@ -471,7 +475,9 @@ const setButtons = (
|
|||||||
|
|
||||||
documentStyle.setProperty(
|
documentStyle.setProperty(
|
||||||
cssVariableNames.chat.buttons.opacity,
|
cssVariableNames.chat.buttons.opacity,
|
||||||
isDefined(buttons?.opacity)
|
buttons?.backgroundColor === 'transparent'
|
||||||
|
? '0'
|
||||||
|
: isDefined(buttons?.opacity)
|
||||||
? buttons.opacity.toString()
|
? buttons.opacity.toString()
|
||||||
: defaultOpacity.toString()
|
: defaultOpacity.toString()
|
||||||
)
|
)
|
||||||
@ -530,7 +536,9 @@ const setInputs = (
|
|||||||
|
|
||||||
documentStyle.setProperty(
|
documentStyle.setProperty(
|
||||||
cssVariableNames.chat.inputs.opacity,
|
cssVariableNames.chat.inputs.opacity,
|
||||||
isDefined(inputs?.opacity)
|
inputs?.backgroundColor === 'transparent'
|
||||||
|
? '0'
|
||||||
|
: isDefined(inputs?.opacity)
|
||||||
? inputs.opacity.toString()
|
? inputs.opacity.toString()
|
||||||
: defaultOpacity.toString()
|
: defaultOpacity.toString()
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/nextjs",
|
"name": "@typebot.io/nextjs",
|
||||||
"version": "0.2.66",
|
"version": "0.2.67",
|
||||||
"description": "Convenient library to display typebots on your Next.js website",
|
"description": "Convenient library to display typebots on your Next.js website",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/react",
|
"name": "@typebot.io/react",
|
||||||
"version": "0.2.66",
|
"version": "0.2.67",
|
||||||
"description": "Convenient library to display typebots on your React app",
|
"description": "Convenient library to display typebots on your React app",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user