⬆️ Upgrade dependencies
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
"@stripe/stripe-js": "1.46.0",
|
||||
"prop-types": "15.8.1",
|
||||
"qs": "6.11.0",
|
||||
"react-frame-component": "5.2.3",
|
||||
"react-frame-component": "5.2.4",
|
||||
"react-phone-number-input": "3.2.13",
|
||||
"react-scroll": "1.8.9",
|
||||
"react-transition-group": "4.4.5",
|
||||
@ -30,7 +30,7 @@
|
||||
"@types/react-transition-group": "4.4.5",
|
||||
"autoprefixer": "10.4.13",
|
||||
"db": "workspace:*",
|
||||
"esbuild": "^0.16.9",
|
||||
"esbuild": "^0.16.10",
|
||||
"eslint": "8.30.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"models": "workspace:*",
|
||||
|
@ -12,11 +12,11 @@
|
||||
"create:migration": "prisma migrate dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "4.7.1"
|
||||
"@prisma/client": "4.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dotenv-cli": "6.0.0",
|
||||
"prisma": "4.7.1",
|
||||
"prisma": "4.8.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"typescript": "4.9.4"
|
||||
}
|
||||
|
@ -3,12 +3,12 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"eslint": "8.30.0",
|
||||
"eslint-config-next": "13.0.7",
|
||||
"eslint-config-next": "13.1.1",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-react": "7.31.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
||||
"@typescript-eslint/parser": "^5.46.0"
|
||||
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
||||
"@typescript-eslint/parser": "^5.47.0"
|
||||
}
|
||||
}
|
||||
|
@ -16,27 +16,27 @@
|
||||
"@power-elements/stripe-elements": "^3.3.0",
|
||||
"@stripe/stripe-js": "1.46.0",
|
||||
"models": "workspace:*",
|
||||
"phone": "^3.1.31",
|
||||
"phone": "^3.1.32",
|
||||
"solid-element": "^1.6.3",
|
||||
"solid-js": "^1.6.5",
|
||||
"solid-js": "^1.6.6",
|
||||
"utils": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-babel": "^6.0.3",
|
||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||
"@rollup/plugin-replace": "^5.0.1",
|
||||
"@rollup/plugin-replace": "^5.0.2",
|
||||
"@rollup/plugin-typescript": "^10.0.1",
|
||||
"@types/react": "^18.0.26",
|
||||
"autoprefixer": "10.4.13",
|
||||
"babel-preset-solid": "^1.6.3",
|
||||
"eslint": "8.29.0",
|
||||
"babel-preset-solid": "^1.6.6",
|
||||
"eslint": "8.30.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"eslint-plugin-solid": "^0.9.1",
|
||||
"postcss": "8.4.20",
|
||||
"react": "^18.2.0",
|
||||
"rollup": "^3.7.4",
|
||||
"rollup": "^3.8.1",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-dts": "^5.0.0",
|
||||
"rollup-plugin-dts": "^5.1.0",
|
||||
"rollup-plugin-postcss": "^4.0.2",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-typescript-paths": "^1.4.0",
|
||||
@ -44,7 +44,7 @@
|
||||
"tsconfig": "workspace:*",
|
||||
"tsup": "6.5.0",
|
||||
"typescript": "^4.9.4",
|
||||
"vite": "^4.0.1",
|
||||
"vite": "^4.0.3",
|
||||
"vite-plugin-solid": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
"devDependencies": {
|
||||
"cuid": "2.1.8",
|
||||
"db": "workspace:*",
|
||||
"next": "13.0.7",
|
||||
"next": "13.1.1",
|
||||
"tsconfig": "workspace:*",
|
||||
"typescript": "4.9.4"
|
||||
},
|
||||
|
@ -19,10 +19,10 @@
|
||||
"got": "12.5.3",
|
||||
"models": "workspace:*",
|
||||
"prompts": "^2.4.2",
|
||||
"stripe": "11.4.0",
|
||||
"stripe": "11.5.0",
|
||||
"tsx": "3.12.1",
|
||||
"typescript": "4.9.4",
|
||||
"utils": "workspace:*",
|
||||
"zod": "3.19.1"
|
||||
"zod": "3.20.2"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
import {
|
||||
BubbleActions,
|
||||
BubbleParams,
|
||||
@ -21,8 +22,7 @@ export const initBubble = (params: BubbleParams): BubbleActions => {
|
||||
| HTMLDivElement
|
||||
| undefined
|
||||
if (existingBubble) existingBubble.remove()
|
||||
const { bubbleElement, proactiveMessageElement, iframeElement } =
|
||||
createBubble(params)
|
||||
const { bubbleElement, proactiveMessageElement } = createBubble(params)
|
||||
if (
|
||||
(params.autoOpenDelay || params.autoOpenDelay === 0) &&
|
||||
!hasBeenClosed()
|
||||
@ -33,7 +33,7 @@ export const initBubble = (params: BubbleParams): BubbleActions => {
|
||||
!document.body
|
||||
? (window.onload = () => document.body.appendChild(bubbleElement))
|
||||
: document.body.appendChild(bubbleElement)
|
||||
return getBubbleActions(bubbleElement, iframeElement, proactiveMessageElement)
|
||||
return getBubbleActions(bubbleElement, proactiveMessageElement)
|
||||
}
|
||||
|
||||
const createBubble = (
|
||||
@ -75,18 +75,12 @@ const onProactiveMessageClick = (
|
||||
|
||||
export const getBubbleActions = (
|
||||
bubbleElement?: HTMLDivElement,
|
||||
iframeElement?: HTMLIFrameElement,
|
||||
proactiveMessageElement?: HTMLDivElement
|
||||
): BubbleActions => {
|
||||
const existingBubbleElement =
|
||||
bubbleElement ??
|
||||
(document.querySelector('#typebot-bubble') as HTMLDivElement | undefined)
|
||||
if (!existingBubbleElement) return { close: () => {}, open: () => {} }
|
||||
const existingIframeElement =
|
||||
iframeElement ??
|
||||
(existingBubbleElement.querySelector(
|
||||
'.typebot-iframe'
|
||||
) as HTMLIFrameElement)
|
||||
const existingProactiveMessage =
|
||||
proactiveMessageElement ??
|
||||
document.querySelector('#typebot-bubble .proactive-message')
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
import { createIframe } from '../../iframe'
|
||||
import { PopupActions, PopupParams } from '../../types'
|
||||
import './style.css'
|
||||
|
@ -6,14 +6,14 @@
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
"devDependencies": {
|
||||
"@playwright/test": "1.29.0",
|
||||
"@playwright/test": "1.29.1",
|
||||
"@types/nodemailer": "6.4.7",
|
||||
"aws-sdk": "2.1277.0",
|
||||
"aws-sdk": "2.1282.0",
|
||||
"cuid": "2.1.8",
|
||||
"db": "workspace:*",
|
||||
"dotenv": "16.0.3",
|
||||
"models": "workspace:*",
|
||||
"next": "13.0.7",
|
||||
"next": "13.1.1",
|
||||
"nodemailer": "6.8.0",
|
||||
"tsconfig": "workspace:*",
|
||||
"typescript": "4.9.4"
|
||||
|
@ -7,7 +7,7 @@
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"devDependencies": {
|
||||
"@prettier/plugin-php": "0.19.2",
|
||||
"prettier": "2.8.0"
|
||||
"prettier": "2.8.1"
|
||||
},
|
||||
"scripts": {
|
||||
"deploy": "pnpm copy && pnpm commit",
|
||||
|
Reference in New Issue
Block a user