2
0

refactor: ♻️ Rename step to block

This commit is contained in:
Baptiste Arnaud
2022-06-11 07:27:38 +02:00
parent 8751766d0e
commit 2df8338505
297 changed files with 4292 additions and 3989 deletions

View File

@ -5,15 +5,15 @@
"name": "Onboarding",
"publishedTypebotId": "cl128n64i00092e69wenv1dlx",
"folderId": null,
"blocks": [
"groups": [
{
"id": "cl1265zct0000mb1a6bir36w7",
"steps": [
"blocks": [
{
"id": "cl1265zct0001mb1afel460do",
"type": "start",
"label": "Start",
"blockId": "cl1265zct0000mb1a6bir36w7",
"groupId": "cl1265zct0000mb1a6bir36w7",
"outgoingEdgeId": "cl1266kt100082e6d1wks5dtp"
}
],
@ -22,7 +22,7 @@
},
{
"id": "cl1266bah00032e6dgdnj4vgz",
"steps": [
"blocks": [
{
"id": "cl1266bam00042e6dm0gn22vy",
"type": "Condition",
@ -30,7 +30,7 @@
{
"id": "cl1266bam00052e6dn1sdjnax",
"type": 1,
"stepId": "cl1266bam00042e6dm0gn22vy",
"blockId": "cl1266bam00042e6dm0gn22vy",
"content": {
"comparisons": [
{
@ -44,20 +44,20 @@
"outgoingEdgeId": "cl12bk3j6000c2e69bak89ja9"
}
],
"blockId": "cl1266bah00032e6dgdnj4vgz",
"groupId": "cl1266bah00032e6dgdnj4vgz",
"outgoingEdgeId": "cl12bnfyd000g2e69g7lr3czq"
}
],
"title": "Block #1",
"title": "Group #1",
"graphCoordinates": { "x": 266, "y": 162 }
},
{
"id": "cl1267q1z000d2e6d949f2ge4",
"steps": [
"blocks": [
{
"id": "cl1267q2c000e2e6dynjeg83n",
"type": "text",
"blockId": "cl1267q1z000d2e6d949f2ge4",
"groupId": "cl1267q1z000d2e6d949f2ge4",
"content": {
"html": "<div>Welcome 👋</div>",
"richText": [
@ -69,7 +69,7 @@
{
"id": "cl1267y1u000f2e6d4rlglv6g",
"type": "text",
"blockId": "cl1267q1z000d2e6d949f2ge4",
"groupId": "cl1267q1z000d2e6d949f2ge4",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
@ -81,7 +81,7 @@
{
"id": "cl126820m000g2e6dfleq78bt",
"type": "text input",
"blockId": "cl1267q1z000d2e6d949f2ge4",
"groupId": "cl1267q1z000d2e6d949f2ge4",
"options": {
"isLong": false,
"labels": {
@ -94,7 +94,7 @@
{
"id": "cl1289y1s00142e6dvbkpvbje",
"type": "Code",
"blockId": "cl1267q1z000d2e6d949f2ge4",
"groupId": "cl1267q1z000d2e6d949f2ge4",
"options": {
"name": "Store Name in DB",
"content": "postMessage({from: \"typebot\", action: \"storeName\", content: {{Name}}}, \"*\")"
@ -102,16 +102,16 @@
"outgoingEdgeId": "cl12bk56s000d2e69oll3nqxm"
}
],
"title": "Block #3",
"title": "Group #3",
"graphCoordinates": { "x": 269, "y": 381 }
},
{
"id": "cl126ixoq000p2e6dfbz9sype",
"steps": [
"blocks": [
{
"id": "cl1266v6f000a2e6db7wj3ux7",
"type": "text",
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"content": {
"html": "<div>Welcome {{Name}} 👋</div>",
"richText": [
@ -123,7 +123,7 @@
{
"id": "cl126hb9m000l2e6d5qk3mohn",
"type": "text",
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"content": {
"html": "<div>I&#x27;m super pumped that you&#x27;ve decided to try out Typebot 😍</div>",
"richText": [
@ -142,7 +142,7 @@
{
"id": "cl126hpw1000m2e6dneousygl",
"type": "text",
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"content": {
"html": "<div>You are small steps away from meaningful, hyper-personalized experience for your users</div>",
"richText": [
@ -161,7 +161,7 @@
{
"id": "cl126guhd000k2e6d6ypkex9z",
"type": "text",
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"content": {
"html": "<div>Let&#x27;s get you set up for your Typebot journey.</div>",
"richText": [
@ -178,7 +178,7 @@
{
"id": "cl126ixp9000q2e6dslh0zypi",
"type": "text",
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"content": {
"html": "<div>Do you work for a specific company?</div>",
"richText": [
@ -197,32 +197,32 @@
{
"id": "cl126jb2q000s2e6dm60yq5p2",
"type": 0,
"stepId": "cl126jb2q000r2e6dgqlnxnt8",
"blockId": "cl126jb2q000r2e6dgqlnxnt8",
"content": "Yes",
"outgoingEdgeId": "cl126jsoo000x2e6ditu7dgf8"
},
{
"id": "cl126jc5a000t2e6dqv91w7j6",
"type": 0,
"stepId": "cl126jb2q000r2e6dgqlnxnt8",
"blockId": "cl126jb2q000r2e6dgqlnxnt8",
"content": "No",
"outgoingEdgeId": "cl126l5tx00122e6dmisci6h5"
}
],
"blockId": "cl126ixoq000p2e6dfbz9sype",
"groupId": "cl126ixoq000p2e6dfbz9sype",
"options": { "buttonLabel": "Send", "isMultipleChoice": false }
}
],
"title": "Block #5",
"title": "Group #5",
"graphCoordinates": { "x": 614, "y": 244 }
},
{
"id": "cl126jioj000u2e6dqssno3hv",
"steps": [
"blocks": [
{
"id": "cl126jioz000v2e6dwrk1f2cb",
"type": "text input",
"blockId": "cl126jioj000u2e6dqssno3hv",
"groupId": "cl126jioj000u2e6dqssno3hv",
"options": {
"isLong": false,
"labels": {
@ -235,7 +235,7 @@
{
"id": "cl12890kw00132e6dp9v5dexm",
"type": "Code",
"blockId": "cl126jioj000u2e6dqssno3hv",
"groupId": "cl126jioj000u2e6dqssno3hv",
"options": {
"name": "Store company in DB",
"content": "postMessage({from: \"typebot\", action: \"storeCompany\", content: {{Company}}}, \"*\")"
@ -243,16 +243,16 @@
"outgoingEdgeId": "cl128ag8i00162e6dufv3tgo0"
}
],
"title": "Block #6",
"title": "Group #6",
"graphCoordinates": { "x": 969, "y": 308 }
},
{
"id": "cl126krbp00102e6dnjelmfa1",
"steps": [
"blocks": [
{
"id": "cl126krck00112e6d1m6ctxpn",
"type": "text",
"blockId": "cl126krbp00102e6dnjelmfa1",
"groupId": "cl126krbp00102e6dnjelmfa1",
"content": {
"html": "<div>What type of forms are you planning to build with Typebot?</div>",
"richText": [
@ -275,53 +275,53 @@
{
"id": "cl126onz9001g2e6dk0nbjeu6",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Lead qualification"
},
{
"id": "cl126lm6c00172e6d1pfvdiju",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Customer support"
},
{
"id": "cl126orr2001h2e6d0fqs7737",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Customer research"
},
{
"id": "cl126oudu001i2e6dktwi7qwv",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "User onboarding"
},
{
"id": "cl126luv500192e6dl317ssyr",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Quizzes"
},
{
"id": "cl126lz8q001a2e6d8b9lb3b5",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Content distribution"
},
{
"id": "cl126nf7k001d2e6dg2zczjgz",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "FAQ"
},
{
"id": "cl126ngy8001e2e6ddfo5s9fm",
"type": 0,
"stepId": "cl126lb8v00142e6duv5qe08l",
"blockId": "cl126lb8v00142e6duv5qe08l",
"content": "Other"
}
],
"blockId": "cl126krbp00102e6dnjelmfa1",
"groupId": "cl126krbp00102e6dnjelmfa1",
"options": {
"variableId": "cl126mo3t001b2e6dvyi16bkd",
"buttonLabel": "Send",
@ -331,7 +331,7 @@
{
"id": "cl128ain900172e6d1osj4u90",
"type": "Code",
"blockId": "cl126krbp00102e6dnjelmfa1",
"groupId": "cl126krbp00102e6dnjelmfa1",
"options": {
"name": "Store categories in DB",
"content": "postMessage({from: \"typebot\", action: \"storeCategories\", content: {{Categories}}}, \"*\")"
@ -339,16 +339,16 @@
"outgoingEdgeId": "cl128azam00182e6dct61k7v5"
}
],
"title": "Block #6",
"title": "Group #6",
"graphCoordinates": { "x": 1218, "y": 510 }
},
{
"id": "cl126p75m001j2e6d73qmes0m",
"steps": [
"blocks": [
{
"id": "cl126p76d001k2e6dbhnf2ysq",
"type": "text",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"content": {
"html": "<div>Thank you for answering those questions!</div>",
"richText": [
@ -365,7 +365,7 @@
{
"id": "cl128375600112e6d4l0jtuyf",
"type": "Code",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"options": {
"name": "Shoot confettis",
"content": "postMessage({from: \"typebot\", action: \"shootConfettis\"}, \"*\")"
@ -374,7 +374,7 @@
{
"id": "cl126rfy6001t2e6d21gcb6b0",
"type": "image",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"content": {
"url": "https://media4.giphy.com/media/l0amJzVHIAfl7jMDos/giphy.gif?cid=fe3852a3i4c33635xdtj3nesr9uq4zteujaab6b0jr42gpxx&rid=giphy.gif&ct=g"
}
@ -382,7 +382,7 @@
{
"id": "cl126txta001y2e6dtxrbsnek",
"type": "text",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"content": {
"html": "<div>You can reach out to me using the contact bubble on the bottom right corner 🤓</div>",
"richText": [
@ -400,7 +400,7 @@
},
{
"id": "cl12buyly00172e6991bz38ch",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"type": "text",
"content": {
"html": "<div>Let&#x27;s create your first typebot...</div>",
@ -415,7 +415,7 @@
},
{
"id": "cl12bwpi800182e69kcivnp1s",
"blockId": "cl126p75m001j2e6d73qmes0m",
"groupId": "cl126p75m001j2e6d73qmes0m",
"type": "Code",
"options": {
"name": "Go to typebot creation",
@ -423,16 +423,16 @@
}
}
],
"title": "Block #7",
"title": "Group #7",
"graphCoordinates": { "x": 1612, "y": 1103 }
},
{
"id": "cl126pv6w001n2e6dp0qkvthu",
"steps": [
"blocks": [
{
"id": "cl127yxym000b2e6d9hksxo6h",
"type": "text",
"blockId": "cl126pv6w001n2e6dp0qkvthu",
"groupId": "cl126pv6w001n2e6dp0qkvthu",
"content": {
"html": "<div>What else?</div>",
"richText": [
@ -444,7 +444,7 @@
{
"id": "cl126pv7n001o2e6dajltc4qz",
"type": "text input",
"blockId": "cl126pv6w001n2e6dp0qkvthu",
"groupId": "cl126pv6w001n2e6dp0qkvthu",
"options": {
"isLong": false,
"labels": { "button": "Send", "placeholder": "Type your answer" },
@ -454,7 +454,7 @@
{
"id": "cl128b34o00192e6dqjxs3cxf",
"type": "Code",
"blockId": "cl126pv6w001n2e6dp0qkvthu",
"groupId": "cl126pv6w001n2e6dp0qkvthu",
"options": {
"name": "Store Other categories in DB",
"content": "postMessage({from: \"typebot\", action: \"storeOtherCategories\", content: {{Other categories}}}, \"*\")"
@ -462,12 +462,12 @@
"outgoingEdgeId": "cl128c0fu001a2e6droq69g6z"
}
],
"title": "Block #8",
"title": "Group #8",
"graphCoordinates": { "x": 1943, "y": 895 }
},
{
"id": "cl1278gx9002v2e6d4kf3v89s",
"steps": [
"blocks": [
{
"id": "cl1278gyk002w2e6d744eb87n",
"type": "Condition",
@ -475,7 +475,7 @@
{
"id": "cl1278gyk002x2e6dwmpzs3nf",
"type": 1,
"stepId": "cl1278gyk002w2e6d744eb87n",
"blockId": "cl1278gyk002w2e6d744eb87n",
"content": {
"comparisons": [
{
@ -490,11 +490,11 @@
"outgoingEdgeId": "cl1278r3b002z2e6d6d6rk9dh"
}
],
"blockId": "cl1278gx9002v2e6d4kf3v89s",
"groupId": "cl1278gx9002v2e6d4kf3v89s",
"outgoingEdgeId": "cl1278trd00312e6dxmzhcmmn"
}
],
"title": "Block #13",
"title": "Group #13",
"graphCoordinates": { "x": 1585, "y": 792 }
}
],
@ -507,97 +507,97 @@
"edges": [
{
"id": "cl1266kt100082e6d1wks5dtp",
"to": { "blockId": "cl1266bah00032e6dgdnj4vgz" },
"to": { "groupId": "cl1266bah00032e6dgdnj4vgz" },
"from": {
"stepId": "cl1265zct0001mb1afel460do",
"blockId": "cl1265zct0000mb1a6bir36w7"
"blockId": "cl1265zct0001mb1afel460do",
"groupId": "cl1265zct0000mb1a6bir36w7"
}
},
{
"id": "cl126jsoo000x2e6ditu7dgf8",
"to": { "blockId": "cl126jioj000u2e6dqssno3hv" },
"to": { "groupId": "cl126jioj000u2e6dqssno3hv" },
"from": {
"itemId": "cl126jb2q000s2e6dm60yq5p2",
"stepId": "cl126jb2q000r2e6dgqlnxnt8",
"blockId": "cl126ixoq000p2e6dfbz9sype"
"blockId": "cl126jb2q000r2e6dgqlnxnt8",
"groupId": "cl126ixoq000p2e6dfbz9sype"
}
},
{
"id": "cl126l5tx00122e6dmisci6h5",
"to": { "blockId": "cl126krbp00102e6dnjelmfa1" },
"to": { "groupId": "cl126krbp00102e6dnjelmfa1" },
"from": {
"itemId": "cl126jc5a000t2e6dqv91w7j6",
"stepId": "cl126jb2q000r2e6dgqlnxnt8",
"blockId": "cl126ixoq000p2e6dfbz9sype"
"blockId": "cl126jb2q000r2e6dgqlnxnt8",
"groupId": "cl126ixoq000p2e6dfbz9sype"
}
},
{
"id": "cl1278r3b002z2e6d6d6rk9dh",
"to": { "blockId": "cl126pv6w001n2e6dp0qkvthu" },
"to": { "groupId": "cl126pv6w001n2e6dp0qkvthu" },
"from": {
"itemId": "cl1278gyk002x2e6dwmpzs3nf",
"stepId": "cl1278gyk002w2e6d744eb87n",
"blockId": "cl1278gx9002v2e6d4kf3v89s"
"blockId": "cl1278gyk002w2e6d744eb87n",
"groupId": "cl1278gx9002v2e6d4kf3v89s"
}
},
{
"id": "cl1278trd00312e6dxmzhcmmn",
"to": { "blockId": "cl126p75m001j2e6d73qmes0m" },
"to": { "groupId": "cl126p75m001j2e6d73qmes0m" },
"from": {
"stepId": "cl1278gyk002w2e6d744eb87n",
"blockId": "cl1278gx9002v2e6d4kf3v89s"
"blockId": "cl1278gyk002w2e6d744eb87n",
"groupId": "cl1278gx9002v2e6d4kf3v89s"
}
},
{
"id": "cl128ag8i00162e6dufv3tgo0",
"to": { "blockId": "cl126krbp00102e6dnjelmfa1" },
"to": { "groupId": "cl126krbp00102e6dnjelmfa1" },
"from": {
"stepId": "cl12890kw00132e6dp9v5dexm",
"blockId": "cl126jioj000u2e6dqssno3hv"
"blockId": "cl12890kw00132e6dp9v5dexm",
"groupId": "cl126jioj000u2e6dqssno3hv"
}
},
{
"id": "cl128azam00182e6dct61k7v5",
"to": { "blockId": "cl1278gx9002v2e6d4kf3v89s" },
"to": { "groupId": "cl1278gx9002v2e6d4kf3v89s" },
"from": {
"stepId": "cl128ain900172e6d1osj4u90",
"blockId": "cl126krbp00102e6dnjelmfa1"
"blockId": "cl128ain900172e6d1osj4u90",
"groupId": "cl126krbp00102e6dnjelmfa1"
}
},
{
"id": "cl128c0fu001a2e6droq69g6z",
"to": { "blockId": "cl126p75m001j2e6d73qmes0m" },
"to": { "groupId": "cl126p75m001j2e6d73qmes0m" },
"from": {
"stepId": "cl128b34o00192e6dqjxs3cxf",
"blockId": "cl126pv6w001n2e6dp0qkvthu"
"blockId": "cl128b34o00192e6dqjxs3cxf",
"groupId": "cl126pv6w001n2e6dp0qkvthu"
}
},
{
"from": {
"blockId": "cl1266bah00032e6dgdnj4vgz",
"stepId": "cl1266bam00042e6dm0gn22vy",
"groupId": "cl1266bah00032e6dgdnj4vgz",
"blockId": "cl1266bam00042e6dm0gn22vy",
"itemId": "cl1266bam00052e6dn1sdjnax"
},
"to": { "blockId": "cl126ixoq000p2e6dfbz9sype" },
"to": { "groupId": "cl126ixoq000p2e6dfbz9sype" },
"id": "cl12bk3j6000c2e69bak89ja9"
},
{
"from": {
"blockId": "cl1267q1z000d2e6d949f2ge4",
"stepId": "cl1289y1s00142e6dvbkpvbje"
"groupId": "cl1267q1z000d2e6d949f2ge4",
"blockId": "cl1289y1s00142e6dvbkpvbje"
},
"to": {
"blockId": "cl126ixoq000p2e6dfbz9sype",
"stepId": "cl126hb9m000l2e6d5qk3mohn"
"groupId": "cl126ixoq000p2e6dfbz9sype",
"blockId": "cl126hb9m000l2e6d5qk3mohn"
},
"id": "cl12bk56s000d2e69oll3nqxm"
},
{
"from": {
"blockId": "cl1266bah00032e6dgdnj4vgz",
"stepId": "cl1266bam00042e6dm0gn22vy"
"groupId": "cl1266bah00032e6dgdnj4vgz",
"blockId": "cl1266bam00042e6dm0gn22vy"
},
"to": { "blockId": "cl1267q1z000d2e6d949f2ge4" },
"to": { "groupId": "cl1267q1z000d2e6d949f2ge4" },
"id": "cl12bnfyd000g2e69g7lr3czq"
}
],