📦 Update packages

This commit is contained in:
Baptiste Arnaud
2022-09-12 07:29:36 +02:00
parent 4a04d1ccba
commit a262fc190e
15 changed files with 2625 additions and 3330 deletions

View File

@@ -7,12 +7,12 @@ import { javascript } from '@codemirror/lang-javascript'
import { html } from '@codemirror/lang-html'
import { useEffect, useRef, useState } from 'react'
import { useDebouncedCallback } from 'use-debounce'
import { linter } from '@codemirror/lint'
import { linter, LintSource } from '@codemirror/lint'
import { VariablesButton } from './buttons/VariablesButton'
import { Variable } from 'models'
import { env } from 'utils'
const linterExtension = linter(jsonParseLinter())
const linterExtension = linter(jsonParseLinter() as unknown as LintSource)
type Props = {
value: string

View File

@@ -12,10 +12,10 @@
"test:open": "PWDEBUG=1 pnpm playwright test"
},
"dependencies": {
"@chakra-ui/css-reset": "2.0.5",
"@chakra-ui/react": "^2.2.9",
"@chakra-ui/css-reset": "2.0.7",
"@chakra-ui/react": "^2.3.2",
"@codemirror/lang-css": "^6.0.0",
"@codemirror/lang-html": "^6.1.0",
"@codemirror/lang-html": "^6.1.1",
"@codemirror/lang-javascript": "^6.0.2",
"@codemirror/lang-json": "^6.0.0",
"@codemirror/lint": "^6.0.0",
@@ -23,23 +23,23 @@
"@dnd-kit/core": "^6.0.5",
"@dnd-kit/sortable": "^7.0.1",
"@dnd-kit/utilities": "^3.2.0",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@giphy/js-fetch-api": "4.4.0",
"@giphy/js-types": "^4.2.1",
"@giphy/react-components": "6.1.1",
"@googleapis/drive": "^3.0.1",
"@sentry/nextjs": "7.11.1",
"@stripe/stripe-js": "1.35.0",
"@tanstack/react-table": "8.5.11",
"@udecode/plate-basic-marks": "16.3.0",
"@sentry/nextjs": "7.12.1",
"@stripe/stripe-js": "1.36.0",
"@tanstack/react-table": "8.5.13",
"@udecode/plate-basic-marks": "16.8.0",
"@udecode/plate-common": "^7.0.2",
"@udecode/plate-core": "16.3.0",
"@udecode/plate-link": "16.3.0",
"@udecode/plate-serializer-html": "16.3.0",
"@udecode/plate-ui-link": "16.3.0",
"@udecode/plate-ui-toolbar": "16.3.0",
"aws-sdk": "2.1204.0",
"@udecode/plate-core": "16.8.0",
"@udecode/plate-link": "16.9.0",
"@udecode/plate-serializer-html": "16.8.0",
"@udecode/plate-ui-link": "16.9.0",
"@udecode/plate-ui-toolbar": "16.8.0",
"aws-sdk": "2.1213.0",
"bot-engine": "workspace:*",
"browser-image-compression": "^2.0.0",
"canvas-confetti": "^1.5.1",
@@ -49,10 +49,10 @@
"dequal": "^2.0.3",
"emojilib": "3.0.7",
"focus-visible": "^5.2.0",
"framer-motion": "7.2.1",
"google-auth-library": "^8.4.0",
"framer-motion": "7.3.2",
"google-auth-library": "^8.5.1",
"google-spreadsheet": "^3.3.0",
"got": "12.3.1",
"got": "12.4.1",
"htmlparser2": "^8.0.1",
"immer": "^9.0.15",
"js-video-url-parser": "^0.5.1",
@@ -61,7 +61,7 @@
"micro": "9.4.1",
"micro-cors": "^0.1.1",
"minio": "7.0.32",
"next": "12.2.5",
"next": "12.3.0",
"next-auth": "4.10.3",
"nodemailer": "^6.7.8",
"nprogress": "^0.2.0",
@@ -74,8 +74,8 @@
"slate": "0.82.1",
"slate-history": "^0.66.0",
"slate-hyperscript": "^0.77.0",
"slate-react": "0.82.1",
"stripe": "10.6.0",
"slate-react": "0.82.2",
"stripe": "10.8.0",
"styled-components": "^5.3.5",
"svg-round-corners": "^0.3.0",
"swr": "^1.3.0",
@@ -84,31 +84,31 @@
"use-debounce": "8.0.4"
},
"devDependencies": {
"@babel/core": "7.18.13",
"@chakra-ui/styled-system": "^2.2.8",
"@playwright/test": "1.25.1",
"@babel/core": "7.19.0",
"@chakra-ui/styled-system": "^2.3.1",
"@playwright/test": "1.25.2",
"@types/canvas-confetti": "^1.4.3",
"@types/google-spreadsheet": "^3.3.0",
"@types/jsonwebtoken": "8.5.9",
"@types/micro-cors": "^0.1.2",
"@types/minio": "^7.0.13",
"@types/node": "18.7.13",
"@types/node": "18.7.16",
"@types/nodemailer": "6.4.5",
"@types/nprogress": "^0.2.0",
"@types/papaparse": "5.3.4",
"@types/papaparse": "5.3.5",
"@types/prettier": "2.7.0",
"@types/qs": "^6.9.7",
"@types/react": "^18.0.17",
"@types/react": "^18.0.19",
"@types/tinycolor2": "^1.4.3",
"@typescript-eslint/eslint-plugin": "5.35.1",
"@typescript-eslint/parser": "5.35.1",
"@typescript-eslint/eslint-plugin": "5.36.2",
"@typescript-eslint/parser": "5.36.2",
"db": "workspace:*",
"dotenv": "^16.0.1",
"dotenv": "^16.0.2",
"eslint": "8.23.0",
"eslint-config-next": "12.2.5",
"eslint-plugin-react": "^7.31.1",
"eslint-config-next": "12.3.0",
"eslint-plugin-react": "^7.31.8",
"models": "workspace:*",
"typescript": "^4.8.2",
"typescript": "^4.8.3",
"utils": "workspace:*"
}
}

View File

@@ -17,10 +17,14 @@ import { actions } from 'libs/kbar'
import { SupportBubble } from 'components/shared/SupportBubble'
import { WorkspaceContext } from 'contexts/WorkspaceContext'
import { toTitleCase } from 'utils'
import { Session } from 'next-auth'
const { ToastContainer, toast } = createStandaloneToast(customTheme)
const App = ({ Component, pageProps: { session, ...pageProps } }: AppProps) => {
const App = ({
Component,
pageProps: { session, ...pageProps },
}: AppProps<{ session: Session }>) => {
useRouterProgressBar()
const { query, pathname, isReady } = useRouter()

View File

@@ -23,7 +23,7 @@ test.describe.parallel('Editor', () => {
await page.goto(`/typebots/${typebotId}/edit`)
await expect(page.locator("text='Start'")).toBeVisible()
await page.dragAndDrop('text=Button', '#editor-container', {
targetPosition: { x: 800, y: 400 },
targetPosition: { x: 1000, y: 400 },
})
await page.dragAndDrop(
'text=Text >> nth=0',