-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): ✨ Improve variables in executed codes
- Loading branch information
1 parent
82f7bf0
commit db10f1e
Showing
11 changed files
with
155 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
apps/builder/components/shared/buttons/VariablesButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { | ||
Popover, | ||
PopoverTrigger, | ||
Flex, | ||
Tooltip, | ||
IconButton, | ||
PopoverContent, | ||
IconButtonProps, | ||
} from '@chakra-ui/react' | ||
import { UserIcon } from 'assets/icons' | ||
import { Variable } from 'models' | ||
import React from 'react' | ||
import { VariableSearchInput } from '../VariableSearchInput' | ||
|
||
type Props = { | ||
onSelectVariable: ( | ||
variable: Pick<Variable, 'name' | 'id'> | undefined | ||
) => void | ||
} & Omit<IconButtonProps, 'aria-label'> | ||
|
||
export const VariablesButton = ({ onSelectVariable, ...props }: Props) => { | ||
return ( | ||
<Popover matchWidth isLazy> | ||
<PopoverTrigger> | ||
<Flex> | ||
<Tooltip label="Insert a variable"> | ||
<IconButton | ||
aria-label={'Insert a variable'} | ||
icon={<UserIcon />} | ||
pos="relative" | ||
{...props} | ||
/> | ||
</Tooltip> | ||
</Flex> | ||
</PopoverTrigger> | ||
<PopoverContent w="full"> | ||
<VariableSearchInput | ||
onSelectVariable={onSelectVariable} | ||
placeholder="Search for a variable" | ||
shadow="lg" | ||
isDefaultOpen | ||
/> | ||
</PopoverContent> | ||
</Popover> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db10f1e
There was a problem hiding this comment.
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
bot.joof.it
bot.tvbeat.it
app.yvon.earth
talk.gocare.io
frankmeuche.de
gollum.riku.ai
bergamo.store
chat.hayuri.id
yoda.riku.ai
danyservice.it
fitness.riku.ai
bot.jesopizz.it
bot.danyservice.it
bot.rihabilita.it
bot.contakit.com
bot.dsignagency.com
viewer.typebot.io
demo.wemakebots.xyz
zap.fundviser.in
chatbot.matthesv.de
88584434.therpm.club
92109660.therpm.club
bot.barrettamario.it
hello.advergreen.com
bot.coachayongzul.com
bot.digitalpointer.id
bot.outstandbrand.com
bot.eikju.photography
bot.robertohairlab.it
criar.somaperuzzo.com
bot.pratikmandalia.com
form.bridesquadapp.com
michaeljackson.riku.ai
87656003.actualizar.xyz
bot.ilmuseoaiborghi.it
91375310.actualizar.xyz
88152257.actualizar.xyz
arrivalx2.wpwakanda.com
bot.hotelplayarimini.it
link.venturasuceder.com
chat.thehomebuyersusa.com
bot.amicidisanfaustino.it
typebot-viewer.vercel.app
invite.bridesquadapp.com
forms.hiabhaykulkarni.com
bot.adventureconsulting.hu
casestudyemb.wpwakanda.com
chat.atlasoutfittersk9.com
homepageonly.wpwakanda.com
liveconvert.kandalearn.com
tarian.theiofoundation.org
bot.seidinembroseanchetu.it
liveconvert2.kandalearn.com
bot.seidibergamoseanchetu.it
bot.pinpointinteractive.com
mainmenu1one.wpwakanda.com
viewer-v2-typebot-io.vercel.app
forms.escoladeautomacao.com.br
bot.polychromes-project.com
bot.studiotecnicoimmobiliaremerelli.it
viewer-v2-git-main-typebot-io.vercel.app
db10f1e
There was a problem hiding this comment.
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-typebot-io.vercel.app
www.get-typebot.com
typebot.io
landing-page-v2-git-main-typebot-io.vercel.app
get-typebot.com
www.typebot.io
db10f1e
There was a problem hiding this comment.
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
builder-v2-typebot-io.vercel.app
app.typebot.io