⬆️ Upgrade dependencies
This commit is contained in:
@@ -15,10 +15,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/anatomy": "^2.1.1",
|
"@chakra-ui/anatomy": "^2.1.1",
|
||||||
"@chakra-ui/css-reset": "2.0.11",
|
"@chakra-ui/css-reset": "2.0.11",
|
||||||
"@chakra-ui/react": "2.4.6",
|
"@chakra-ui/react": "2.4.8",
|
||||||
"@chakra-ui/theme-tools": "^2.0.16",
|
"@chakra-ui/theme-tools": "^2.0.16",
|
||||||
"@codemirror/lang-css": "6.0.1",
|
"@codemirror/lang-css": "6.0.1",
|
||||||
"@codemirror/lang-html": "6.4.0",
|
"@codemirror/lang-html": "6.4.1",
|
||||||
"@codemirror/lang-javascript": "6.1.2",
|
"@codemirror/lang-javascript": "6.1.2",
|
||||||
"@codemirror/lang-json": "6.0.1",
|
"@codemirror/lang-json": "6.0.1",
|
||||||
"@codemirror/lint": "6.1.0",
|
"@codemirror/lint": "6.1.0",
|
||||||
@@ -29,29 +29,29 @@
|
|||||||
"@dnd-kit/utilities": "3.2.1",
|
"@dnd-kit/utilities": "3.2.1",
|
||||||
"@emotion/react": "11.10.5",
|
"@emotion/react": "11.10.5",
|
||||||
"@emotion/styled": "11.10.5",
|
"@emotion/styled": "11.10.5",
|
||||||
"@faire/mjml-react": "3.0.1",
|
"@faire/mjml-react": "3.0.2",
|
||||||
"@giphy/js-fetch-api": "4.7.1",
|
"@giphy/js-fetch-api": "4.7.1",
|
||||||
"@giphy/js-types": "4.4.0",
|
"@giphy/js-types": "4.4.0",
|
||||||
"@giphy/react-components": "6.5.1",
|
"@giphy/react-components": "6.5.1",
|
||||||
"@googleapis/drive": "4.0.1",
|
"@googleapis/drive": "4.0.1",
|
||||||
"@lezer/css": "^1.1.1",
|
"@lezer/css": "^1.1.1",
|
||||||
"@sentry/nextjs": "7.29.0",
|
"@sentry/nextjs": "7.30.0",
|
||||||
"@stripe/stripe-js": "1.46.0",
|
"@stripe/stripe-js": "1.46.0",
|
||||||
"@tanstack/react-query": "^4.20.9",
|
"@tanstack/react-query": "^4.22.0",
|
||||||
"@tanstack/react-table": "8.7.4",
|
"@tanstack/react-table": "8.7.6",
|
||||||
"@trpc/client": "10.8.1",
|
"@trpc/client": "10.9.0",
|
||||||
"@trpc/next": "10.8.1",
|
"@trpc/next": "10.9.0",
|
||||||
"@trpc/react-query": "10.8.1",
|
"@trpc/react-query": "10.9.0",
|
||||||
"@trpc/server": "10.8.1",
|
"@trpc/server": "10.9.0",
|
||||||
"@udecode/plate-basic-marks": "18.15.0",
|
"@udecode/plate-basic-marks": "19.0.3",
|
||||||
"@udecode/plate-common": "^7.0.2",
|
"@udecode/plate-common": "^7.0.2",
|
||||||
"@udecode/plate-core": "18.15.0",
|
"@udecode/plate-core": "19.0.3",
|
||||||
"@udecode/plate-link": "18.15.0",
|
"@udecode/plate-link": "19.0.3",
|
||||||
"@udecode/plate-serializer-html": "18.15.0",
|
"@udecode/plate-serializer-html": "19.0.3",
|
||||||
"@udecode/plate-ui-link": "18.15.0",
|
"@udecode/plate-ui-link": "19.0.3",
|
||||||
"@udecode/plate-ui-toolbar": "18.15.0",
|
"@udecode/plate-ui-toolbar": "19.0.3",
|
||||||
"@use-gesture/react": "^10.2.23",
|
"@use-gesture/react": "^10.2.23",
|
||||||
"aws-sdk": "2.1290.0",
|
"aws-sdk": "2.1295.0",
|
||||||
"bot-engine": "workspace:*",
|
"bot-engine": "workspace:*",
|
||||||
"browser-image-compression": "2.0.0",
|
"browser-image-compression": "2.0.0",
|
||||||
"canvas-confetti": "1.6.0",
|
"canvas-confetti": "1.6.0",
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
"emails": "workspace:*",
|
"emails": "workspace:*",
|
||||||
"emojilib": "3.0.8",
|
"emojilib": "3.0.8",
|
||||||
"focus-visible": "5.2.0",
|
"focus-visible": "5.2.0",
|
||||||
"framer-motion": "8.2.4",
|
"framer-motion": "8.4.3",
|
||||||
"google-auth-library": "8.7.0",
|
"google-auth-library": "8.7.0",
|
||||||
"google-spreadsheet": "3.3.0",
|
"google-spreadsheet": "3.3.0",
|
||||||
"got": "12.5.3",
|
"got": "12.5.3",
|
||||||
@@ -74,13 +74,13 @@
|
|||||||
"micro": "10.0.1",
|
"micro": "10.0.1",
|
||||||
"micro-cors": "0.1.1",
|
"micro-cors": "0.1.1",
|
||||||
"minio": "7.0.32",
|
"minio": "7.0.32",
|
||||||
"next": "13.1.1",
|
"next": "13.1.2",
|
||||||
"next-auth": "4.18.8",
|
"next-auth": "4.18.8",
|
||||||
"nextjs-cors": "^2.1.2",
|
"nextjs-cors": "^2.1.2",
|
||||||
"nodemailer": "6.8.0",
|
"nodemailer": "6.9.0",
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"papaparse": "5.3.2",
|
"papaparse": "5.3.2",
|
||||||
"prettier": "2.8.2",
|
"prettier": "2.8.3",
|
||||||
"qs": "6.11.0",
|
"qs": "6.11.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
"tinycolor2": "1.5.2",
|
"tinycolor2": "1.5.2",
|
||||||
"trpc-openapi": "1.1.1",
|
"trpc-openapi": "1.1.1",
|
||||||
"typebot-js": "workspace:*",
|
"typebot-js": "workspace:*",
|
||||||
"use-debounce": "9.0.2"
|
"use-debounce": "9.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.20.12",
|
"@babel/core": "7.20.12",
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
"@playwright/test": "1.29.2",
|
"@playwright/test": "1.29.2",
|
||||||
"@types/canvas-confetti": "1.6.0",
|
"@types/canvas-confetti": "1.6.0",
|
||||||
"@types/google-spreadsheet": "3.3.0",
|
"@types/google-spreadsheet": "3.3.0",
|
||||||
"@types/jsonwebtoken": "9.0.0",
|
"@types/jsonwebtoken": "9.0.1",
|
||||||
"@types/micro-cors": "0.1.2",
|
"@types/micro-cors": "0.1.2",
|
||||||
"@types/minio": "7.0.15",
|
"@types/minio": "7.0.15",
|
||||||
"@types/node": "18.11.18",
|
"@types/node": "18.11.18",
|
||||||
|
|||||||
@@ -10,18 +10,18 @@
|
|||||||
"analyze": "cross-env ANALYZE=true next build"
|
"analyze": "cross-env ANALYZE=true next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/icon": "3.0.14",
|
"@chakra-ui/icon": "3.0.15",
|
||||||
"@chakra-ui/react": "2.4.6",
|
"@chakra-ui/react": "2.4.8",
|
||||||
"@emotion/react": "11.10.5",
|
"@emotion/react": "11.10.5",
|
||||||
"@emotion/styled": "11.10.5",
|
"@emotion/styled": "11.10.5",
|
||||||
"@vercel/analytics": "0.1.6",
|
"@vercel/analytics": "0.1.8",
|
||||||
"aos": "2.3.4",
|
"aos": "2.3.4",
|
||||||
"bot-engine": "workspace:*",
|
"bot-engine": "workspace:*",
|
||||||
"db": "workspace:*",
|
"db": "workspace:*",
|
||||||
"focus-visible": "5.2.0",
|
"focus-visible": "5.2.0",
|
||||||
"framer-motion": "8.2.4",
|
"framer-motion": "8.4.3",
|
||||||
"models": "workspace:*",
|
"models": "workspace:*",
|
||||||
"next": "13.1.1",
|
"next": "13.1.2",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"utils": "workspace:*"
|
"utils": "workspace:*"
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.20.12",
|
"@babel/core": "7.20.12",
|
||||||
"@chakra-ui/styled-system": "2.5.1",
|
"@chakra-ui/styled-system": "2.5.1",
|
||||||
"@next/bundle-analyzer": "13.1.1",
|
"@next/bundle-analyzer": "13.1.2",
|
||||||
"@types/aos": "3.0.4",
|
"@types/aos": "3.0.4",
|
||||||
"@types/node": "18.11.18",
|
"@types/node": "18.11.18",
|
||||||
"@types/react": "18.0.26",
|
"@types/react": "18.0.26",
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
"eslint-config-custom": "workspace:*",
|
"eslint-config-custom": "workspace:*",
|
||||||
"next-transpile-modules": "10.0.0",
|
"next-transpile-modules": "10.0.0",
|
||||||
"postcss": "8.4.21",
|
"postcss": "8.4.21",
|
||||||
"prettier": "2.8.2",
|
"prettier": "2.8.3",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "4.9.4"
|
"typescript": "4.9.4"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,19 +13,19 @@
|
|||||||
"test:report": "pnpm playwright show-report"
|
"test:report": "pnpm playwright show-report"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/nextjs": "7.29.0",
|
"@sentry/nextjs": "7.30.0",
|
||||||
"@trpc/server": "10.8.1",
|
"@trpc/server": "10.9.0",
|
||||||
"@typebot.io/react": "workspace:*",
|
"@typebot.io/react": "workspace:*",
|
||||||
"aws-sdk": "2.1290.0",
|
"aws-sdk": "2.1295.0",
|
||||||
"bot-engine": "workspace:*",
|
"bot-engine": "workspace:*",
|
||||||
"cors": "2.8.5",
|
"cors": "2.8.5",
|
||||||
"cuid": "2.1.8",
|
"cuid": "2.1.8",
|
||||||
"db": "workspace:*",
|
"db": "workspace:*",
|
||||||
"google-spreadsheet": "3.3.0",
|
"google-spreadsheet": "3.3.0",
|
||||||
"got": "12.5.3",
|
"got": "12.5.3",
|
||||||
"next": "13.1.1",
|
"next": "13.1.2",
|
||||||
"nextjs-cors": "^2.1.2",
|
"nextjs-cors": "^2.1.2",
|
||||||
"nodemailer": "6.8.0",
|
"nodemailer": "6.9.0",
|
||||||
"phone": "^3.1.32",
|
"phone": "^3.1.32",
|
||||||
"qs": "6.11.0",
|
"qs": "6.11.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "7.20.2",
|
"@babel/preset-env": "7.20.2",
|
||||||
"@faire/mjml-react": "3.0.1",
|
"@faire/mjml-react": "3.0.2",
|
||||||
"@playwright/test": "1.29.2",
|
"@playwright/test": "1.29.2",
|
||||||
"@types/cors": "2.8.13",
|
"@types/cors": "2.8.13",
|
||||||
"@types/google-spreadsheet": "3.3.0",
|
"@types/google-spreadsheet": "3.3.0",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { ExecuteIntegrationResponse } from '@/features/chat'
|
|||||||
import { saveErrorLog, saveSuccessLog } from '@/features/logs/api'
|
import { saveErrorLog, saveSuccessLog } from '@/features/logs/api'
|
||||||
import { parseVariables } from '@/features/variables'
|
import { parseVariables } from '@/features/variables'
|
||||||
import prisma from '@/lib/prisma'
|
import prisma from '@/lib/prisma'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { DefaultBotNotificationEmail } from 'emails'
|
import { DefaultBotNotificationEmail } from 'emails'
|
||||||
import {
|
import {
|
||||||
PublicTypebot,
|
PublicTypebot,
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ import { getTestAsset } from '@/test/utils/playwright'
|
|||||||
|
|
||||||
const mockSmtpCredentials: SmtpCredentialsData = {
|
const mockSmtpCredentials: SmtpCredentialsData = {
|
||||||
from: {
|
from: {
|
||||||
email: 'timmy.schaden@ethereal.email',
|
email: 'ted.kreiger@ethereal.email',
|
||||||
name: 'Timmy Schaden',
|
name: 'Ted Kreiger',
|
||||||
},
|
},
|
||||||
host: 'smtp.ethereal.email',
|
host: 'smtp.ethereal.email',
|
||||||
port: 587,
|
port: 587,
|
||||||
username: 'timmy.schaden@ethereal.email',
|
username: 'ted.kreiger@ethereal.email',
|
||||||
password: 'u4vvSdyyvVsaVmJ27G',
|
password: 'bFYFHfWjFxB9MK28zS',
|
||||||
}
|
}
|
||||||
|
|
||||||
test.beforeAll(async () => {
|
test.beforeAll(async () => {
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import { getTestAsset } from '@/test/utils/playwright'
|
|||||||
|
|
||||||
const mockSmtpCredentials: SmtpCredentialsData = {
|
const mockSmtpCredentials: SmtpCredentialsData = {
|
||||||
from: {
|
from: {
|
||||||
email: 'marley.cummings@ethereal.email',
|
email: 'ted.kreiger@ethereal.email',
|
||||||
name: 'Marley Cummings',
|
name: 'Ted Kreiger',
|
||||||
},
|
},
|
||||||
host: 'smtp.ethereal.email',
|
host: 'smtp.ethereal.email',
|
||||||
port: 587,
|
port: 587,
|
||||||
username: 'marley.cummings@ethereal.email',
|
username: 'ted.kreiger@ethereal.email',
|
||||||
password: 'E5W1jHbAmv5cXXcut2',
|
password: 'bFYFHfWjFxB9MK28zS',
|
||||||
}
|
}
|
||||||
|
|
||||||
test.beforeAll(async () => {
|
test.beforeAll(async () => {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { saveErrorLog, saveSuccessLog } from '@/features/logs/api'
|
|||||||
import Cors from 'cors'
|
import Cors from 'cors'
|
||||||
import Mail from 'nodemailer/lib/mailer'
|
import Mail from 'nodemailer/lib/mailer'
|
||||||
import { DefaultBotNotificationEmail } from 'emails'
|
import { DefaultBotNotificationEmail } from 'emails'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import prisma from '@/lib/prisma'
|
import prisma from '@/lib/prisma'
|
||||||
import { getLinkedTypebotsChildren } from '@/features/blocks/logic/typebotLink/api'
|
import { getLinkedTypebotsChildren } from '@/features/blocks/logic/typebotLink/api'
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"cz-emoji": "1.3.2-canary.2",
|
"cz-emoji": "1.3.2-canary.2",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"turbo": "1.6.3"
|
"turbo": "1.7.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"prop-types": "15.8.1",
|
"prop-types": "15.8.1",
|
||||||
"qs": "6.11.0",
|
"qs": "6.11.0",
|
||||||
"react-frame-component": "5.2.4",
|
"react-frame-component": "5.2.4",
|
||||||
"react-phone-number-input": "3.2.15",
|
"react-phone-number-input": "3.2.16",
|
||||||
"react-scroll": "1.8.9",
|
"react-scroll": "1.8.9",
|
||||||
"react-transition-group": "4.4.5",
|
"react-transition-group": "4.4.5",
|
||||||
"resize-observer": "1.0.4"
|
"resize-observer": "1.0.4"
|
||||||
@@ -26,16 +26,16 @@
|
|||||||
"@types/qs": "6.9.7",
|
"@types/qs": "6.9.7",
|
||||||
"@types/react": "18.0.26",
|
"@types/react": "18.0.26",
|
||||||
"@types/react-phone-number-input": "3.0.14",
|
"@types/react-phone-number-input": "3.0.14",
|
||||||
"@types/react-scroll": "1.8.5",
|
"@types/react-scroll": "1.8.6",
|
||||||
"@types/react-transition-group": "4.4.5",
|
"@types/react-transition-group": "4.4.5",
|
||||||
"autoprefixer": "10.4.13",
|
"autoprefixer": "10.4.13",
|
||||||
"db": "workspace:*",
|
"db": "workspace:*",
|
||||||
"esbuild": "^0.16.15",
|
"esbuild": "^0.17.0",
|
||||||
"eslint": "8.31.0",
|
"eslint": "8.31.0",
|
||||||
"eslint-config-custom": "workspace:*",
|
"eslint-config-custom": "workspace:*",
|
||||||
"models": "workspace:*",
|
"models": "workspace:*",
|
||||||
"postcss": "8.4.21",
|
"postcss": "8.4.21",
|
||||||
"prettier": "2.8.2",
|
"prettier": "2.8.3",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"tailwindcss": "3.2.4",
|
"tailwindcss": "3.2.4",
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ export const parseReadableDate = ({
|
|||||||
minute: hasTime ? '2-digit' : undefined,
|
minute: hasTime ? '2-digit' : undefined,
|
||||||
}
|
}
|
||||||
const fromReadable = new Date(
|
const fromReadable = new Date(
|
||||||
from.replace(/-/g, '/').replace(/T.+/, '')
|
hasTime ? from : from.replace(/-/g, '/')
|
||||||
).toLocaleString(currentLocale, formatOptions)
|
).toLocaleString(currentLocale, formatOptions)
|
||||||
|
console.log(to, to.replace(/-/g, '/'))
|
||||||
const toReadable = new Date(
|
const toReadable = new Date(
|
||||||
to.replace(/-/g, '/').replace(/T.+/, '')
|
hasTime ? to : to.replace(/-/g, '/')
|
||||||
).toLocaleString(currentLocale, formatOptions)
|
).toLocaleString(currentLocale, formatOptions)
|
||||||
return `${fromReadable}${isRange ? ` to ${toReadable}` : ''}`
|
return `${fromReadable}${isRange ? ` to ${toReadable}` : ''}`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,15 +14,15 @@
|
|||||||
"author": "Baptiste Arnaud",
|
"author": "Baptiste Arnaud",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@faire/mjml-react": "3.0.1",
|
"@faire/mjml-react": "3.0.2",
|
||||||
"@types/node": "18.11.18",
|
"@types/node": "18.11.18",
|
||||||
"@types/nodemailer": "6.4.7",
|
"@types/nodemailer": "6.4.7",
|
||||||
"@types/react": "18.0.26",
|
"@types/react": "18.0.26",
|
||||||
"concurrently": "7.6.0",
|
"concurrently": "7.6.0",
|
||||||
"http-server": "14.1.1",
|
"http-server": "14.1.1",
|
||||||
"nodemailer": "6.8.0",
|
"nodemailer": "6.9.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"tsx": "3.12.1",
|
"tsx": "3.12.2",
|
||||||
"utils": "workspace:*",
|
"utils": "workspace:*",
|
||||||
"eslint": "8.31.0",
|
"eslint": "8.31.0",
|
||||||
"eslint-config-custom": "workspace:*",
|
"eslint-config-custom": "workspace:*",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { Button, Head, HeroImage, Text } from '../components'
|
import { Button, Head, HeroImage, Text } from '../components'
|
||||||
import { parseNumberWithCommas } from 'utils'
|
import { parseNumberWithCommas } from 'utils'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { Button, Head, HeroImage, Text } from '../components'
|
import { Button, Head, HeroImage, Text } from '../components'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
import { sendEmail } from '../sendEmail'
|
import { sendEmail } from '../sendEmail'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { HeroImage, Text, Button, Head } from '../components'
|
import { HeroImage, Text, Button, Head } from '../components'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
import { sendEmail } from '../sendEmail'
|
import { sendEmail } from '../sendEmail'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { Button, Head, HeroImage, Text } from '../components'
|
import { Button, Head, HeroImage, Text } from '../components'
|
||||||
import { parseNumberWithCommas } from 'utils'
|
import { parseNumberWithCommas } from 'utils'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { Button, Head, HeroImage, Text } from '../components'
|
import { Button, Head, HeroImage, Text } from '../components'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
import { sendEmail } from '../sendEmail'
|
import { sendEmail } from '../sendEmail'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
MjmlColumn,
|
MjmlColumn,
|
||||||
MjmlSpacer,
|
MjmlSpacer,
|
||||||
} from '@faire/mjml-react'
|
} from '@faire/mjml-react'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { HeroImage, Text, Button, Head } from '../components'
|
import { HeroImage, Text, Button, Head } from '../components'
|
||||||
import { SendMailOptions } from 'nodemailer'
|
import { SendMailOptions } from 'nodemailer'
|
||||||
import { sendEmail } from '../sendEmail'
|
import { sendEmail } from '../sendEmail'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React from 'react'
|
import { render } from '@faire/mjml-react/utils/render'
|
||||||
import { render } from '@faire/mjml-react/dist/src/utils/render'
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint": "8.31.0",
|
"eslint": "8.31.0",
|
||||||
"eslint-config-next": "13.1.1",
|
"eslint-config-next": "13.1.2",
|
||||||
"eslint-config-prettier": "8.6.0",
|
"eslint-config-prettier": "8.6.0",
|
||||||
"eslint-plugin-react": "7.31.11"
|
"eslint-plugin-react": "7.32.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
||||||
"@typescript-eslint/parser": "^5.48.0"
|
"@typescript-eslint/parser": "^5.48.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"models": "workspace:*",
|
"models": "workspace:*",
|
||||||
"phone": "3.1.32",
|
"phone": "3.1.32",
|
||||||
"solid-element": "1.6.3",
|
"solid-element": "1.6.3",
|
||||||
"solid-js": "1.6.8",
|
"solid-js": "1.6.9",
|
||||||
"utils": "workspace:*"
|
"utils": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -27,13 +27,13 @@
|
|||||||
"@rollup/plugin-typescript": "11.0.0",
|
"@rollup/plugin-typescript": "11.0.0",
|
||||||
"@types/react": "18.0.26",
|
"@types/react": "18.0.26",
|
||||||
"autoprefixer": "10.4.13",
|
"autoprefixer": "10.4.13",
|
||||||
"babel-preset-solid": "1.6.7",
|
"babel-preset-solid": "1.6.9",
|
||||||
"eslint": "8.31.0",
|
"eslint": "8.31.0",
|
||||||
"eslint-config-custom": "workspace:*",
|
"eslint-config-custom": "workspace:*",
|
||||||
"eslint-plugin-solid": "0.9.1",
|
"eslint-plugin-solid": "0.9.2",
|
||||||
"postcss": "8.4.21",
|
"postcss": "8.4.21",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"rollup": "3.9.1",
|
"rollup": "3.10.0",
|
||||||
"rollup-plugin-babel": "4.4.0",
|
"rollup-plugin-babel": "4.4.0",
|
||||||
"rollup-plugin-dts": "5.1.1",
|
"rollup-plugin-dts": "5.1.1",
|
||||||
"rollup-plugin-postcss": "4.0.2",
|
"rollup-plugin-postcss": "4.0.2",
|
||||||
|
|||||||
@@ -17,10 +17,12 @@ export const parseReadableDate = ({
|
|||||||
hour: hasTime ? '2-digit' : undefined,
|
hour: hasTime ? '2-digit' : undefined,
|
||||||
minute: hasTime ? '2-digit' : undefined,
|
minute: hasTime ? '2-digit' : undefined,
|
||||||
}
|
}
|
||||||
const fromReadable = new Date(from).toLocaleString(
|
const fromReadable = new Date(
|
||||||
currentLocale,
|
hasTime ? from : from.replace(/-/g, '/')
|
||||||
formatOptions
|
).toLocaleString(currentLocale, formatOptions)
|
||||||
)
|
console.log(to, to.replace(/-/g, '/'))
|
||||||
const toReadable = new Date(to).toLocaleString(currentLocale, formatOptions)
|
const toReadable = new Date(
|
||||||
|
hasTime ? to : to.replace(/-/g, '/')
|
||||||
|
).toLocaleString(currentLocale, formatOptions)
|
||||||
return `${fromReadable}${isRange ? ` to ${toReadable}` : ''}`
|
return `${fromReadable}${isRange ? ` to ${toReadable}` : ''}`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cuid": "2.1.8",
|
"cuid": "2.1.8",
|
||||||
"db": "workspace:*",
|
"db": "workspace:*",
|
||||||
"next": "13.1.1",
|
"next": "13.1.2",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "4.9.4"
|
"typescript": "4.9.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"tsup": "6.5.0",
|
"tsup": "6.5.0",
|
||||||
"tsx": "3.12.1",
|
"tsx": "3.12.2",
|
||||||
"typescript": "^4.9.4",
|
"typescript": "^4.9.4",
|
||||||
"utils": "workspace:*",
|
"utils": "workspace:*",
|
||||||
"models": "workspace:*"
|
"models": "workspace:*"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"models": "workspace:*",
|
"models": "workspace:*",
|
||||||
"prompts": "2.4.2",
|
"prompts": "2.4.2",
|
||||||
"stripe": "11.6.0",
|
"stripe": "11.6.0",
|
||||||
"tsx": "3.12.1",
|
"tsx": "3.12.2",
|
||||||
"typescript": "4.9.4",
|
"typescript": "4.9.4",
|
||||||
"utils": "workspace:*",
|
"utils": "workspace:*",
|
||||||
"zod": "3.20.2"
|
"zod": "3.20.2"
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
"eslint-config-custom": "workspace:*",
|
"eslint-config-custom": "workspace:*",
|
||||||
"jest": "29.3.1",
|
"jest": "29.3.1",
|
||||||
"jest-environment-jsdom": "29.3.1",
|
"jest-environment-jsdom": "29.3.1",
|
||||||
"prettier": "2.8.2",
|
"prettier": "2.8.3",
|
||||||
"ts-jest": "29.0.3",
|
"ts-jest": "29.0.5",
|
||||||
"typescript": "4.9.4",
|
"typescript": "4.9.4",
|
||||||
"tsconfig": "workspace:*"
|
"tsconfig": "workspace:*"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.29.2",
|
"@playwright/test": "1.29.2",
|
||||||
"@types/nodemailer": "6.4.7",
|
"@types/nodemailer": "6.4.7",
|
||||||
"aws-sdk": "2.1290.0",
|
"aws-sdk": "2.1295.0",
|
||||||
"cuid": "2.1.8",
|
"cuid": "2.1.8",
|
||||||
"db": "workspace:*",
|
"db": "workspace:*",
|
||||||
"dotenv": "16.0.3",
|
"dotenv": "16.0.3",
|
||||||
"models": "workspace:*",
|
"models": "workspace:*",
|
||||||
"next": "13.1.1",
|
"next": "13.1.2",
|
||||||
"nodemailer": "6.8.0",
|
"nodemailer": "6.9.0",
|
||||||
"tsconfig": "workspace:*",
|
"tsconfig": "workspace:*",
|
||||||
"typescript": "4.9.4"
|
"typescript": "4.9.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@prettier/plugin-php": "0.19.2",
|
"@prettier/plugin-php": "0.19.2",
|
||||||
"prettier": "2.8.2"
|
"prettier": "2.8.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "pnpm copy && pnpm commit",
|
"deploy": "pnpm copy && pnpm commit",
|
||||||
|
|||||||
2477
pnpm-lock.yaml
generated
2477
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user