build: add pnpm
This commit is contained in:
@ -6,53 +6,59 @@
|
||||
"module": "dist/esm/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"dependencies": {
|
||||
"@stripe/react-stripe-js": "^1.8.0",
|
||||
"db": "*",
|
||||
"models": "*",
|
||||
"qs": "^6.10.3",
|
||||
"@stripe/react-stripe-js": "1.10.0",
|
||||
"@stripe/stripe-js": "1.35.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"qs": "^6.11.0",
|
||||
"react-frame-component": "5.2.3",
|
||||
"react-phone-number-input": "^3.1.52",
|
||||
"react-phone-number-input": "3.2.6",
|
||||
"react-scroll": "^1.8.7",
|
||||
"react-transition-group": "^4.4.2",
|
||||
"resize-observer": "^1.0.4",
|
||||
"utils": "*"
|
||||
"react-transition-group": "4.4.5",
|
||||
"resize-observer": "^1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^22.0.0",
|
||||
"@rollup/plugin-commonjs": "22.0.2",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@rollup/plugin-typescript": "^8.3.2",
|
||||
"@rollup/plugin-typescript": "8.3.4",
|
||||
"@types/qs": "^6.9.7",
|
||||
"@types/react": "^18.0.9",
|
||||
"@types/react-phone-number-input": "^3.0.13",
|
||||
"@types/react-scroll": "^1.8.3",
|
||||
"@types/react-transition-group": "^4.4.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
||||
"autoprefixer": "^10.4.7",
|
||||
"eslint": "<8.0.0",
|
||||
"eslint-config-next": "12.1.6",
|
||||
"@types/react": "18.0.17",
|
||||
"@types/react-phone-number-input": "^3.0.14",
|
||||
"@types/react-scroll": "^1.8.4",
|
||||
"@types/react-transition-group": "^4.4.5",
|
||||
"@typescript-eslint/eslint-plugin": "5.33.0",
|
||||
"@typescript-eslint/parser": "5.33.0",
|
||||
"autoprefixer": "10.4.8",
|
||||
"db": "workspace:*",
|
||||
"eslint": "8.21.0",
|
||||
"eslint-config-next": "12.2.4",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss": "^8.4.13",
|
||||
"rollup": "^2.72.1",
|
||||
"rollup-plugin-dts": "^4.2.1",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"models": "workspace:*",
|
||||
"postcss": "8.4.16",
|
||||
"prettier": "2.7.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"rollup": "2.77.2",
|
||||
"rollup-plugin-dts": "^4.2.2",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||
"rollup-plugin-postcss": "^4.0.2",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"tailwindcss": "^3.0.24",
|
||||
"tailwindcss": "3.1.8",
|
||||
"tslib": "^2.4.0",
|
||||
"typescript": "^4.6.4"
|
||||
"typescript": "^4.7.4",
|
||||
"utils": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.1.0",
|
||||
"utils": "*",
|
||||
"db": "*",
|
||||
"models": "*"
|
||||
"db": "workspace:*",
|
||||
"models": "workspace:*",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"utils": "workspace:*"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "yarn rollup -c",
|
||||
"dx": "yarn rollup -c --watch",
|
||||
"build": "pnpm rollup -c",
|
||||
"dx": "pnpm rollup -c --watch",
|
||||
"lint": "eslint --fix -c ./.eslintrc.js \"./src/**/*.ts*\""
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ export default [
|
||||
],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/types/src/index.d.ts',
|
||||
input: 'dist/esm/src/index.d.ts',
|
||||
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
|
||||
plugins: [dts()],
|
||||
external: [/\.css$/],
|
||||
|
@ -13,10 +13,8 @@ export const LiteBadge = () => {
|
||||
const observer = new MutationObserver(function (mutations_list) {
|
||||
mutations_list.forEach(function (mutation) {
|
||||
mutation.removedNodes.forEach(function (removed_node) {
|
||||
if ((removed_node as HTMLElement).id == 'lite-badge') {
|
||||
console.log('litebadge has been removed')
|
||||
if ((removed_node as HTMLElement).id == 'lite-badge')
|
||||
container.append(liteBadge.current as Node)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -21,7 +21,7 @@ import {
|
||||
} from 'models'
|
||||
import { Log } from 'db'
|
||||
import { LiteBadge } from './LiteBadge'
|
||||
import { env, isEmpty } from 'utils'
|
||||
import { getViewerUrl, isEmpty } from 'utils'
|
||||
|
||||
export type TypebotViewerProps = {
|
||||
typebot: PublicTypebot
|
||||
@ -41,7 +41,7 @@ export type TypebotViewerProps = {
|
||||
|
||||
export const TypebotViewer = ({
|
||||
typebot,
|
||||
apiHost = env('VIEWER_URL')?.split(',')[0],
|
||||
apiHost = getViewerUrl(),
|
||||
isPreview = false,
|
||||
isLoading = false,
|
||||
style,
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2015", "DOM"],
|
||||
"target": "es5",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
Reference in New Issue
Block a user