-
-
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.
🚀 Init preview and typebot cotext in editor
- Loading branch information
1 parent
a54e42f
commit b7cdc0d
Showing
87 changed files
with
4,431 additions
and
735 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ workspace.code-workspace | |
.DS_Store | ||
|
||
.turbo | ||
apps/builder/tsconfig.tsbuildinfo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.slate-bold { | ||
font-weight: bold; | ||
} | ||
|
||
.slate-italic { | ||
font-style: oblique; | ||
} | ||
|
||
.slate-underline { | ||
text-decoration: underline; | ||
} | ||
|
||
.slate-ToolbarButton-active { | ||
color: blue !important; | ||
} | ||
.slate-ToolbarButton-active > svg { | ||
stroke-width: 2px; | ||
} | ||
|
||
.slate-ToolbarButton { | ||
color: gray; | ||
} | ||
|
||
.slate-a { | ||
color: blue !important; | ||
text-decoration: underline; | ||
} | ||
|
||
.slate-html-container > div { | ||
min-height: 24px; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { StepTypesList as default } from './StepTypesList' | ||
export { StepTypesList } from './StepTypesList' |
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
18 changes: 18 additions & 0 deletions
18
apps/builder/components/board/graph/BlockNode/BlockNodeContextMenu.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,18 @@ | ||
import { MenuList, MenuItem } from '@chakra-ui/react' | ||
import { TrashIcon } from 'assets/icons' | ||
import { useTypebot } from 'contexts/TypebotContext' | ||
|
||
export const BlockNodeContextMenu = ({ blockId }: { blockId: string }) => { | ||
const { removeBlock } = useTypebot() | ||
|
||
const handleDeleteClick = () => { | ||
removeBlock(blockId) | ||
} | ||
return ( | ||
<MenuList> | ||
<MenuItem icon={<TrashIcon />} onClick={handleDeleteClick}> | ||
Delete | ||
</MenuItem> | ||
</MenuList> | ||
) | ||
} |
Oops, something went wrong.