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

@@ -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 = () => {