⬆️ Upgrade dependencies
This commit is contained in:
@ -14,29 +14,29 @@
|
||||
"@chakra-ui/css-reset": "2.0.10",
|
||||
"@chakra-ui/react": "2.4.1",
|
||||
"@codemirror/lang-css": "6.0.1",
|
||||
"@codemirror/lang-html": "6.1.4",
|
||||
"@codemirror/lang-html": "6.2.0",
|
||||
"@codemirror/lang-javascript": "6.1.1",
|
||||
"@codemirror/lang-json": "6.0.1",
|
||||
"@codemirror/lint": "6.1.0",
|
||||
"@codemirror/state": "6.1.3",
|
||||
"@codemirror/state": "6.1.4",
|
||||
"@dnd-kit/core": "6.0.5",
|
||||
"@dnd-kit/sortable": "7.0.1",
|
||||
"@dnd-kit/utilities": "3.2.0",
|
||||
"@emotion/react": "11.10.5",
|
||||
"@emotion/styled": "11.10.5",
|
||||
"@faire/mjml-react": "2.1.4",
|
||||
"@faire/mjml-react": "3.0.0",
|
||||
"@giphy/js-fetch-api": "4.4.0",
|
||||
"@giphy/js-types": "4.2.1",
|
||||
"@giphy/react-components": "6.2.0",
|
||||
"@googleapis/drive": "4.0.0",
|
||||
"@sentry/nextjs": "7.19.0",
|
||||
"@sentry/nextjs": "7.20.1",
|
||||
"@stripe/stripe-js": "1.44.1",
|
||||
"@tanstack/react-query": "^4.16.1",
|
||||
"@tanstack/react-table": "8.5.28",
|
||||
"@trpc/client": "10.0.0-rc.8",
|
||||
"@trpc/next": "10.0.0-rc.8",
|
||||
"@trpc/react-query": "10.0.0-rc.8",
|
||||
"@trpc/server": "10.0.0-rc.8",
|
||||
"@tanstack/react-table": "8.5.30",
|
||||
"@trpc/client": "10.0.0",
|
||||
"@trpc/next": "10.0.0",
|
||||
"@trpc/react-query": "10.0.0",
|
||||
"@trpc/server": "10.0.0",
|
||||
"@udecode/plate-basic-marks": "18.9.0",
|
||||
"@udecode/plate-common": "^7.0.2",
|
||||
"@udecode/plate-core": "18.9.0",
|
||||
@ -45,7 +45,7 @@
|
||||
"@udecode/plate-ui-link": "18.9.1",
|
||||
"@udecode/plate-ui-toolbar": "18.9.0",
|
||||
"@use-gesture/react": "^10.2.22",
|
||||
"aws-sdk": "2.1254.0",
|
||||
"aws-sdk": "2.1258.0",
|
||||
"bot-engine": "workspace:*",
|
||||
"browser-image-compression": "2.0.0",
|
||||
"canvas-confetti": "1.6.0",
|
||||
@ -56,10 +56,10 @@
|
||||
"emails": "workspace:*",
|
||||
"emojilib": "3.0.7",
|
||||
"focus-visible": "5.2.0",
|
||||
"framer-motion": "7.6.6",
|
||||
"framer-motion": "7.6.7",
|
||||
"google-auth-library": "8.7.0",
|
||||
"google-spreadsheet": "3.3.0",
|
||||
"got": "12.5.2",
|
||||
"got": "12.5.3",
|
||||
"htmlparser2": "8.0.1",
|
||||
"immer": "9.0.16",
|
||||
"js-video-url-parser": "0.5.1",
|
||||
@ -67,7 +67,7 @@
|
||||
"micro": "9.4.1",
|
||||
"micro-cors": "0.1.1",
|
||||
"minio": "7.0.32",
|
||||
"next": "13.0.3",
|
||||
"next": "13.0.4",
|
||||
"next-auth": "4.12.3",
|
||||
"nodemailer": "6.8.0",
|
||||
"nprogress": "0.2.0",
|
||||
@ -76,11 +76,11 @@
|
||||
"qs": "6.11.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"slate": "0.85.0",
|
||||
"slate-history": "0.85.0",
|
||||
"slate": "0.86.0",
|
||||
"slate-history": "0.86.0",
|
||||
"slate-hyperscript": "0.77.0",
|
||||
"slate-react": "0.83.2",
|
||||
"stripe": "10.17.0",
|
||||
"slate-react": "0.86.0",
|
||||
"stripe": "11.1.0",
|
||||
"styled-components": "5.3.6",
|
||||
"svg-round-corners": "0.4.1",
|
||||
"swr": "1.3.0",
|
||||
@ -92,7 +92,7 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.20.2",
|
||||
"@chakra-ui/styled-system": "2.3.5",
|
||||
"@playwright/test": "1.27.1",
|
||||
"@playwright/test": "1.28.0",
|
||||
"@types/canvas-confetti": "1.6.0",
|
||||
"@types/google-spreadsheet": "3.3.0",
|
||||
"@types/jsonwebtoken": "8.5.9",
|
||||
@ -112,7 +112,7 @@
|
||||
"next-transpile-modules": "10.0.0",
|
||||
"superjson": "^1.11.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"typescript": "4.8.4",
|
||||
"typescript": "4.9.3",
|
||||
"utils": "workspace:*",
|
||||
"zod": "3.19.1",
|
||||
"eslint": "8.28.0",
|
||||
|
@ -33,7 +33,7 @@ test('should work as expected', async ({ page }) => {
|
||||
'src',
|
||||
RegExp(`/public/typebots/${typebotId}/blocks`, 'gm')
|
||||
)
|
||||
await page.getByRole('button', { name: 'Preview' }).click()
|
||||
await page.getByRole('button', { name: 'Preview', exact: true }).click()
|
||||
await expect(typebotViewer(page).locator('audio')).toHaveAttribute(
|
||||
'src',
|
||||
RegExp(`/public/typebots/${typebotId}/blocks`, 'gm')
|
||||
|
@ -29,11 +29,7 @@ test.describe.parallel('Image bubble block', () => {
|
||||
await page.setInputFiles('input[type="file"]', getTestAsset('avatar.jpg'))
|
||||
await expect(page.locator('img')).toHaveAttribute(
|
||||
'src',
|
||||
`${process.env.S3_SSL === 'false' ? 'http://' : 'https://'}${
|
||||
process.env.S3_ENDPOINT
|
||||
}${process.env.S3_PORT ? `:${process.env.S3_PORT}` : ''}/${
|
||||
process.env.S3_BUCKET
|
||||
}/public/typebots/${typebotId}/blocks/block2`
|
||||
new RegExp(`/public/typebots/${typebotId}/blocks/block2`, 'gm')
|
||||
)
|
||||
})
|
||||
|
||||
|
@ -34,7 +34,7 @@ test.describe('Chatwoot block', () => {
|
||||
await page.getByLabel('Email').fill('john@email.com')
|
||||
await page.getByLabel('Avatar URL').fill('https://domain.com/avatar.png')
|
||||
await page.getByLabel('Phone number').fill('+33654347543')
|
||||
await page.getByRole('button', { name: 'Preview' }).click()
|
||||
await page.getByRole('button', { name: 'Preview', exact: true }).click()
|
||||
await expect(
|
||||
page.getByText("Chatwoot won't open in preview mode").nth(0)
|
||||
).toBeVisible()
|
||||
|
@ -139,9 +139,9 @@ const useUndo = <T extends { updatedAt: string } | undefined>(
|
||||
const set = useCallback(
|
||||
(newPresent: T | ((current: T) => T), options = { updateDate: true }) => {
|
||||
const updatedTypebot =
|
||||
newPresent && 'id' in newPresent
|
||||
? newPresent
|
||||
: (newPresent as (current: T) => T)(presentRef.current)
|
||||
newPresent && typeof newPresent === 'function'
|
||||
? newPresent(presentRef.current)
|
||||
: newPresent
|
||||
presentRef.current = updatedTypebot
|
||||
dispatch({
|
||||
type: ActionType.Set,
|
||||
|
@ -27,7 +27,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
})
|
||||
if (!workspace?.stripeId) return forbidden(res)
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const session = await stripe.billingPortal.sessions.create({
|
||||
customer: workspace.stripeId,
|
||||
|
@ -22,7 +22,7 @@ const createCheckoutSession = async (userId: string) => {
|
||||
if (!process.env.STRIPE_SECRET_KEY)
|
||||
throw Error('STRIPE_SECRET_KEY var is missing')
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
|
||||
const claimableCustomPlan = await prisma.claimableCustomPlan.findFirst({
|
||||
|
@ -27,7 +27,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
})
|
||||
if (!workspace?.stripeId) return forbidden(res)
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const invoices = await stripe.invoices.list({
|
||||
customer: workspace.stripeId,
|
||||
|
@ -46,7 +46,7 @@ const getSubscriptionDetails =
|
||||
})
|
||||
if (!workspace?.stripeId) return forbidden(res)
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const subscriptions = await stripe.subscriptions.list({
|
||||
customer: workspace.stripeId,
|
||||
@ -70,7 +70,7 @@ const createCheckoutSession = (req: NextApiRequest) => {
|
||||
if (!process.env.STRIPE_SECRET_KEY)
|
||||
throw Error('STRIPE_SECRET_KEY var is missing')
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const {
|
||||
email,
|
||||
@ -118,7 +118,7 @@ const updateSubscription = async (req: NextApiRequest) => {
|
||||
if (!process.env.STRIPE_SECRET_KEY)
|
||||
throw Error('STRIPE_SECRET_KEY var is missing')
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const { data } = await stripe.subscriptions.list({
|
||||
customer: stripeId,
|
||||
@ -203,7 +203,7 @@ const cancelSubscription =
|
||||
})
|
||||
if (!workspace?.stripeId) return forbidden(res)
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
const existingSubscription = await stripe.subscriptions.list({
|
||||
customer: workspace.stripeId,
|
||||
|
@ -10,7 +10,7 @@ import { Plan } from 'db'
|
||||
if (!process.env.STRIPE_SECRET_KEY || !process.env.STRIPE_WEBHOOK_SECRET)
|
||||
throw new Error('STRIPE_SECRET_KEY or STRIPE_WEBHOOK_SECRET missing')
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
|
||||
const cors = Cors({
|
||||
|
@ -11,7 +11,7 @@ import { proWorkspaceId } from 'utils/playwright/databaseSetup'
|
||||
const prisma = new PrismaClient()
|
||||
|
||||
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY ?? '', {
|
||||
apiVersion: '2022-08-01',
|
||||
apiVersion: '2022-11-15',
|
||||
})
|
||||
|
||||
export const addSubscriptionToWorkspace = async (
|
||||
|
Reference in New Issue
Block a user