Skip to content

Commit 87f5d85

Browse files
committed
♻️ Add a test for internal waitUntil
1 parent 8d62898 commit 87f5d85

File tree

89 files changed

+1010
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1010
-1135
lines changed

apps/builder/api/v1/whatsapp/preview/webhook.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

apps/builder/next.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const nextConfig = {
4040
transpilePackages: [
4141
'@typebot.io/lib',
4242
'@typebot.io/schemas',
43-
'@typebot.io/emails',
4443
'@typebot.io/env',
4544
],
4645
i18n: {

apps/builder/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"format:check": "prettier --check ./src --ignore-path ../../.prettierignore"
1414
},
1515
"dependencies": {
16+
"@faire/mjml-react": "3.3.0",
1617
"@typebot.io/theme": "workspace:*",
1718
"@braintree/sanitize-url": "7.0.1",
1819
"@chakra-ui/anatomy": "2.1.1",
@@ -23,7 +24,6 @@
2324
"@dnd-kit/utilities": "3.2.1",
2425
"@emotion/react": "11.11.1",
2526
"@emotion/styled": "11.11.0",
26-
"@faire/mjml-react": "3.3.0",
2727
"@giphy/js-fetch-api": "5.0.0",
2828
"@giphy/js-types": "4.4.0",
2929
"@giphy/js-util": "5.0.0",
@@ -41,16 +41,18 @@
4141
"@trpc/react-query": "10.40.0",
4242
"@trpc/server": "10.40.0",
4343
"@typebot.io/bot-engine": "workspace:*",
44-
"@typebot.io/emails": "workspace:*",
44+
"@typebot.io/email-legacy": "workspace:*",
4545
"@typebot.io/env": "workspace:*",
4646
"@typebot.io/js": "workspace:*",
4747
"@typebot.io/nextjs": "workspace:*",
48-
"@udecode/cn": "29.0.1",
49-
"@udecode/plate-basic-marks": "30.5.3",
50-
"@udecode/plate-common": "30.4.5",
51-
"@udecode/plate-core": "30.4.5",
52-
"@udecode/plate-floating": "30.5.3",
53-
"@udecode/plate-link": "30.5.3",
48+
"@udecode/cn": "31.0.0",
49+
"@udecode/plate-basic-marks": "31.0.0",
50+
"@udecode/plate-core": "31.3.2",
51+
"@udecode/plate-floating": "31.0.0",
52+
"@udecode/plate-link": "31.0.0",
53+
"@udecode/slate": "31.0.0",
54+
"@udecode/slate-react": "31.0.0",
55+
"@udecode/plate-utils": "31.0.0",
5456
"@uiw/codemirror-extensions-langs": "4.21.24",
5557
"@uiw/codemirror-theme-github": "4.21.24",
5658
"@uiw/codemirror-theme-tokyo-night": "4.21.24",
@@ -74,7 +76,7 @@
7476
"libphonenumber-js": "1.10.37",
7577
"micro": "10.0.1",
7678
"micro-cors": "0.1.1",
77-
"next": "14.1.0",
79+
"next": "14.2.1",
7880
"next-auth": "4.22.1",
7981
"nextjs-cors": "2.1.2",
8082
"nodemailer": "6.9.8",
@@ -123,7 +125,6 @@
123125
"@types/qs": "6.9.7",
124126
"@types/react": "18.2.15",
125127
"@types/tinycolor2": "1.4.3",
126-
"@vercel/edge": "1.1.1",
127128
"dotenv-cli": "7.2.1",
128129
"eslint": "8.44.0",
129130
"eslint-config-custom": "workspace:*",

apps/builder/src/components/inputs/CodeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import CodeMirror, { ReactCodeMirrorRef } from '@uiw/react-codemirror'
1818
import { tokyoNight } from '@uiw/codemirror-theme-tokyo-night'
1919
import { githubLight } from '@uiw/codemirror-theme-github'
2020
import { LanguageName, loadLanguage } from '@uiw/codemirror-extensions-langs'
21-
import { isDefined } from '@udecode/plate-common'
2221
import { CopyButton } from '../CopyButton'
2322
import { MoreInfoTooltip } from '../MoreInfoTooltip'
23+
import { isDefined } from '@typebot.io/lib/utils'
2424

2525
type Props = {
2626
label?: string

apps/builder/src/features/auth/helpers/sendVerificationRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sendMagicLinkEmail } from '@typebot.io/emails'
1+
import { sendMagicLinkEmail } from '@typebot.io/email-legacy'
22

33
type Props = {
44
identifier: string

apps/builder/src/features/blocks/bubbles/textBubble/components/TextBubbleEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useRef } from 'react'
22
import { Plate } from '@udecode/plate-core'
33
import { platePlugins } from '@/lib/plate'
4-
import { TElement } from '@udecode/plate-common'
4+
import { TElement } from '@udecode/slate'
55
import { TextEditorEditorContent } from './TextEditorEditorContent'
66

77
type TextBubbleEditorContentProps = {

apps/builder/src/features/blocks/bubbles/textBubble/components/TextEditorEditorContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import { useCallback, useEffect, useRef, useState } from 'react'
1515
import { TextEditorToolBar } from './TextEditorToolBar'
1616
import { useTranslate } from '@tolgee/react'
1717
import { PlateContent, useEditorRef } from '@udecode/plate-core'
18-
import { focusEditor, insertText, selectEditor } from '@udecode/plate-common'
1918
import { useOutsideClick } from '@/hooks/useOutsideClick'
19+
import { insertText } from '@udecode/slate'
20+
import { focusEditor } from '@udecode/slate-react'
21+
import { selectEditor } from '@udecode/plate-utils'
2022

2123
type Props = {
2224
closeEditor: () => void

apps/builder/src/features/blocks/bubbles/textBubble/components/plate/MarkToolbarButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import {
33
useMarkToolbarButton,
44
useMarkToolbarButtonState,
5-
} from '@udecode/plate-common'
5+
} from '@udecode/plate-utils'
66
import { IconButton, IconButtonProps } from '@chakra-ui/react'
77

88
type Props = {

apps/builder/src/features/blocks/bubbles/textBubble/components/plate/PlateBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TElement, TText, TDescendant } from '@udecode/plate-common'
1+
import { TElement, TText, TDescendant } from '@udecode/slate'
22
import { PlateText } from './PlateText'
33

44
export const PlateBlock = ({ element }: { element: TElement | TText }) => {

apps/builder/src/features/blocks/integrations/sendEmail/components/SmtpConfigForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TextInput, NumberInput } from '@/components/inputs'
22
import { SwitchWithLabel } from '@/components/inputs/SwitchWithLabel'
33
import { Stack } from '@chakra-ui/react'
4-
import { isDefined } from '@udecode/plate-common'
4+
import { isDefined } from '@typebot.io/lib/utils'
55
import { SmtpCredentials } from '@typebot.io/schemas'
66
import React from 'react'
77

0 commit comments

Comments
 (0)