2
0

docs(lp): 💄 Refont LP for v2

This commit is contained in:
Baptiste Arnaud
2022-03-17 14:37:00 +01:00
parent c437211327
commit 21e926a477
131 changed files with 2834 additions and 3260 deletions

View File

@@ -1,9 +1,9 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import React, { useMemo } from 'react'
import React, { CSSProperties, useMemo } from 'react'
import { TypebotContext } from '../contexts/TypebotContext'
import Frame from 'react-frame-component'
//@ts-ignore
import style from '../assets/style.css'
import styles from '../assets/style.css'
//@ts-ignore
import phoneNumberInputStyle from 'react-phone-number-input/style.css'
//@ts-ignore
@@ -25,6 +25,7 @@ export type TypebotViewerProps = {
typebot: PublicTypebot
isPreview?: boolean
apiHost?: string
style?: CSSProperties
onNewBlockVisible?: (edge: Edge) => void
onNewAnswer?: (answer: Answer) => void
onNewLog?: (log: Omit<Log, 'id' | 'createdAt' | 'resultId'>) => void
@@ -35,6 +36,7 @@ export const TypebotViewer = ({
typebot,
apiHost = process.env.NEXT_PUBLIC_VIEWER_URL,
isPreview = false,
style,
onNewLog,
onNewBlockVisible,
onNewAnswer,
@@ -67,13 +69,13 @@ export const TypebotViewer = ({
<style>
{phoneNumberInputStyle}
{phoneSyle}
{style}
{styles}
{typebot.theme?.customCss}
{importantStyles}
</style>
}
name="Typebot viewer"
style={{ width: '100%', height: '100%', border: 'none' }}
style={{ width: '100%', height: '100%', border: 'none', ...style }}
>
<style
dangerouslySetInnerHTML={{

View File

@@ -1,6 +1,6 @@
{
"name": "wordpress",
"version": "2.1.0",
"version": "2.1.1",
"main": "index.js",
"repository": "https://github.com/typebot-io/wordpress.git",
"author": "baptisteArno",
@@ -10,7 +10,7 @@
},
"scripts": {
"deploy": "yarn copy && yarn commit",
"copy": "svn copy ./trunk ./tags/2.1.0",
"commit": "svn ci -m 'Switch to URL only'"
"copy": "svn copy ./trunk ./tags/2.1.1",
"commit": "svn ci -m 'Deploy 2.1'"
}
}

View File

@@ -5,7 +5,7 @@ Requires at least: 5.0
Tested up to: 5.9.1
License: GPL 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Stable Tag: 2.0.0
Stable Tag: 2.1.1
Build beautiful conversational forms

View File

@@ -3,7 +3,7 @@
/**
* Plugin Name: Typebot
* Description: Convert more with conversational forms
* Version: 2.1.0
* Version: 2.1.1
* Author: Typebot
* Author URI: http://typebot.io/
* License: GPL-2.0+
@@ -16,7 +16,7 @@ if (!defined('WPINC')) {
die();
}
define('TYPEBOT_VERSION', '2.1.0');
define('TYPEBOT_VERSION', '2.1.1');
function activate_typebot()
{