2
0

⬆️ Upgrade dependencies

This commit is contained in:
Baptiste Arnaud
2023-03-14 15:08:53 +01:00
parent 9ca17e4e0b
commit ff09814ead
18 changed files with 1585 additions and 1158 deletions

View File

@ -22,37 +22,37 @@
"@dnd-kit/utilities": "3.2.1",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@faire/mjml-react": "3.1.1",
"@faire/mjml-react": "3.1.2",
"@giphy/js-fetch-api": "4.7.1",
"@giphy/js-types": "4.4.0",
"@giphy/react-components": "6.5.2",
"@googleapis/drive": "4.0.2",
"@giphy/react-components": "6.6.0",
"@googleapis/drive": "5.0.0",
"@lezer/css": "^1.1.1",
"@paralleldrive/cuid2": "2.2.0",
"@sentry/nextjs": "7.38.0",
"@stripe/stripe-js": "1.47.0",
"@tanstack/react-query": "^4.24.10",
"@sentry/nextjs": "7.43.0",
"@stripe/stripe-js": "1.49.0",
"@tanstack/react-query": "^4.26.1",
"@tanstack/react-table": "8.7.9",
"@trpc/client": "10.12.0",
"@trpc/next": "10.12.0",
"@trpc/react-query": "10.12.0",
"@trpc/server": "10.12.0",
"@trpc/client": "10.16.0",
"@trpc/next": "10.16.0",
"@trpc/react-query": "10.16.0",
"@trpc/server": "10.16.0",
"@typebot.io/js": "workspace:*",
"@typebot.io/react": "workspace:*",
"@udecode/plate-basic-marks": "19.2.0",
"@udecode/plate-common": "^7.0.2",
"@udecode/plate-core": "19.2.0",
"@udecode/plate-link": "19.2.0",
"@udecode/plate-serializer-html": "19.2.0",
"@udecode/plate-ui-link": "19.2.0",
"@udecode/plate-ui-toolbar": "19.2.0",
"@udecode/plate-basic-marks": "20.0.0",
"@udecode/plate-common": "^20.0.0",
"@udecode/plate-core": "20.0.0",
"@udecode/plate-link": "20.0.0",
"@udecode/plate-serializer-html": "20.0.0",
"@udecode/plate-ui-link": "20.0.0",
"@udecode/plate-ui-toolbar": "20.0.0",
"@uiw/codemirror-extensions-langs": "^4.19.9",
"@uiw/codemirror-theme-github": "^4.19.9",
"@uiw/codemirror-theme-tokyo-night": "^4.19.9",
"@uiw/react-codemirror": "^4.19.9",
"@use-gesture/react": "^10.2.24",
"aws-sdk": "2.1321.0",
"browser-image-compression": "2.0.0",
"aws-sdk": "2.1334.0",
"browser-image-compression": "2.0.2",
"canvas-confetti": "1.6.0",
"codemirror": "6.0.1",
"deep-object-diff": "1.1.9",
@ -60,10 +60,10 @@
"emails": "workspace:*",
"emojilib": "3.0.8",
"focus-visible": "5.2.0",
"framer-motion": "9.0.7",
"framer-motion": "10.3.0",
"google-auth-library": "8.7.0",
"google-spreadsheet": "3.3.0",
"got": "12.5.3",
"got": "12.6.0",
"htmlparser2": "8.0.1",
"immer": "9.0.19",
"js-video-url-parser": "0.5.1",
@ -71,26 +71,26 @@
"micro": "10.0.1",
"micro-cors": "0.1.1",
"minio": "7.0.32",
"next": "13.1.6",
"next-auth": "4.19.2",
"@typebot.io/next-international": "^0.3.8",
"next": "13.2.4",
"next-auth": "4.20.1",
"@typebot.io/next-international": "0.3.8",
"nextjs-cors": "^2.1.2",
"nodemailer": "6.9.1",
"nprogress": "0.2.0",
"papaparse": "5.3.2",
"posthog-node": "^2.5.4",
"papaparse": "5.4.0",
"posthog-node": "2.5.4",
"prettier": "2.8.4",
"qs": "6.11.0",
"qs": "6.11.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"slate": "0.91.3",
"slate": "0.91.4",
"slate-history": "0.86.0",
"slate-hyperscript": "0.77.0",
"slate-react": "0.91.3",
"stripe": "11.11.0",
"styled-components": "5.3.6",
"slate-react": "0.91.10",
"stripe": "11.14.0",
"styled-components": "5.3.9",
"svg-round-corners": "0.4.1",
"swr": "2.0.3",
"swr": "2.1.0",
"tinycolor2": "1.6.0",
"trpc-openapi": "1.1.2",
"use-debounce": "9.0.3"
@ -98,13 +98,13 @@
"devDependencies": {
"@babel/core": "7.21.0",
"@chakra-ui/styled-system": "2.6.1",
"@playwright/test": "1.31.1",
"@playwright/test": "1.31.2",
"@types/canvas-confetti": "1.6.0",
"@types/google-spreadsheet": "3.3.1",
"@types/jsonwebtoken": "9.0.1",
"@types/micro-cors": "0.1.3",
"@types/minio": "7.0.15",
"@types/node": "18.14.0",
"@types/minio": "7.0.17",
"@types/node": "18.15.3",
"@types/nodemailer": "6.4.7",
"@types/nprogress": "0.2.0",
"@types/papaparse": "5.3.7",
@ -114,7 +114,7 @@
"@types/tinycolor2": "1.4.3",
"db": "workspace:*",
"dotenv": "16.0.3",
"eslint": "8.34.0",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"models": "workspace:*",
"next-transpile-modules": "10.0.0",
@ -122,6 +122,6 @@
"tsconfig": "workspace:*",
"typescript": "4.9.5",
"utils": "workspace:*",
"zod": "3.20.6"
"zod": "3.21.4"
}
}

View File

@ -5,13 +5,7 @@ import {
useEventListener,
} from '@chakra-ui/react'
import React, { useEffect, useRef, useState } from 'react'
import {
Plate,
PlateProvider,
selectEditor,
TElement,
usePlateEditorRef,
} from '@udecode/plate-core'
import { Plate, PlateProvider, usePlateEditorRef } from '@udecode/plate-core'
import { editorStyle, platePlugins } from '@/lib/plate'
import { BaseEditor, BaseSelection, Transforms } from 'slate'
import { ToolBar } from './ToolBar'
@ -22,6 +16,7 @@ import { parseHtmlStringToPlainText } from '../../utils'
import { VariableSearchInput } from '@/components/inputs/VariableSearchInput'
import { colors } from '@/lib/theme'
import { useOutsideClick } from '@/hooks/useOutsideClick'
import { selectEditor, TElement } from '@udecode/plate-common'
type TextBubbleEditorContentProps = {
id: string

View File

@ -1,6 +1,6 @@
import { isDefined } from '@udecode/plate-core'
import { dequal } from 'dequal'
import { useCallback, useRef, useState } from 'react'
import { isDefined } from 'utils'
export interface Actions<T extends { updatedAt: Date }> {
set: (newPresent: T | ((current: T) => T) | undefined) => void
@ -80,7 +80,6 @@ export const useUndo = <T extends { updatedAt: Date }>(
) {
return
}
if (newPresent === undefined) {
presentRef.current = null
setHistory(initialState)

View File

@ -10,6 +10,328 @@
}
],
"paths": {
"/t/process": {
"post": {
"operationId": "query.processTelemetryEvent",
"description": "Only used for the cloud version of Typebot. It's the way it processes telemetry events and inject it to thrid-party services.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"Workspace created"
]
},
"data": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"plan": {
"type": "string",
"enum": [
"FREE",
"STARTER",
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
]
}
},
"required": [
"plan"
],
"additionalProperties": false
}
},
"required": [
"userId",
"workspaceId",
"name",
"data"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"User created"
]
},
"data": {
"type": "object",
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"email"
],
"additionalProperties": false
}
},
"required": [
"userId",
"name",
"data"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"typebotId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"Typebot created"
]
},
"data": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"template": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
}
},
"required": [
"userId",
"workspaceId",
"typebotId",
"name",
"data"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"typebotId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"Typebot published"
]
},
"data": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"isFirstPublish": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"name"
],
"additionalProperties": false
}
},
"required": [
"userId",
"workspaceId",
"typebotId",
"name",
"data"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"Subscription updated"
]
},
"data": {
"type": "object",
"properties": {
"plan": {
"type": "string",
"enum": [
"FREE",
"STARTER",
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
]
},
"additionalChatsIndex": {
"type": "number"
},
"additionalStorageIndex": {
"type": "number"
}
},
"required": [
"plan",
"additionalChatsIndex",
"additionalStorageIndex"
],
"additionalProperties": false
}
},
"required": [
"userId",
"workspaceId",
"name",
"data"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"typebotId": {
"type": "string"
},
"name": {
"type": "string",
"enum": [
"New results collected"
]
},
"data": {
"type": "object",
"properties": {
"total": {
"type": "number"
}
},
"required": [
"total"
],
"additionalProperties": false
}
},
"required": [
"userId",
"workspaceId",
"typebotId",
"name",
"data"
],
"additionalProperties": false
}
]
}
}
},
"required": [
"events"
],
"additionalProperties": false
}
}
}
},
"parameters": [],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"enum": [
"Events injected"
]
}
},
"required": [
"message"
],
"additionalProperties": false
}
}
}
},
"default": {
"$ref": "#/components/responses/error"
}
}
}
},
"/workspaces": {
"get": {
"operationId": "query.workspace.listWorkspaces",

View File

@ -43,11 +43,11 @@
]
},
"devDependencies": {
"@algolia/client-search": "4.14.3",
"@docusaurus/types": "^2.3.0",
"@types/react": "18.0.27",
"tsx": "3.12.2",
"typescript": "4.9.4",
"webpack": "5.75.0"
"@algolia/client-search": "4.15.0",
"@docusaurus/types": "^2.3.1",
"@types/react": "18.0.28",
"tsx": "3.12.5",
"typescript": "4.9.5",
"webpack": "5.76.1"
}
}

View File

@ -14,15 +14,15 @@
"@chakra-ui/react": "2.5.1",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@vercel/analytics": "0.1.10",
"@vercel/analytics": "0.1.11",
"@typebot.io/react": "workspace:*",
"@typebot.io/js": "workspace:*",
"aos": "2.3.4",
"db": "workspace:*",
"focus-visible": "5.2.0",
"framer-motion": "9.0.7",
"framer-motion": "10.3.0",
"models": "workspace:*",
"next": "13.1.6",
"next": "13.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"utils": "workspace:*"
@ -30,13 +30,13 @@
"devDependencies": {
"@babel/core": "7.21.0",
"@chakra-ui/styled-system": "2.6.1",
"@next/bundle-analyzer": "13.1.6",
"@next/bundle-analyzer": "13.2.4",
"@types/aos": "3.0.4",
"@types/node": "18.14.0",
"@types/node": "18.15.3",
"@types/react": "18.0.28",
"autoprefixer": "10.4.13",
"autoprefixer": "10.4.14",
"cross-env": "7.0.3",
"eslint": "8.34.0",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"next-transpile-modules": "10.0.0",
"postcss": "8.4.21",

View File

@ -13,53 +13,53 @@
"test:report": "pnpm playwright show-report"
},
"dependencies": {
"@sentry/nextjs": "7.38.0",
"@trpc/server": "10.12.0",
"@sentry/nextjs": "7.43.0",
"@trpc/server": "10.16.0",
"@typebot.io/js": "workspace:*",
"@typebot.io/react": "workspace:*",
"aws-sdk": "2.1321.0",
"aws-sdk": "2.1334.0",
"bot-engine": "workspace:*",
"cors": "2.8.5",
"db": "workspace:*",
"google-spreadsheet": "3.3.0",
"got": "12.5.3",
"libphonenumber-js": "^1.10.21",
"next": "13.1.6",
"nextjs-cors": "^2.1.2",
"got": "12.6.0",
"libphonenumber-js": "1.10.21",
"next": "13.2.4",
"nextjs-cors": "2.1.2",
"nodemailer": "6.9.1",
"openai": "^3.2.1",
"qs": "6.11.0",
"openai": "3.2.1",
"qs": "6.11.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"stripe": "11.11.0",
"stripe": "11.14.0",
"trpc-openapi": "1.1.2"
},
"devDependencies": {
"@babel/preset-env": "7.20.2",
"@faire/mjml-react": "3.1.1",
"@faire/mjml-react": "3.1.2",
"@paralleldrive/cuid2": "2.2.0",
"@playwright/test": "1.31.1",
"@playwright/test": "1.31.2",
"@types/cors": "2.8.13",
"@types/google-spreadsheet": "3.3.1",
"@types/node": "18.14.0",
"@types/node": "18.15.3",
"@types/nodemailer": "6.4.7",
"@types/papaparse": "5.3.7",
"@types/qs": "6.9.7",
"@types/react": "18.0.28",
"@types/sanitize-html": "2.8.0",
"@types/sanitize-html": "2.8.1",
"dotenv": "16.0.3",
"emails": "workspace:*",
"eslint": "8.34.0",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"google-auth-library": "8.7.0",
"models": "workspace:*",
"next-transpile-modules": "10.0.0",
"node-fetch": "^3.3.0",
"papaparse": "5.3.2",
"superjson": "^1.12.2",
"node-fetch": "3.3.1",
"papaparse": "5.4.0",
"superjson": "1.12.2",
"tsconfig": "workspace:*",
"typescript": "4.9.5",
"utils": "workspace:*",
"zod": "3.20.6"
"zod": "3.21.4"
}
}

View File

@ -26,7 +26,7 @@
"cross-env": "7.0.3",
"cz-emoji": "1.3.2-canary.2",
"husky": "^8.0.3",
"turbo": "1.8.2"
"turbo": "1.8.3"
},
"config": {
"commitizen": {

View File

@ -13,14 +13,14 @@
"db:migrate": "pnpm migrate:deploy"
},
"dependencies": {
"@prisma/client": "4.10.1"
"@prisma/client": "4.11.0"
},
"devDependencies": {
"@types/node": "18.14.0",
"@types/node": "18.15.3",
"dotenv": "16.0.3",
"prisma": "4.10.1",
"prisma": "4.11.0",
"tsconfig": "workspace:*",
"tsx": "3.12.3",
"tsx": "3.12.5",
"typescript": "4.9.5"
}
}

View File

@ -14,17 +14,17 @@
"author": "Baptiste Arnaud",
"license": "ISC",
"devDependencies": {
"@faire/mjml-react": "3.1.1",
"@types/node": "18.14.0",
"@faire/mjml-react": "3.1.2",
"@types/node": "18.15.3",
"@types/nodemailer": "6.4.7",
"@types/react": "18.0.28",
"concurrently": "7.6.0",
"http-server": "14.1.1",
"nodemailer": "6.9.1",
"react": "18.2.0",
"tsx": "3.12.3",
"tsx": "3.12.5",
"utils": "workspace:*",
"eslint": "8.34.0",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"tsconfig": "workspace:*"
},

View File

@ -3,13 +3,13 @@
"version": "0.0.1",
"main": "index.js",
"dependencies": {
"eslint": "8.34.0",
"eslint-config-next": "13.1.6",
"eslint-config-prettier": "8.6.0",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-react": "7.32.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.53.0"
"@typescript-eslint/parser": "^5.55.0"
}
}

View File

@ -12,27 +12,27 @@
},
"license": "MIT",
"dependencies": {
"@stripe/stripe-js": "1.47.0",
"solid-element": "1.6.3",
"solid-js": "1.6.11"
"@stripe/stripe-js": "1.49.0",
"solid-element": "1.6.4",
"solid-js": "1.6.14"
},
"devDependencies": {
"@babel/preset-typescript": "^7.21.0",
"@babel/preset-typescript": "7.21.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-terser": "0.4.0",
"@rollup/plugin-typescript": "11.0.0",
"autoprefixer": "10.4.13",
"babel-preset-solid": "1.6.10",
"eslint": "8.34.0",
"autoprefixer": "10.4.14",
"babel-preset-solid": "1.6.13",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"eslint-plugin-solid": "0.10.0",
"eslint-plugin-solid": "0.11.0",
"models": "workspace:*",
"postcss": "8.4.21",
"react": "18.2.0",
"rollup": "3.17.2",
"rollup": "3.19.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-typescript-paths": "^1.4.0",
"rollup-plugin-typescript-paths": "1.4.0",
"tailwindcss": "3.2.7",
"tsconfig": "workspace:*",
"typescript": "4.9.5",

View File

@ -6,15 +6,11 @@
"license": "AGPL-3.0-or-later",
"private": true,
"dependencies": {
"zod": "3.20.6"
"zod": "3.21.4"
},
"devDependencies": {
"db": "workspace:*",
"next": "13.1.6",
"tsconfig": "workspace:*",
"typescript": "4.9.5"
},
"peerDependencies": {
"next": "13.0.0"
}
}

View File

@ -19,26 +19,26 @@
"@ladle/react": "2.5.1"
},
"devDependencies": {
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-terser": "0.4.0",
"@rollup/plugin-typescript": "11.0.0",
"@typebot.io/js": "workspace:*",
"@types/node": "18.14.0",
"@types/node": "18.15.3",
"@types/react": "18.0.28",
"db": "workspace:*",
"eslint": "^8.34.0",
"eslint": "8.36.0",
"eslint-config-custom": "workspace:*",
"models": "workspace:*",
"react": "18.2.0",
"rollup": "3.17.2",
"rollup-plugin-typescript-paths": "^1.4.0",
"rollup": "3.19.1",
"rollup-plugin-typescript-paths": "1.4.0",
"tsconfig": "workspace:*",
"tslib": "^2.5.0",
"tsx": "3.12.3",
"typescript": "^4.9.5",
"tslib": "2.5.0",
"tsx": "3.12.5",
"typescript": "4.9.5",
"utils": "workspace:*"
},
"peerDependencies": {

View File

@ -15,18 +15,18 @@
"telemetry:sendTotalResultsDigest": "tsx sendTotalResultsDigest.ts"
},
"devDependencies": {
"@types/node": "18.14.0",
"@types/prompts": "2.4.2",
"@types/node": "18.15.3",
"@types/prompts": "2.4.3",
"db": "workspace:*",
"deep-object-diff": "1.1.9",
"emails": "workspace:*",
"got": "12.5.3",
"got": "12.6.0",
"models": "workspace:*",
"prompts": "2.4.2",
"stripe": "11.11.0",
"tsx": "3.12.3",
"stripe": "11.14.0",
"tsx": "3.12.5",
"typescript": "4.9.5",
"utils": "workspace:*",
"zod": "3.20.6"
"zod": "3.21.4"
}
}

View File

@ -7,13 +7,13 @@
"types": "./index.ts",
"devDependencies": {
"@paralleldrive/cuid2": "2.2.0",
"@playwright/test": "1.31.1",
"@playwright/test": "1.31.2",
"@types/nodemailer": "6.4.7",
"aws-sdk": "2.1321.0",
"aws-sdk": "2.1334.0",
"db": "workspace:*",
"dotenv": "16.0.3",
"models": "workspace:*",
"next": "13.1.6",
"next": "13.2.4",
"nodemailer": "6.9.1",
"tsconfig": "workspace:*",
"typescript": "4.9.5"
@ -24,6 +24,6 @@
"nodemailer": "6.7.8"
},
"dependencies": {
"got": "12.5.3"
"got": "12.6.0"
}
}

View File

@ -6,7 +6,7 @@
"author": "baptisteArno",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@prettier/plugin-php": "0.19.3",
"@prettier/plugin-php": "0.19.4",
"prettier": "2.8.4"
},
"scripts": {

2175
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff