Skip to content

Commit

Permalink
🚑 Add back runtimeOptions and fix popup width option
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 22, 2023
1 parent 1e5fa5a commit 867e68c
Show file tree
Hide file tree
Showing 8 changed files with 300 additions and 196 deletions.
477 changes: 285 additions & 192 deletions apps/docs/openapi/viewer.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/embeds/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/js",
"version": "0.2.30",
"version": "0.2.31",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/embeds/js/src/features/popup/components/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ export const Popup = (props: PopupProps) => {
<div class="flex min-h-full items-center justify-center p-4 text-center sm:p-0">
<div
class={
'relative h-[80vh] transform overflow-hidden rounded-lg text-left transition-all sm:my-8 sm:w-full sm:max-w-lg' +
'relative h-[80vh] transform overflow-hidden rounded-lg text-left transition-all sm:my-8 w-full max-w-lg' +
(props.theme?.backgroundColor ? ' shadow-xl' : '')
}
style={{
'background-color':
props.theme?.backgroundColor ?? 'transparent',
'max-width': props.theme?.width ?? '512px',
}}
on:pointerdown={stopPropagation}
>
Expand Down
1 change: 1 addition & 0 deletions packages/embeds/js/src/queries/startChatQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export async function startChatQuery({
isStreamEnabled: true,
prefilledVariables,
resultId,
isOnlyRegistering: false,
} satisfies Omit<StartChatInput, 'publicId'>,
timeout: false,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/nextjs",
"version": "0.2.30",
"version": "0.2.31",
"description": "Convenient library to display typebots on your Next.js website",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/embeds/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typebot.io/react",
"version": "0.2.30",
"version": "0.2.31",
"description": "Convenient library to display typebots on your React app",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions packages/embeds/react/src/stories/popup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const Default = () => {
typebot={leadGenerationTypebot}
apiHost="http://localhost:3001"
autoShowDelay={3000}
theme={{
width: '800px',
}}
isPreview
/>
</>
Expand Down
6 changes: 6 additions & 0 deletions packages/schemas/features/chat/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ const chatResponseBaseSchema = z.object({
pictureChoiceBlockSchemas.v5,
]),
])
.and(
z.object({
prefilledValue: z.string().optional(),
runtimeOptions: runtimeOptionsSchema.optional(),
})
)
.optional(),
clientSideActions: z
.array(clientSideActionSchema)
Expand Down

3 comments on commit 867e68c

@vercel
Copy link

@vercel vercel bot commented on 867e68c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

landing-page-v2 – ./apps/landing-page

landing-page-v2-git-main-typebot-io.vercel.app
home.typebot.io
landing-page-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 867e68c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 867e68c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

headsbet.info
implant35.com
majie.move.sg
payforbet.com
rabbit.cr8.ai
saquegov.site
shop.mexwa.my
signup.cr8.ai
start.taxt.co
thegymgame.it
theusm.com.br
turkey.cr8.ai
vhpage.cr8.ai
vitamyway.com
webwhats.chat
whatchat.site
www.wiccom.it
acessovip.shop
adsgrow.com.br
am.nigerias.io
an.nigerias.io
webwhatsapp.work
whatisappweb.com
wts.aarealtor.co
www.pantaflow.ai
zap.fundviser.in
acordo-serasa.com
acordocorreto.com
akses.sifucrm.com
analistamines.com
app.bouclidom.com
app.chatforms.net
appbotcontato.com
appmillion.online
averdadehoje.site
bot.cerograsa.com
bot.check-in.page
bot.hostnation.de
bot.phuonghub.com
bot.reviewamp.com
bot.reviewzer.com
bot.thegymgame.it
bot.uluhub.com.br
cares.urlabout.me
chat.ezbooking.ai
chat.gaswadern.de
chat.gniorder.com
chat.leadmagic.io
chat.onrentme.com
chat.rojie.online
chatdocidadao.com
chatwebonline.com
consultanutri.com
dividaquitada.com
ds-leadmagnet.com
encode.share5.net
fmm.wpwakanda.com
footballmeetup.ie
gentleman-shop.fr
hojemesmoo.online
island.wakanda.is
jetpixoficial.com
k1.kandabrand.com
kp.pedroknoll.com
lb.ticketfute.com
lotedeleilao.site
mariwelash.com.br
metodoelev.com.br
nait.aarealtor.co
nextlevelnico.com
viewer-v2-typebot-io.vercel.app
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com
www.typebot.io
get-typebot.com
www.get-typebot.com

Please sign in to comment.