2
0

♻️ Rename Code block to Script block

Closes #245
This commit is contained in:
Baptiste Arnaud
2023-01-27 15:58:05 +01:00
parent 068f9bbd17
commit a842f57297
35 changed files with 113 additions and 103 deletions

View File

@@ -1,6 +1,6 @@
# Code
# Script
The "Code" block allows you to execute Javascript code. If you want to set a variable value with Javascript, use the [Set variable block](./set-variable) instead.
The "Script" block allows you to execute Javascript code. If you want to set a variable value with Javascript, use the [Set variable block](./set-variable) instead.
**It doesn't allow you to create a custom visual block**

View File

@@ -54,7 +54,8 @@
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM"
"CUSTOM",
"UNLIMITED"
]
}
},
@@ -145,7 +146,8 @@
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM"
"CUSTOM",
"UNLIMITED"
]
},
"stripeId": {
@@ -280,7 +282,8 @@
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM"
"CUSTOM",
"UNLIMITED"
]
},
"stripeId": {
@@ -432,7 +435,8 @@
"PRO",
"LIFETIME",
"OFFERED",
"CUSTOM"
"CUSTOM",
"UNLIMITED"
]
},
"stripeId": {

View File

@@ -4498,7 +4498,7 @@
{
"type": "object",
"properties": {
"codeToExecute": {
"scriptToExecute": {
"type": "object",
"properties": {
"content": {
@@ -4553,7 +4553,7 @@
}
},
"required": [
"codeToExecute"
"scriptToExecute"
],
"additionalProperties": false
},
@@ -4589,7 +4589,7 @@
"chatwoot": {
"type": "object",
"properties": {
"codeToExecute": {
"scriptToExecute": {
"type": "object",
"properties": {
"content": {
@@ -4644,7 +4644,7 @@
}
},
"required": [
"codeToExecute"
"scriptToExecute"
],
"additionalProperties": false
}