2
0

build: 📦️ Update packages

This commit is contained in:
Baptiste Arnaud
2022-04-02 10:38:00 +02:00
parent 525887a32c
commit 05009814d4
22 changed files with 1740 additions and 1629 deletions

View File

@ -166,7 +166,7 @@ export const CollaborationList = () => {
size="sm"
colorScheme="blue"
isLoading={isSendingInvitation}
flexShrink="0"
flexShrink={0}
type="submit"
>
Invite

View File

@ -16,8 +16,8 @@
},
"dependencies": {
"@chakra-ui/css-reset": "^1.1.3",
"@chakra-ui/react": "^1.8.6",
"@codemirror/basic-setup": "^0.19.1",
"@chakra-ui/react": "^1.8.7",
"@codemirror/basic-setup": "^0.19.3",
"@codemirror/lang-css": "^0.19.3",
"@codemirror/lang-html": "^0.19.4",
"@codemirror/lang-javascript": "^0.19.7",
@ -29,15 +29,14 @@
"@giphy/js-types": "^4.1.0",
"@giphy/react-components": "^5.6.1",
"@googleapis/drive": "^2.3.0",
"@next-auth/prisma-adapter": "1.0.1",
"@sentry/nextjs": "^6.18.2",
"@stripe/stripe-js": "^1.24.0",
"@udecode/plate-basic-marks": "^10.2.2",
"@sentry/nextjs": "^6.19.3",
"@stripe/stripe-js": "^1.26.0",
"@udecode/plate-basic-marks": "^10.5.0",
"@udecode/plate-common": "^7.0.2",
"@udecode/plate-core": "^10.2.2",
"@udecode/plate-link": "^10.2.2",
"@udecode/plate-ui-link": "^10.2.2",
"@udecode/plate-ui-toolbar": "^10.2.2",
"@udecode/plate-core": "^10.5.0",
"@udecode/plate-link": "^10.5.0",
"@udecode/plate-ui-link": "^10.5.0",
"@udecode/plate-ui-toolbar": "^10.5.0",
"bot-engine": "*",
"browser-image-compression": "^1.0.17",
"canvas-confetti": "^1.5.1",
@ -47,65 +46,61 @@
"dequal": "^2.0.2",
"emoji-mart": "^3.0.1",
"focus-visible": "^5.2.0",
"framer-motion": "^4",
"google-auth-library": "^7.14.0",
"framer-motion": "6.2.8",
"google-auth-library": "^7.14.1",
"google-spreadsheet": "^3.2.0",
"got": "^12.0.1",
"got": "^12.0.3",
"htmlparser2": "^7.2.0",
"immer": "^9.0.12",
"js-video-url-parser": "^0.5.1",
"jsonwebtoken": "^8.5.1",
"kbar": "^0.1.0-beta.30",
"kbar": "^0.1.0-beta.33",
"micro": "^9.3.4",
"micro-cors": "^0.1.1",
"minio": "^7.0.26",
"models": "*",
"msw": "^0.36.8",
"next": "^12.1.0",
"next-auth": "4.2.1",
"nodemailer": "^6.7.2",
"next": "^12.1.4",
"next-auth": "4.3.1",
"nodemailer": "^6.7.3",
"nprogress": "^0.2.0",
"papaparse": "^5.3.1",
"prettier": "^2.5.1",
"qs": "^6.10.3",
"papaparse": "^5.3.2",
"prettier": "^2.6.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-draggable": "^4.4.4",
"react-table": "^7.7.0",
"slate": "^0.73.1",
"slate": "^0.76.0",
"slate-history": "^0.66.0",
"slate-hyperscript": "^0.67.0",
"slate-react": "^0.74.2",
"stripe": "^8.209.0",
"styled-components": "^5.3.3",
"slate-react": "^0.76.0",
"stripe": "^8.215.0",
"styled-components": "^5.3.5",
"svg-round-corners": "^0.3.0",
"swr": "^1.2.2",
"typebot-js": "*",
"use-debounce": "^7.0.1",
"use-immer": "^0.6.0",
"utils": "*"
},
"devDependencies": {
"@playwright/test": "^1.19.2",
"@playwright/test": "^1.20.2",
"@types/canvas-confetti": "^1.4.2",
"@types/emoji-mart": "^3.0.9",
"@types/google-spreadsheet": "^3.1.5",
"@types/google-spreadsheet": "^3.2.0",
"@types/jsonwebtoken": "8.5.8",
"@types/micro-cors": "^0.1.2",
"@types/minio": "^7.0.12",
"@types/node": "^17.0.21",
"@types/node": "^17.0.23",
"@types/nodemailer": "^6.4.4",
"@types/nprogress": "^0.2.0",
"@types/papaparse": "^5.3.2",
"@types/prettier": "^2.4.4",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.40",
"@types/react-table": "^7.7.9",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@types/react": "^17.0.43",
"@types/react-table": "^7.7.10",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"dotenv": "^16.0.0",
"eslint": "<8.0.0",
"eslint-config-next": "12.1.0",
"next-transpile-modules": "^9.0.0",
"typescript": "^4.6.2"
"eslint-config-next": "12.1.4",
"typescript": "^4.6.3",
"msw": "^0.39.2"
}
}

View File

@ -1,8 +1,17 @@
import NextErrorComponent from 'next/error'
import * as Sentry from '@sentry/nextjs'
import { NextPageContext } from 'next'
const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
const MyError = ({
statusCode,
hasGetInitialPropsRun,
err,
}: {
statusCode: number
hasGetInitialPropsRun: boolean
err: Error
}) => {
if (!hasGetInitialPropsRun && err) {
// getInitialProps is not called in case of
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
@ -14,13 +23,15 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
return <NextErrorComponent statusCode={statusCode} />
}
MyError.getInitialProps = async (context) => {
MyError.getInitialProps = async (context: NextPageContext) => {
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
const { res, err, asPath } = context
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
// getInitialProps has run
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
errorInitialProps.hasGetInitialPropsRun = true
// Returning early because we don't want to log 404 errors to Sentry.

View File

@ -17,7 +17,9 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
return res.status(404).send("Couldn't find credentials in database")
const response = await drive({
version: 'v3',
auth,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
auth: auth,
}).files.list({
q: "mimeType='application/vnd.google-apps.spreadsheet'",
fields: 'nextPageToken, files(id, name)',

View File

@ -1,6 +1,6 @@
import { Box, Flex, HStack, Stack, Text } from '@chakra-ui/react'
import * as React from 'react'
import Image from 'next/image'
import Image, { StaticImageData } from 'next/image'
import { QuoteLeftIcon } from 'assets/icons/QuoteLeftIcon'
interface TestimonialProps {

View File

@ -1,16 +0,0 @@
const loadLandbot = (): Promise<void> =>
new Promise((resolve) => {
const existingScript = document.getElementById('landbot-lib')
if (!existingScript) {
const script = document.createElement('script')
script.src = 'https://static.landbot.io/landbot-3/landbot-3.0.0.js'
script.id = 'landbot-lib'
document.body.appendChild(script)
script.onload = () => {
resolve()
}
}
if (existingScript) resolve()
})
export default loadLandbot

View File

@ -1,62 +0,0 @@
import { Client } from '@notionhq/client'
const notion = new Client({
auth: process.env.NOTION_API_TOKEN,
})
export const getDatabase = async (databaseId: string) => {
const response = await notion.databases.query({
database_id: databaseId,
sorts: [
{
property: 'Created',
direction: 'descending',
},
],
filter: {
property: 'Published',
checkbox: {
equals: true,
},
},
})
return response.results
}
export const getFullDatabase = async (databaseId: string) => {
const response = await notion.databases.query({
database_id: databaseId,
sorts: [
{
property: 'Created',
direction: 'descending',
},
],
})
return response.results
}
export const getPage = async (databaseId: string, slug: string) => {
const { results } = await notion.databases.query({
database_id: databaseId,
filter: {
property: 'Slug',
text: {
equals: slug,
},
},
})
if (results.length === 0) return
const page_id = results.pop()?.id
if (!page_id) return
const response = await notion.pages.retrieve({ page_id })
return response
}
export const getBlocks = async (blockId: string) => {
const response = await notion.blocks.children.list({
block_id: blockId,
page_size: 50,
})
return response.results
}

View File

@ -1,14 +0,0 @@
const loadTypeform = (): Promise<void> =>
new Promise((resolve) => {
const existingScript = document.getElementById('typeform-lib')
if (!existingScript) {
const script = document.createElement('script')
script.innerHTML = `(function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })()`
script.id = 'typeform-lib'
document.body.appendChild(script)
resolve()
}
if (existingScript) resolve()
})
export default loadTypeform

View File

@ -8,33 +8,30 @@
"analyze": "cross-env ANALYZE=true next build"
},
"dependencies": {
"@chakra-ui/react": "^1.8.6",
"@chakra-ui/react": "^1.8.7",
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@notionhq/client": "^0.3.1",
"aos": "^2.3.4",
"bot-engine": "*",
"focus-visible": "^5.2.0",
"framer-motion": "^4",
"keen-slider": "^6.6.4",
"framer-motion": "^6.2.8",
"keen-slider": "^6.6.5",
"models": "*",
"next": "^12.1.0",
"notion-blocks-chakra-ui": "^0.0.15",
"posthog-js": "1.17.9",
"next": "^12.1.4",
"react": "17.0.2",
"react-dom": "17.0.2",
"typebot-js": "^2.1.3",
"typebot-js": "*",
"utils": "*"
},
"devDependencies": {
"@next/bundle-analyzer": "^12.1.0",
"@next/bundle-analyzer": "^12.1.4",
"@types/aos": "^3.0.4",
"@types/node": "^17.0.21",
"@types/react": "^17.0.40",
"autoprefixer": "^10.4.2",
"@types/node": "^17.0.23",
"@types/react": "^17.0.43",
"autoprefixer": "^10.4.4",
"cross-env": "^7.0.3",
"eslint": "<8.0.0",
"prettier": "^2.5.1",
"typescript": "^4.6.2"
"prettier": "^2.6.1",
"typescript": "^4.6.3"
}
}

View File

@ -16,7 +16,6 @@ import { SocialMetaTags } from 'components/common/SocialMetaTags'
import { BackgroundPolygons } from 'components/Homepage/Hero/BackgroundPolygons'
import { PricingCard } from 'components/PricingPage/PricingCard'
import { ActionButton } from 'components/PricingPage/PricingCard/ActionButton'
import Head from 'next/head'
import { useEffect, useState } from 'react'
const Pricing = () => {

View File

@ -1,5 +1,3 @@
import React from 'react'
export const NotFoundPage = () => (
<div
style={{

View File

@ -12,33 +12,33 @@
"test:open": "PWDEBUG=1 yarn playwright test"
},
"dependencies": {
"@sentry/nextjs": "^6.18.2",
"@sentry/nextjs": "^6.19.3",
"bot-engine": "*",
"cors": "^2.8.5",
"cuid": "^2.1.8",
"db": "*",
"google-spreadsheet": "^3.2.0",
"got": "^12.0.1",
"got": "^12.0.3",
"models": "*",
"next": "^12.1.0",
"nodemailer": "^6.7.2",
"next": "^12.1.4",
"nodemailer": "^6.7.3",
"qs": "^6.10.3",
"utils": "*",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"utils": "*"
"react-dom": "^17.0.2"
},
"devDependencies": {
"@playwright/test": "^1.19.2",
"@playwright/test": "^1.20.2",
"@types/cors": "^2.8.12",
"@types/google-spreadsheet": "^3.1.5",
"@types/node": "^17.0.21",
"@types/google-spreadsheet": "^3.2.0",
"@types/node": "^17.0.23",
"@types/nodemailer": "^6.4.4",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.40",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@types/react": "^17.0.43",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"eslint": "<8.0.0",
"eslint-config-next": "12.1.0",
"eslint-config-next": "12.1.4",
"next-transpile-modules": "^9.0.0",
"typescript": "^4.6.2"
"typescript": "^4.6.3"
}
}

View File

@ -1,5 +0,0 @@
import React from 'react'
import { NotFoundPage } from '../layouts/NotFoundPage'
const NotFoundErrorPage = () => <NotFoundPage />
export default NotFoundErrorPage

View File

@ -1,8 +1,17 @@
import NextErrorComponent from 'next/error'
import * as Sentry from '@sentry/nextjs'
import { NextPageContext } from 'next'
const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
const MyError = ({
statusCode,
hasGetInitialPropsRun,
err,
}: {
statusCode: number
hasGetInitialPropsRun: boolean
err: Error
}) => {
if (!hasGetInitialPropsRun && err) {
// getInitialProps is not called in case of
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
@ -14,13 +23,15 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
return <NextErrorComponent statusCode={statusCode} />
}
MyError.getInitialProps = async (context) => {
MyError.getInitialProps = async (context: NextPageContext) => {
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
const { res, err, asPath } = context
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
// getInitialProps has run
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
errorInitialProps.hasGetInitialPropsRun = true
// Returning early because we don't want to log 404 errors to Sentry.

View File

@ -15,14 +15,9 @@
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"composite": true
"composite": true,
"downlevelIteration": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"pages/404.js",
"pages/_error.js"
],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

View File

@ -18,7 +18,7 @@
"db:migrate": "yarn workspace db migration:deploy"
},
"devDependencies": {
"turbo": "^1.1.6"
"turbo": "^1.1.10"
},
"packageManager": "yarn@1.22.17"
}

View File

@ -10,33 +10,33 @@
"models": "*",
"qs": "^6.10.3",
"react-frame-component": "5.2.2-alpha.1",
"react-phone-number-input": "^3.1.46",
"react-phone-number-input": "^3.1.49",
"react-scroll": "^1.8.6",
"react-transition-group": "^4.4.2",
"utils": "*"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.1",
"@types/react": "^17.0.40",
"@types/react": "^17.0.43",
"@types/react-phone-number-input": "^3.0.13",
"@types/react-scroll": "^1.8.3",
"@types/react-transition-group": "^4.4.4",
"autoprefixer": "^10.4.2",
"autoprefixer": "^10.4.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.8",
"rollup": "^2.70.0",
"postcss": "^8.4.12",
"rollup": "^2.70.1",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"tailwindcss": "^3.0.23",
"typescript": "^4.6.2",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"typescript": "^4.6.3",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"eslint": "<8.0.0",
"eslint-config-next": "12.1.0",
"eslint-config-next": "12.1.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"tslib": "^2.3.1"

View File

@ -5,13 +5,13 @@
"main": "./index.ts",
"types": "./index.ts",
"devDependencies": {
"prisma": "^3.10.0",
"prisma": "^3.11.1",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"dotenv-cli": "5.0.0"
"typescript": "^4.6.3",
"dotenv-cli": "5.1.0"
},
"dependencies": {
"@prisma/client": "^3.10.0"
"@prisma/client": "^3.11.1"
},
"scripts": {
"dx": "dotenv -e ../../apps/builder/.env.local prisma db push && yarn generate:schema && yarn start:sutdio ",

View File

@ -6,10 +6,10 @@
"license": "AGPL-3.0-or-later",
"private": true,
"devDependencies": {
"typescript": "^4.6.2"
"typescript": "^4.6.3"
},
"dependencies": {
"next": "^12.1.0",
"next": "^12.1.4",
"db": "*"
},
"scripts": {

View File

@ -12,18 +12,18 @@
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.1",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"eslint": "<8.0.0",
"eslint-plugin-functional": "^4.2.0",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"rollup": "^2.70.0",
"rollup": "^2.70.1",
"rollup-plugin-styles": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.1.3",
"ts-jest": "^27.1.4",
"ts-loader": "^9.2.8",
"typescript": "^4.6.2"
"typescript": "^4.6.3"
}
}

View File

@ -7,18 +7,18 @@
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.1",
"rollup": "^2.70.0",
"rollup": "^2.70.1",
"rollup-plugin-dts": "^4.2.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tslib": "^2.3.1",
"typescript": "^4.6.2"
"typescript": "^4.6.3"
},
"dependencies": {
"models": "*",
"next": "^12.1.0"
"next": "^12.1.4"
},
"scripts": {
"build": "yarn rollup -c",

3050
yarn.lock

File diff suppressed because it is too large Load Diff