Skip to content

Commit

Permalink
♻️ Simplify text bubble content shape
Browse files Browse the repository at this point in the history
Remove html and plainText field because it was redundant

Closes #386
  • Loading branch information
baptisteArno committed Apr 13, 2023
1 parent 2cbf834 commit 0ff1f7e
Show file tree
Hide file tree
Showing 68 changed files with 542 additions and 1,031 deletions.
48 changes: 12 additions & 36 deletions apps/builder/public/bots/onboarding-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,19 @@
"id": "cl1267q2c000e2e6dynjeg83n",
"type": "text",
"content": {
"html": "<div>Welcome 👋</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Welcome 👋" }] }
],
"plainText": "Welcome 👋"
]
},
"groupId": "clcueadzi00063b6sch7b1f32"
},
{
"id": "cl1267y1u000f2e6d4rlglv6g",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
},
"groupId": "clcueadzi00063b6sch7b1f32"
},
Expand Down Expand Up @@ -95,19 +91,16 @@
"id": "cl1266v6f000a2e6db7wj3ux7",
"type": "text",
"content": {
"html": "<div>Welcome {{Name}} 👋</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Welcome {{Name}} 👋" }] }
],
"plainText": "Welcome {{Name}} 👋"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126hb9m000l2e6d5qk3mohn",
"type": "text",
"content": {
"html": "<div>I&#x27;m super pumped that you&#x27;ve decided to try out Typebot 😍</div>",
"richText": [
{
"type": "p",
Expand All @@ -117,16 +110,14 @@
}
]
}
],
"plainText": "I'm super pumped that you've decided to try out Typebot 😍"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126hpw1000m2e6dneousygl",
"type": "text",
"content": {
"html": "<div>You are small steps away from meaningful, hyper-personalized experience for your users</div>",
"richText": [
{
"type": "p",
Expand All @@ -136,40 +127,35 @@
}
]
}
],
"plainText": "You are small steps away from meaningful, hyper-personalized experience for your users"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126guhd000k2e6d6ypkex9z",
"type": "text",
"content": {
"html": "<div>Let&#x27;s get you set up for your Typebot journey.</div>",
"richText": [
{
"type": "p",
"children": [
{ "text": "Let's get you set up for your Typebot journey." }
]
}
],
"plainText": "Let's get you set up for your Typebot journey."
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126ixp9000q2e6dslh0zypi",
"type": "text",
"content": {
"html": "<div>Do you work for a specific company?</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Do you work for a specific company?" }]
}
],
"plainText": "Do you work for a specific company?"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
Expand Down Expand Up @@ -219,7 +205,6 @@
"id": "cl126krck00112e6d1m6ctxpn",
"type": "text",
"content": {
"html": "<div>What type of bots are you planning to build with Typebot?</div>",
"richText": [
{
"type": "p",
Expand All @@ -229,8 +214,7 @@
}
]
}
],
"plainText": "What type of bots are you planning to build with Typebot?"
]
},
"groupId": "clcueadzi00093b6s82ivles8"
},
Expand Down Expand Up @@ -330,16 +314,14 @@
"id": "cl126p76d001k2e6dbhnf2ysq",
"type": "text",
"content": {
"html": "<div>Thank you for answering those questions!</div>",
"richText": [
{
"type": "p",
"children": [
{ "text": "Thank you for answering those questions!" }
]
}
],
"plainText": "Thank you for answering those questions!"
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
},
Expand All @@ -355,7 +337,6 @@
"id": "cl126txta001y2e6dtxrbsnek",
"type": "text",
"content": {
"html": "<div>You can reach out to me using the contact bubble on the bottom right corner 🤓</div>",
"richText": [
{
"type": "p",
Expand All @@ -365,23 +346,20 @@
}
]
}
],
"plainText": "You can reach out to me using the contact bubble on the bottom right corner 🤓"
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
},
{
"id": "cl12buyly00172e6991bz38ch",
"type": "text",
"content": {
"html": "<div>Let&#x27;s create your first typebot...</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Let's create your first typebot..." }]
}
],
"plainText": "Let's create your first typebot..."
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
}
Expand All @@ -396,11 +374,9 @@
"id": "cl127yxym000b2e6d9hksxo6h",
"type": "text",
"content": {
"html": "<div>What else?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What else?" }] }
],
"plainText": "What else?"
]
},
"groupId": "clcueadzi000b3b6sv6936vs4"
},
Expand Down
48 changes: 12 additions & 36 deletions apps/builder/public/bots/onboarding.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,19 @@
"id": "cl1267q2c000e2e6dynjeg83n",
"type": "text",
"content": {
"html": "<div>Welcome 👋</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Welcome 👋" }] }
],
"plainText": "Welcome 👋"
]
},
"groupId": "clcueadzi00063b6sch7b1f32"
},
{
"id": "cl1267y1u000f2e6d4rlglv6g",
"type": "text",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What's your name?" }] }
],
"plainText": "What's your name?"
]
},
"groupId": "clcueadzi00063b6sch7b1f32"
},
Expand Down Expand Up @@ -95,19 +91,16 @@
"id": "cl1266v6f000a2e6db7wj3ux7",
"type": "text",
"content": {
"html": "<div>Welcome {{Name}} 👋</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Welcome {{Name}} 👋" }] }
],
"plainText": "Welcome {{Name}} 👋"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126hb9m000l2e6d5qk3mohn",
"type": "text",
"content": {
"html": "<div>I&#x27;m super pumped that you&#x27;ve decided to try out Typebot 😍</div>",
"richText": [
{
"type": "p",
Expand All @@ -117,16 +110,14 @@
}
]
}
],
"plainText": "I'm super pumped that you've decided to try out Typebot 😍"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126hpw1000m2e6dneousygl",
"type": "text",
"content": {
"html": "<div>You are small steps away from meaningful, hyper-personalized experience for your users</div>",
"richText": [
{
"type": "p",
Expand All @@ -136,40 +127,35 @@
}
]
}
],
"plainText": "You are small steps away from meaningful, hyper-personalized experience for your users"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126guhd000k2e6d6ypkex9z",
"type": "text",
"content": {
"html": "<div>Let&#x27;s get you set up for your Typebot journey.</div>",
"richText": [
{
"type": "p",
"children": [
{ "text": "Let's get you set up for your Typebot journey." }
]
}
],
"plainText": "Let's get you set up for your Typebot journey."
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
{
"id": "cl126ixp9000q2e6dslh0zypi",
"type": "text",
"content": {
"html": "<div>Do you work for a specific company?</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Do you work for a specific company?" }]
}
],
"plainText": "Do you work for a specific company?"
]
},
"groupId": "clcueadzi00073b6sqz8n5vxp"
},
Expand Down Expand Up @@ -219,7 +205,6 @@
"id": "cl126krck00112e6d1m6ctxpn",
"type": "text",
"content": {
"html": "<div>What type of bots are you planning to build with Typebot?</div>",
"richText": [
{
"type": "p",
Expand All @@ -229,8 +214,7 @@
}
]
}
],
"plainText": "What type of bots are you planning to build with Typebot?"
]
},
"groupId": "clcueadzi00093b6s82ivles8"
},
Expand Down Expand Up @@ -330,16 +314,14 @@
"id": "cl126p76d001k2e6dbhnf2ysq",
"type": "text",
"content": {
"html": "<div>Thank you for answering those questions!</div>",
"richText": [
{
"type": "p",
"children": [
{ "text": "Thank you for answering those questions!" }
]
}
],
"plainText": "Thank you for answering those questions!"
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
},
Expand All @@ -355,7 +337,6 @@
"id": "cl126txta001y2e6dtxrbsnek",
"type": "text",
"content": {
"html": "<div>You can reach out to me using the contact bubble on the bottom right corner 🤓</div>",
"richText": [
{
"type": "p",
Expand All @@ -365,23 +346,20 @@
}
]
}
],
"plainText": "You can reach out to me using the contact bubble on the bottom right corner 🤓"
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
},
{
"id": "cl12buyly00172e6991bz38ch",
"type": "text",
"content": {
"html": "<div>Let&#x27;s create your first typebot...</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "Let's create your first typebot..." }]
}
],
"plainText": "Let's create your first typebot..."
]
},
"groupId": "clcueadzi000a3b6spk404zpz"
}
Expand All @@ -396,11 +374,9 @@
"id": "cl127yxym000b2e6d9hksxo6h",
"type": "text",
"content": {
"html": "<div>What else?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "What else?" }] }
],
"plainText": "What else?"
]
},
"groupId": "clcueadzi000b3b6sv6936vs4"
},
Expand Down
Loading

2 comments on commit 0ff1f7e

@vercel
Copy link

@vercel vercel bot commented on 0ff1f7e Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0ff1f7e Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app
docs.typebot.io

Please sign in to comment.