@nordcraft/std-lib 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.d.ts +14 -14
- package/dist/actions.js +14 -14
- package/dist/actions.js.map +1 -1
- package/dist/formulas.d.ts +79 -79
- package/dist/formulas.js +79 -79
- package/dist/formulas.js.map +1 -1
- package/dist/lib.ts +1525 -1525
- package/package.json +2 -2
package/dist/lib.ts
CHANGED
|
@@ -1,187 +1,215 @@
|
|
|
1
1
|
|
|
2
2
|
export const formulas = {
|
|
3
|
-
"@toddle/
|
|
4
|
-
"name": "
|
|
5
|
-
"description": "
|
|
3
|
+
"@toddle/split": {
|
|
4
|
+
"name": "Split",
|
|
5
|
+
"description": "Split a String into an Array of smaller strings each time a delimiter occurs. The delimiter will not be part of the output",
|
|
6
6
|
"arguments": [
|
|
7
7
|
{
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "Input",
|
|
9
9
|
"formula": {
|
|
10
10
|
"type": "value",
|
|
11
|
-
"value":
|
|
11
|
+
"value": ""
|
|
12
12
|
},
|
|
13
|
-
"description": "The
|
|
13
|
+
"description": "The String to split.",
|
|
14
14
|
"type": {
|
|
15
|
-
"type": "
|
|
15
|
+
"type": "String"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"isFunction": true,
|
|
19
|
+
"name": "Delimiter",
|
|
21
20
|
"formula": {
|
|
22
|
-
"type": "
|
|
23
|
-
"
|
|
24
|
-
"Args",
|
|
25
|
-
"item"
|
|
26
|
-
]
|
|
21
|
+
"type": "value",
|
|
22
|
+
"value": ""
|
|
27
23
|
},
|
|
28
|
-
"description": "
|
|
24
|
+
"description": "The string to split by.",
|
|
29
25
|
"type": {
|
|
30
|
-
"type": "
|
|
26
|
+
"type": "String"
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
],
|
|
34
30
|
"output": {
|
|
35
|
-
"description": "
|
|
31
|
+
"description": "An array of Strings.",
|
|
36
32
|
"type": {
|
|
37
|
-
"type": "Array"
|
|
33
|
+
"type": "Array",
|
|
34
|
+
"ofType": {
|
|
35
|
+
"type": "String"
|
|
36
|
+
}
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
|
-
"@toddle/
|
|
42
|
-
"name": "
|
|
43
|
-
"description": "Get the
|
|
44
|
-
"arguments": [
|
|
40
|
+
"@toddle/size": {
|
|
41
|
+
"name": "Size",
|
|
42
|
+
"description": "Get the size of an Array, Object or String.",
|
|
43
|
+
"arguments": [
|
|
44
|
+
{
|
|
45
|
+
"name": "Collection",
|
|
46
|
+
"formula": {
|
|
47
|
+
"type": "value",
|
|
48
|
+
"value": [
|
|
49
|
+
1,
|
|
50
|
+
2,
|
|
51
|
+
3
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"description": "The collection to get the size of.",
|
|
55
|
+
"type": {
|
|
56
|
+
"type": "Array \\| Object \\| String"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
45
60
|
"output": {
|
|
46
|
-
"description": "The
|
|
61
|
+
"description": "The size of the collection.",
|
|
47
62
|
"type": {
|
|
48
|
-
"type": "
|
|
63
|
+
"type": "Number"
|
|
49
64
|
}
|
|
50
65
|
}
|
|
51
66
|
},
|
|
52
|
-
"@toddle/
|
|
53
|
-
"name": "
|
|
54
|
-
"description": "
|
|
67
|
+
"@toddle/includes": {
|
|
68
|
+
"name": "Includes",
|
|
69
|
+
"description": "Test if an Array or String includes a specific item or value.",
|
|
55
70
|
"arguments": [
|
|
56
71
|
{
|
|
57
|
-
"name": "
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
"
|
|
72
|
+
"name": "Array",
|
|
73
|
+
"formula": {
|
|
74
|
+
"type": "value",
|
|
75
|
+
"value": ""
|
|
61
76
|
},
|
|
77
|
+
"description": "The value to search.",
|
|
78
|
+
"type": {
|
|
79
|
+
"type": "Array \\| String"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "Item",
|
|
62
84
|
"formula": {
|
|
63
85
|
"type": "value",
|
|
64
|
-
"value": "
|
|
86
|
+
"value": ""
|
|
87
|
+
},
|
|
88
|
+
"description": "The item or value to search for.",
|
|
89
|
+
"type": {
|
|
90
|
+
"type": "Any"
|
|
65
91
|
}
|
|
66
92
|
}
|
|
67
93
|
],
|
|
68
94
|
"output": {
|
|
69
|
-
"description": "
|
|
70
|
-
"type": {
|
|
71
|
-
"type": "String"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"@toddle/currentURL": {
|
|
76
|
-
"name": "Current URL",
|
|
77
|
-
"description": "Return the current URL of the browser. Use the \"Parse URL\" formula for working with the URL.",
|
|
78
|
-
"arguments": [],
|
|
79
|
-
"cache": false,
|
|
80
|
-
"output": {
|
|
81
|
-
"description": "The browser's current URL.",
|
|
95
|
+
"description": "Returns True if the item or value exists in the Array or string. Returns False if no match is found.",
|
|
82
96
|
"type": {
|
|
83
|
-
"type": "
|
|
97
|
+
"type": "Boolean"
|
|
84
98
|
}
|
|
85
99
|
}
|
|
86
100
|
},
|
|
87
|
-
"@toddle/
|
|
88
|
-
"name": "
|
|
89
|
-
"description": "
|
|
101
|
+
"@toddle/lessThan": {
|
|
102
|
+
"name": "Less than",
|
|
103
|
+
"description": "Compute if a value is smaller than another value.",
|
|
90
104
|
"arguments": [
|
|
91
105
|
{
|
|
92
|
-
"name": "
|
|
106
|
+
"name": "First",
|
|
93
107
|
"formula": {
|
|
94
108
|
"type": "value",
|
|
95
|
-
"value":
|
|
109
|
+
"value": ""
|
|
96
110
|
},
|
|
97
|
-
"description": "
|
|
111
|
+
"description": "First Number to be compared.",
|
|
98
112
|
"type": {
|
|
99
|
-
"type": "
|
|
113
|
+
"type": "Number"
|
|
100
114
|
}
|
|
101
115
|
},
|
|
102
116
|
{
|
|
103
|
-
"name": "
|
|
117
|
+
"name": "Second",
|
|
104
118
|
"formula": {
|
|
105
119
|
"type": "value",
|
|
106
|
-
"value":
|
|
120
|
+
"value": ""
|
|
107
121
|
},
|
|
108
|
-
"description": "
|
|
122
|
+
"description": "Second Number to be compared.",
|
|
109
123
|
"type": {
|
|
110
124
|
"type": "Number"
|
|
111
125
|
}
|
|
112
126
|
}
|
|
113
127
|
],
|
|
114
128
|
"output": {
|
|
115
|
-
"description": "
|
|
129
|
+
"description": "Returns True if the First Number is smaller than the second Number, otherwise it returns False.",
|
|
116
130
|
"type": {
|
|
117
|
-
"type": "
|
|
131
|
+
"type": "Boolean"
|
|
118
132
|
}
|
|
119
133
|
}
|
|
120
134
|
},
|
|
121
|
-
"@toddle/
|
|
122
|
-
"name": "
|
|
123
|
-
"description": "Get
|
|
135
|
+
"@toddle/userAgent": {
|
|
136
|
+
"name": "User Agent",
|
|
137
|
+
"description": "Get the user agent for the browser or from the User-Agent header on the server",
|
|
124
138
|
"arguments": [],
|
|
125
139
|
"output": {
|
|
126
|
-
"description": "
|
|
140
|
+
"description": "The user agent string.",
|
|
127
141
|
"type": {
|
|
128
|
-
"type": "
|
|
142
|
+
"type": "String"
|
|
129
143
|
}
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
|
-
"@toddle/
|
|
133
|
-
"name": "
|
|
134
|
-
"description": "
|
|
146
|
+
"@toddle/replaceAll": {
|
|
147
|
+
"name": "Replace all",
|
|
148
|
+
"description": "Replace all occurrences of a substring in a String.",
|
|
135
149
|
"arguments": [
|
|
136
150
|
{
|
|
137
|
-
"name": "
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
"
|
|
151
|
+
"name": "Input",
|
|
152
|
+
"description": "The input String to search in.",
|
|
153
|
+
"type": {
|
|
154
|
+
"type": "String"
|
|
141
155
|
},
|
|
156
|
+
"required": true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "Search",
|
|
160
|
+
"description": "The substring to search for.",
|
|
142
161
|
"type": {
|
|
143
|
-
"type": "
|
|
162
|
+
"type": "String"
|
|
144
163
|
},
|
|
145
|
-
"
|
|
164
|
+
"required": true
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "Replace with",
|
|
168
|
+
"description": "The replacement value.",
|
|
169
|
+
"type": {
|
|
170
|
+
"type": "String"
|
|
171
|
+
},
|
|
172
|
+
"required": true
|
|
146
173
|
}
|
|
147
174
|
],
|
|
148
175
|
"output": {
|
|
149
|
-
"description": "The input Array with all duplicate values removed.",
|
|
150
176
|
"type": {
|
|
151
|
-
"type": "
|
|
152
|
-
}
|
|
177
|
+
"type": "String"
|
|
178
|
+
},
|
|
179
|
+
"name": "Output",
|
|
180
|
+
"description": "The resulting String."
|
|
153
181
|
}
|
|
154
182
|
},
|
|
155
|
-
"@toddle/
|
|
156
|
-
"name": "
|
|
157
|
-
"description": "
|
|
183
|
+
"@toddle/unique": {
|
|
184
|
+
"name": "Unique",
|
|
185
|
+
"description": "Remove duplicate values from an Array.",
|
|
158
186
|
"arguments": [
|
|
159
187
|
{
|
|
160
|
-
"name": "
|
|
188
|
+
"name": "Array",
|
|
161
189
|
"formula": {
|
|
162
190
|
"type": "value",
|
|
163
|
-
"value":
|
|
191
|
+
"value": []
|
|
164
192
|
},
|
|
165
|
-
"description": "Input String",
|
|
166
193
|
"type": {
|
|
167
|
-
"type": "
|
|
168
|
-
}
|
|
194
|
+
"type": "Array"
|
|
195
|
+
},
|
|
196
|
+
"description": "The input Array."
|
|
169
197
|
}
|
|
170
198
|
],
|
|
171
199
|
"output": {
|
|
172
|
-
"description": "The input
|
|
200
|
+
"description": "The input Array with all duplicate values removed.",
|
|
173
201
|
"type": {
|
|
174
|
-
"type": "
|
|
202
|
+
"type": "Array"
|
|
175
203
|
}
|
|
176
204
|
}
|
|
177
205
|
},
|
|
178
|
-
"@toddle/
|
|
179
|
-
"name": "
|
|
180
|
-
"description": "
|
|
206
|
+
"@toddle/round": {
|
|
207
|
+
"name": "Round",
|
|
208
|
+
"description": "Round a Number to the nearest decimal point.",
|
|
181
209
|
"arguments": [
|
|
182
210
|
{
|
|
183
|
-
"name": "
|
|
184
|
-
"description": "
|
|
211
|
+
"name": "Input",
|
|
212
|
+
"description": "Number to round.",
|
|
185
213
|
"type": {
|
|
186
214
|
"type": "Number"
|
|
187
215
|
},
|
|
@@ -191,326 +219,436 @@
|
|
|
191
219
|
}
|
|
192
220
|
},
|
|
193
221
|
{
|
|
194
|
-
"name": "
|
|
195
|
-
"description": "
|
|
222
|
+
"name": "Decimals",
|
|
223
|
+
"description": "Number of decimals to round to.",
|
|
196
224
|
"type": {
|
|
197
225
|
"type": "Number"
|
|
198
226
|
},
|
|
199
227
|
"formula": {
|
|
200
228
|
"type": "value",
|
|
201
|
-
"value":
|
|
229
|
+
"value": 0
|
|
202
230
|
}
|
|
203
231
|
}
|
|
204
232
|
],
|
|
205
233
|
"output": {
|
|
206
|
-
"description": "The result of dividing the dividend with the divisor.",
|
|
207
234
|
"type": {
|
|
208
235
|
"type": "Number"
|
|
209
|
-
}
|
|
236
|
+
},
|
|
237
|
+
"description": "The rounded Number."
|
|
210
238
|
}
|
|
211
239
|
},
|
|
212
|
-
"@toddle/
|
|
213
|
-
"name": "
|
|
240
|
+
"@toddle/parseURL": {
|
|
241
|
+
"name": "Parse URL",
|
|
242
|
+
"description": "Parse a URL",
|
|
214
243
|
"arguments": [
|
|
215
244
|
{
|
|
216
|
-
"name": "
|
|
217
|
-
"description": "Date to format",
|
|
218
|
-
"type": {
|
|
219
|
-
"type": "Date"
|
|
220
|
-
},
|
|
221
|
-
"formula": {
|
|
222
|
-
"type": "Date",
|
|
223
|
-
"value": null
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "Locale(s)",
|
|
228
|
-
"description": "Optional locale to use for formatting the Date, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
229
|
-
"type": {
|
|
230
|
-
"type": "Array \\| String"
|
|
231
|
-
},
|
|
245
|
+
"name": "URL",
|
|
232
246
|
"formula": {
|
|
233
247
|
"type": "value",
|
|
234
248
|
"value": null
|
|
249
|
+
},
|
|
250
|
+
"description": "The URL value to parse.",
|
|
251
|
+
"type": {
|
|
252
|
+
"type": "String"
|
|
235
253
|
}
|
|
236
254
|
},
|
|
237
255
|
{
|
|
238
|
-
"name": "
|
|
239
|
-
"description": "Optional Object for configuring the formatting of the output. See the [DateTimeFormat syntax on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax).",
|
|
240
|
-
"type": {
|
|
241
|
-
"type": "Object"
|
|
242
|
-
},
|
|
256
|
+
"name": "Base",
|
|
243
257
|
"formula": {
|
|
244
258
|
"type": "value",
|
|
245
259
|
"value": null
|
|
260
|
+
},
|
|
261
|
+
"description": "An optional base for the URL. Use this to resolve relative URLs.",
|
|
262
|
+
"type": {
|
|
263
|
+
"type": "String"
|
|
246
264
|
}
|
|
247
265
|
}
|
|
248
266
|
],
|
|
249
|
-
"description": "Format a date using the Intl.DateTimeFormat API. See the [DateTimeFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat).",
|
|
250
267
|
"output": {
|
|
251
|
-
"description": "
|
|
268
|
+
"description": "An object containing: \"hostname\", \"searchParams\", \"path\", \"hash\", \"href\", \"protocol\", \"port\", \"origin\"",
|
|
252
269
|
"type": {
|
|
253
|
-
"type": "
|
|
270
|
+
"type": "Object"
|
|
254
271
|
}
|
|
255
272
|
}
|
|
256
273
|
},
|
|
257
|
-
"@toddle/
|
|
258
|
-
"name": "
|
|
259
|
-
"description": "
|
|
274
|
+
"@toddle/getFromSessionStorage": {
|
|
275
|
+
"name": "Get from Session Storage",
|
|
276
|
+
"description": "Read a value from session storage with the provided key.",
|
|
277
|
+
"cache": false,
|
|
260
278
|
"arguments": [
|
|
261
279
|
{
|
|
262
|
-
"name": "
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
"
|
|
280
|
+
"name": "Key",
|
|
281
|
+
"formula": {
|
|
282
|
+
"type": "value",
|
|
283
|
+
"value": null
|
|
266
284
|
},
|
|
267
|
-
"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "Search",
|
|
271
|
-
"description": "The substring to search for.",
|
|
285
|
+
"description": "The key to read from session storage.",
|
|
272
286
|
"type": {
|
|
273
287
|
"type": "String"
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"output": {
|
|
292
|
+
"description": "The value found in session storage.",
|
|
293
|
+
"type": {
|
|
294
|
+
"type": "Any"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"@toddle/squareRoot": {
|
|
299
|
+
"name": "Square root",
|
|
300
|
+
"description": "Get the square root of a Number.",
|
|
301
|
+
"arguments": [
|
|
277
302
|
{
|
|
278
|
-
"name": "
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
"
|
|
303
|
+
"name": "Number",
|
|
304
|
+
"formula": {
|
|
305
|
+
"type": "value",
|
|
306
|
+
"value": 1
|
|
282
307
|
},
|
|
283
|
-
"
|
|
308
|
+
"description": "The input Number.",
|
|
309
|
+
"type": {
|
|
310
|
+
"type": "Number"
|
|
311
|
+
}
|
|
284
312
|
}
|
|
285
313
|
],
|
|
286
314
|
"output": {
|
|
315
|
+
"description": "The square root of the input Number.",
|
|
287
316
|
"type": {
|
|
288
|
-
"type": "
|
|
289
|
-
}
|
|
290
|
-
"name": "Output",
|
|
291
|
-
"description": "The resulting String."
|
|
317
|
+
"type": "Number"
|
|
318
|
+
}
|
|
292
319
|
}
|
|
293
320
|
},
|
|
294
|
-
"@toddle/
|
|
295
|
-
"name": "
|
|
296
|
-
"description": "
|
|
321
|
+
"@toddle/currentURL": {
|
|
322
|
+
"name": "Current URL",
|
|
323
|
+
"description": "Return the current URL of the browser. Use the \"Parse URL\" formula for working with the URL.",
|
|
324
|
+
"arguments": [],
|
|
297
325
|
"cache": false,
|
|
326
|
+
"output": {
|
|
327
|
+
"description": "The browser's current URL.",
|
|
328
|
+
"type": {
|
|
329
|
+
"type": "String"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"@toddle/lowercase": {
|
|
334
|
+
"name": "Lower case",
|
|
335
|
+
"description": "Convert a string to lowercase.",
|
|
298
336
|
"arguments": [
|
|
299
337
|
{
|
|
300
|
-
"name": "
|
|
338
|
+
"name": "String",
|
|
301
339
|
"formula": {
|
|
302
340
|
"type": "value",
|
|
303
|
-
"value":
|
|
341
|
+
"value": "string"
|
|
304
342
|
},
|
|
305
|
-
"description": "
|
|
343
|
+
"description": "Input String",
|
|
306
344
|
"type": {
|
|
307
345
|
"type": "String"
|
|
308
346
|
}
|
|
309
347
|
}
|
|
310
348
|
],
|
|
311
349
|
"output": {
|
|
312
|
-
"description": "The
|
|
350
|
+
"description": "The input String with all characters converted to lowercase.",
|
|
313
351
|
"type": {
|
|
314
|
-
"type": "
|
|
352
|
+
"type": "String"
|
|
315
353
|
}
|
|
316
354
|
}
|
|
317
355
|
},
|
|
318
|
-
"@toddle/
|
|
319
|
-
"name": "
|
|
320
|
-
"description": "
|
|
356
|
+
"@toddle/multiply": {
|
|
357
|
+
"name": "Multiply",
|
|
358
|
+
"description": "Multiply two or more Numbers.",
|
|
359
|
+
"arguments": [
|
|
360
|
+
{
|
|
361
|
+
"name": "0",
|
|
362
|
+
"formula": {
|
|
363
|
+
"type": "value",
|
|
364
|
+
"value": 1
|
|
365
|
+
},
|
|
366
|
+
"type": {
|
|
367
|
+
"type": "Number"
|
|
368
|
+
},
|
|
369
|
+
"description": "Number to be multiplied."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "1",
|
|
373
|
+
"formula": {
|
|
374
|
+
"type": "value",
|
|
375
|
+
"value": 1
|
|
376
|
+
},
|
|
377
|
+
"type": {
|
|
378
|
+
"type": "Number"
|
|
379
|
+
},
|
|
380
|
+
"description": "Number to be multiplied."
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"variableArguments": true,
|
|
384
|
+
"output": {
|
|
385
|
+
"description": "The product of multiplying the input Numbers.",
|
|
386
|
+
"type": {
|
|
387
|
+
"type": "Number"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"@toddle/isServer": {
|
|
392
|
+
"name": "Is Server",
|
|
393
|
+
"description": "Get information about whether formulas are currently evaluated server-side or client-side.",
|
|
394
|
+
"arguments": [],
|
|
395
|
+
"output": {
|
|
396
|
+
"description": "Returns True if formulas are evaluated server-side, and False if formulas are evaluated client-side.",
|
|
397
|
+
"type": {
|
|
398
|
+
"type": "Boolean"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"@toddle/indexOf": {
|
|
403
|
+
"name": "Index of",
|
|
404
|
+
"description": "Find the index of a specific item in an Array or String.",
|
|
321
405
|
"arguments": [
|
|
322
406
|
{
|
|
323
407
|
"name": "Array",
|
|
324
408
|
"formula": {
|
|
325
409
|
"type": "value",
|
|
326
|
-
"value":
|
|
410
|
+
"value": ""
|
|
327
411
|
},
|
|
328
|
-
"description": "The
|
|
412
|
+
"description": "The value to search.",
|
|
329
413
|
"type": {
|
|
330
|
-
"type": "Array"
|
|
414
|
+
"type": "Array \\| String"
|
|
331
415
|
}
|
|
332
416
|
},
|
|
333
417
|
{
|
|
334
|
-
"name": "
|
|
335
|
-
"isFunction": true,
|
|
418
|
+
"name": "Item",
|
|
336
419
|
"formula": {
|
|
337
|
-
"type": "
|
|
338
|
-
"
|
|
339
|
-
"Args",
|
|
340
|
-
"item"
|
|
341
|
-
]
|
|
420
|
+
"type": "value",
|
|
421
|
+
"value": ""
|
|
342
422
|
},
|
|
343
|
-
"description": "
|
|
423
|
+
"description": "The items to search for.",
|
|
344
424
|
"type": {
|
|
345
|
-
"type": "
|
|
425
|
+
"type": "Any"
|
|
346
426
|
}
|
|
347
427
|
}
|
|
348
428
|
],
|
|
349
429
|
"output": {
|
|
350
|
-
"description": "
|
|
430
|
+
"description": "If the item exists in the Array, the index of that item is returned. If the item is not found, -1 is returned.",
|
|
351
431
|
"type": {
|
|
352
|
-
"type": "
|
|
432
|
+
"type": "Number"
|
|
353
433
|
}
|
|
354
434
|
}
|
|
355
435
|
},
|
|
356
|
-
"@toddle/
|
|
357
|
-
"name": "
|
|
358
|
-
"description": "
|
|
436
|
+
"@toddle/lessOrEqual": {
|
|
437
|
+
"name": "Less or equal",
|
|
438
|
+
"description": "Compute if a value is smaller than or equal to another value.",
|
|
359
439
|
"arguments": [
|
|
360
440
|
{
|
|
361
|
-
"name": "
|
|
441
|
+
"name": "First",
|
|
362
442
|
"formula": {
|
|
363
443
|
"type": "value",
|
|
364
|
-
"value":
|
|
444
|
+
"value": ""
|
|
365
445
|
},
|
|
366
|
-
"description": "
|
|
446
|
+
"description": "First Number to be compared.",
|
|
367
447
|
"type": {
|
|
368
|
-
"type": "
|
|
448
|
+
"type": "Number"
|
|
369
449
|
}
|
|
370
450
|
},
|
|
371
451
|
{
|
|
372
|
-
"name": "
|
|
452
|
+
"name": "Second",
|
|
373
453
|
"formula": {
|
|
374
454
|
"type": "value",
|
|
375
|
-
"value":
|
|
455
|
+
"value": ""
|
|
376
456
|
},
|
|
377
|
-
"description": "Number
|
|
457
|
+
"description": "Second Number to be compared.",
|
|
378
458
|
"type": {
|
|
379
459
|
"type": "Number"
|
|
380
460
|
}
|
|
381
461
|
}
|
|
382
462
|
],
|
|
383
463
|
"output": {
|
|
384
|
-
"description": "
|
|
464
|
+
"description": "Returns True if the First Number is smaller than or equal to the second Number, otherwise it returns False.",
|
|
385
465
|
"type": {
|
|
386
|
-
"type": "
|
|
466
|
+
"type": "Boolean"
|
|
387
467
|
}
|
|
388
468
|
}
|
|
389
469
|
},
|
|
390
|
-
"@toddle/
|
|
391
|
-
"name": "
|
|
392
|
-
"description": "
|
|
470
|
+
"@toddle/every": {
|
|
471
|
+
"name": "Every",
|
|
472
|
+
"description": "Run a formula returns for all items in an Array.",
|
|
393
473
|
"arguments": [
|
|
394
474
|
{
|
|
395
|
-
"name": "
|
|
475
|
+
"name": "Array",
|
|
396
476
|
"formula": {
|
|
397
477
|
"type": "value",
|
|
398
|
-
"value":
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
478
|
+
"value": null
|
|
479
|
+
},
|
|
480
|
+
"description": "The array of items to evaluate.",
|
|
481
|
+
"type": {
|
|
482
|
+
"type": "Array"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "Formula",
|
|
487
|
+
"isFunction": true,
|
|
488
|
+
"formula": {
|
|
489
|
+
"type": "path",
|
|
490
|
+
"path": [
|
|
491
|
+
"Args",
|
|
492
|
+
"item"
|
|
402
493
|
]
|
|
403
494
|
},
|
|
404
|
-
"description": "
|
|
495
|
+
"description": "Predicate formula for evaluating each item.",
|
|
405
496
|
"type": {
|
|
406
|
-
"type": "
|
|
497
|
+
"type": "Formula"
|
|
407
498
|
}
|
|
408
499
|
}
|
|
409
500
|
],
|
|
410
501
|
"output": {
|
|
411
|
-
"description": "
|
|
502
|
+
"description": "Returns True if the predicate formula returns true for all items in the Array, otherwise False.",
|
|
412
503
|
"type": {
|
|
413
|
-
"type": "
|
|
504
|
+
"type": "Array"
|
|
414
505
|
}
|
|
415
506
|
}
|
|
416
507
|
},
|
|
417
|
-
"@toddle/
|
|
418
|
-
"name": "
|
|
419
|
-
"description": "
|
|
508
|
+
"@toddle/capitalize": {
|
|
509
|
+
"name": "Capitalize",
|
|
510
|
+
"description": "Capitalize a string: make the first letter uppercase whilst keeping the rest lowercase.",
|
|
420
511
|
"arguments": [
|
|
421
512
|
{
|
|
422
|
-
"name": "
|
|
513
|
+
"name": "String",
|
|
423
514
|
"formula": {
|
|
424
515
|
"type": "value",
|
|
425
|
-
"value": ""
|
|
516
|
+
"value": "string"
|
|
426
517
|
},
|
|
427
|
-
"description": "
|
|
518
|
+
"description": "An input String.",
|
|
428
519
|
"type": {
|
|
429
520
|
"type": "String"
|
|
430
521
|
}
|
|
431
|
-
}
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"output": {
|
|
525
|
+
"description": "The capitalized String.",
|
|
526
|
+
"type": {
|
|
527
|
+
"type": "String"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"@toddle/startsWith": {
|
|
532
|
+
"name": "Starts with",
|
|
533
|
+
"description": "Check if a String has a given prefix.",
|
|
534
|
+
"arguments": [
|
|
432
535
|
{
|
|
433
|
-
"name": "
|
|
536
|
+
"name": "String",
|
|
434
537
|
"formula": {
|
|
435
538
|
"type": "value",
|
|
436
539
|
"value": ""
|
|
437
540
|
},
|
|
438
|
-
"description": "The
|
|
541
|
+
"description": "The String to check.",
|
|
439
542
|
"type": {
|
|
440
543
|
"type": "String"
|
|
441
544
|
}
|
|
442
545
|
},
|
|
443
546
|
{
|
|
444
|
-
"name": "
|
|
547
|
+
"name": "Prefix",
|
|
445
548
|
"formula": {
|
|
446
549
|
"type": "value",
|
|
447
|
-
"value":
|
|
550
|
+
"value": ""
|
|
448
551
|
},
|
|
449
|
-
"description": "
|
|
552
|
+
"description": "The prefix to check for.",
|
|
450
553
|
"type": {
|
|
451
|
-
"type": "
|
|
554
|
+
"type": "String"
|
|
452
555
|
}
|
|
453
|
-
}
|
|
556
|
+
}
|
|
557
|
+
],
|
|
558
|
+
"output": {
|
|
559
|
+
"description": "Returns True if the input String starts with the prefix, otherwise False",
|
|
560
|
+
"type": {
|
|
561
|
+
"type": "Boolean"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"@toddle/notEqual": {
|
|
566
|
+
"name": "Not equal",
|
|
567
|
+
"description": "Compute if values are not identical.",
|
|
568
|
+
"arguments": [
|
|
454
569
|
{
|
|
455
|
-
"name": "
|
|
570
|
+
"name": "First",
|
|
456
571
|
"formula": {
|
|
457
572
|
"type": "value",
|
|
458
|
-
"value":
|
|
573
|
+
"value": ""
|
|
459
574
|
},
|
|
460
|
-
"description": "
|
|
575
|
+
"description": "First value.",
|
|
461
576
|
"type": {
|
|
462
|
-
"type": "
|
|
577
|
+
"type": "Any"
|
|
463
578
|
}
|
|
464
579
|
},
|
|
465
580
|
{
|
|
466
|
-
"name": "
|
|
581
|
+
"name": "Second",
|
|
467
582
|
"formula": {
|
|
468
583
|
"type": "value",
|
|
469
|
-
"value":
|
|
584
|
+
"value": ""
|
|
470
585
|
},
|
|
471
|
-
"description": "
|
|
586
|
+
"description": "Second value.",
|
|
472
587
|
"type": {
|
|
473
|
-
"type": "
|
|
588
|
+
"type": "Any"
|
|
474
589
|
}
|
|
475
590
|
}
|
|
476
591
|
],
|
|
477
592
|
"output": {
|
|
478
|
-
"description": "
|
|
593
|
+
"description": "Returns True if the values are not identical, otherwise False.",
|
|
479
594
|
"type": {
|
|
480
|
-
"type": "
|
|
595
|
+
"type": "Any"
|
|
481
596
|
}
|
|
482
597
|
}
|
|
483
598
|
},
|
|
484
|
-
"@toddle/
|
|
485
|
-
"name": "
|
|
599
|
+
"@toddle/timestamp": {
|
|
600
|
+
"name": "Timestamp",
|
|
601
|
+
"description": "Get the timestamp from a Date, e.g. 1633462980000.",
|
|
486
602
|
"arguments": [
|
|
487
603
|
{
|
|
488
|
-
"name": "Date
|
|
489
|
-
"description": "
|
|
604
|
+
"name": "Date",
|
|
605
|
+
"description": "The date to get the timestamp from.",
|
|
490
606
|
"type": {
|
|
491
|
-
"type": "
|
|
607
|
+
"type": "Date"
|
|
492
608
|
},
|
|
493
609
|
"formula": {
|
|
494
610
|
"type": "value",
|
|
495
|
-
"value":
|
|
611
|
+
"value": null
|
|
496
612
|
}
|
|
497
613
|
}
|
|
498
614
|
],
|
|
499
|
-
"description": "Convert a string to a Date.",
|
|
500
615
|
"output": {
|
|
501
|
-
"description": "The
|
|
616
|
+
"description": "The timestamp from the date input.",
|
|
502
617
|
"type": {
|
|
503
|
-
"type": "
|
|
618
|
+
"type": "Number"
|
|
504
619
|
}
|
|
505
620
|
}
|
|
506
621
|
},
|
|
507
|
-
"@toddle/
|
|
508
|
-
"name": "
|
|
509
|
-
"description": "
|
|
622
|
+
"@toddle/decodeURIComponent": {
|
|
623
|
+
"name": "Decode URI Component",
|
|
624
|
+
"description": "Decode a URI component that was previously encoded with the Encode URI Component formula.",
|
|
625
|
+
"arguments": [
|
|
626
|
+
{
|
|
627
|
+
"name": "EncodedURI",
|
|
628
|
+
"formula": {
|
|
629
|
+
"type": "value",
|
|
630
|
+
"value": null
|
|
631
|
+
},
|
|
632
|
+
"type": {
|
|
633
|
+
"type": "String"
|
|
634
|
+
},
|
|
635
|
+
"description": "The encoded URI to decode."
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"output": {
|
|
639
|
+
"description": "The decoded URI component.",
|
|
640
|
+
"type": {
|
|
641
|
+
"type": "String"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"@toddle/boolean": {
|
|
646
|
+
"name": "Boolean",
|
|
647
|
+
"description": "Convert a value of any type to a Boolean.",
|
|
510
648
|
"arguments": [
|
|
511
649
|
{
|
|
512
650
|
"name": "Input",
|
|
513
|
-
"description": "Value of any type",
|
|
651
|
+
"description": "Value of any type.",
|
|
514
652
|
"type": {
|
|
515
653
|
"type": "Any"
|
|
516
654
|
},
|
|
@@ -521,88 +659,107 @@
|
|
|
521
659
|
}
|
|
522
660
|
],
|
|
523
661
|
"output": {
|
|
524
|
-
"description": "The input value converted to a
|
|
662
|
+
"description": "The input value converted to a Boolean. False and Null will return False, all other values will return True.",
|
|
525
663
|
"type": {
|
|
526
|
-
"type": "
|
|
664
|
+
"type": "Boolean"
|
|
527
665
|
}
|
|
528
666
|
}
|
|
529
667
|
},
|
|
530
|
-
"@toddle/
|
|
531
|
-
"name": "
|
|
532
|
-
"
|
|
533
|
-
|
|
534
|
-
|
|
668
|
+
"@toddle/dateFromString": {
|
|
669
|
+
"name": "Date From String",
|
|
670
|
+
"arguments": [
|
|
671
|
+
{
|
|
672
|
+
"name": "Date string",
|
|
673
|
+
"description": "A String representing a date, for example \"January 1, 1970\".",
|
|
674
|
+
"type": {
|
|
675
|
+
"type": "String"
|
|
676
|
+
},
|
|
677
|
+
"formula": {
|
|
678
|
+
"type": "value",
|
|
679
|
+
"value": "January 1, 1970"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"description": "Convert a string to a Date.",
|
|
535
684
|
"output": {
|
|
536
|
-
"description": "
|
|
685
|
+
"description": "The input value converted to a Date.",
|
|
537
686
|
"type": {
|
|
538
|
-
"type": "
|
|
687
|
+
"type": "Date"
|
|
539
688
|
}
|
|
540
689
|
}
|
|
541
690
|
},
|
|
542
|
-
"@toddle/
|
|
543
|
-
"name": "
|
|
544
|
-
"description": "Split a String into an Array of smaller strings each time a delimiter occurs. The delimiter will not be part of the output",
|
|
691
|
+
"@toddle/add": {
|
|
692
|
+
"name": "Add",
|
|
545
693
|
"arguments": [
|
|
546
694
|
{
|
|
547
|
-
"name": "
|
|
695
|
+
"name": "0",
|
|
696
|
+
"description": "Number to be added.",
|
|
697
|
+
"type": {
|
|
698
|
+
"type": "Number"
|
|
699
|
+
},
|
|
548
700
|
"formula": {
|
|
549
701
|
"type": "value",
|
|
550
|
-
"value":
|
|
551
|
-
},
|
|
552
|
-
"description": "The String to split.",
|
|
553
|
-
"type": {
|
|
554
|
-
"type": "String"
|
|
702
|
+
"value": 1
|
|
555
703
|
}
|
|
556
704
|
},
|
|
557
705
|
{
|
|
558
|
-
"name": "
|
|
706
|
+
"name": "1",
|
|
707
|
+
"type": {
|
|
708
|
+
"type": "Number"
|
|
709
|
+
},
|
|
710
|
+
"description": "Number to be added.",
|
|
559
711
|
"formula": {
|
|
560
712
|
"type": "value",
|
|
561
|
-
"value":
|
|
562
|
-
},
|
|
563
|
-
"description": "The string to split by.",
|
|
564
|
-
"type": {
|
|
565
|
-
"type": "String"
|
|
713
|
+
"value": 1
|
|
566
714
|
}
|
|
567
715
|
}
|
|
568
716
|
],
|
|
717
|
+
"variableArguments": true,
|
|
718
|
+
"description": "Get the sum of multiple numbers.",
|
|
569
719
|
"output": {
|
|
570
|
-
"description": "
|
|
720
|
+
"description": "The sum of all the input numbers.",
|
|
571
721
|
"type": {
|
|
572
|
-
"type": "
|
|
573
|
-
"ofType": {
|
|
574
|
-
"type": "String"
|
|
575
|
-
}
|
|
722
|
+
"type": "Number"
|
|
576
723
|
}
|
|
577
724
|
}
|
|
578
725
|
},
|
|
579
|
-
"@toddle/
|
|
580
|
-
"name": "
|
|
581
|
-
"description": "
|
|
582
|
-
"cache": false,
|
|
726
|
+
"@toddle/modulo": {
|
|
727
|
+
"name": "Modulo",
|
|
728
|
+
"description": "Get the remainder when dividing two Numbers.",
|
|
583
729
|
"arguments": [
|
|
584
730
|
{
|
|
585
|
-
"name": "
|
|
731
|
+
"name": "Dividend",
|
|
586
732
|
"formula": {
|
|
587
733
|
"type": "value",
|
|
588
|
-
"value":
|
|
734
|
+
"value": 1
|
|
589
735
|
},
|
|
590
|
-
"description": "The
|
|
736
|
+
"description": "The number to be divided.",
|
|
591
737
|
"type": {
|
|
592
|
-
"type": "
|
|
738
|
+
"type": "Number"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "Divider",
|
|
743
|
+
"formula": {
|
|
744
|
+
"type": "value",
|
|
745
|
+
"value": 1
|
|
746
|
+
},
|
|
747
|
+
"description": "The number to divide by.",
|
|
748
|
+
"type": {
|
|
749
|
+
"type": "Number"
|
|
593
750
|
}
|
|
594
751
|
}
|
|
595
752
|
],
|
|
596
753
|
"output": {
|
|
597
|
-
"description": "The
|
|
754
|
+
"description": "The remainder when the Dividend is divided by the Divider.",
|
|
598
755
|
"type": {
|
|
599
|
-
"type": "
|
|
756
|
+
"type": "Number"
|
|
600
757
|
}
|
|
601
758
|
}
|
|
602
759
|
},
|
|
603
|
-
"@toddle/
|
|
604
|
-
"name": "
|
|
605
|
-
"description": "
|
|
760
|
+
"@toddle/keyBy": {
|
|
761
|
+
"name": "Key by",
|
|
762
|
+
"description": "Organize an Array of items into an Object based on a Key formula.",
|
|
606
763
|
"arguments": [
|
|
607
764
|
{
|
|
608
765
|
"name": "Array",
|
|
@@ -610,81 +767,72 @@
|
|
|
610
767
|
"type": "value",
|
|
611
768
|
"value": null
|
|
612
769
|
},
|
|
613
|
-
"description": "
|
|
770
|
+
"description": "Array of items.",
|
|
614
771
|
"type": {
|
|
615
|
-
"type": "Array
|
|
772
|
+
"type": "Array"
|
|
616
773
|
}
|
|
617
774
|
},
|
|
618
775
|
{
|
|
619
|
-
"name": "
|
|
776
|
+
"name": "Formula",
|
|
777
|
+
"isFunction": true,
|
|
620
778
|
"formula": {
|
|
621
779
|
"type": "value",
|
|
622
|
-
"value":
|
|
780
|
+
"value": null
|
|
623
781
|
},
|
|
782
|
+
"description": "The key formula used to index the items. The String returned from the formula will match the key in the output Object.",
|
|
624
783
|
"type": {
|
|
625
|
-
"type": "
|
|
626
|
-
}
|
|
627
|
-
"description": "Number of items to take."
|
|
784
|
+
"type": "Formula"
|
|
785
|
+
}
|
|
628
786
|
}
|
|
629
787
|
],
|
|
630
788
|
"output": {
|
|
631
|
-
"description": "
|
|
789
|
+
"description": "An Object where each key matches a value returned by the key formula, and each value is the item that String was returned for.",
|
|
632
790
|
"type": {
|
|
633
|
-
"type": "
|
|
791
|
+
"type": "Object"
|
|
634
792
|
}
|
|
635
793
|
}
|
|
636
794
|
},
|
|
637
|
-
"@toddle/
|
|
638
|
-
"name": "
|
|
639
|
-
"description": "Compute if a value is smaller than or equal to another value.",
|
|
795
|
+
"@toddle/dateFromTimestamp": {
|
|
796
|
+
"name": "Date From Timestamp",
|
|
640
797
|
"arguments": [
|
|
641
798
|
{
|
|
642
|
-
"name": "
|
|
643
|
-
"
|
|
644
|
-
"type": "value",
|
|
645
|
-
"value": ""
|
|
646
|
-
},
|
|
647
|
-
"description": "First Number to be compared.",
|
|
799
|
+
"name": "Timestamp",
|
|
800
|
+
"description": "A Number in milliseconds since 1st January, 1970 (EPOCH).",
|
|
648
801
|
"type": {
|
|
649
802
|
"type": "Number"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
"name": "Second",
|
|
803
|
+
},
|
|
654
804
|
"formula": {
|
|
655
805
|
"type": "value",
|
|
656
|
-
"value":
|
|
657
|
-
},
|
|
658
|
-
"description": "Second Number to be compared.",
|
|
659
|
-
"type": {
|
|
660
|
-
"type": "Number"
|
|
806
|
+
"value": 1687787245933
|
|
661
807
|
}
|
|
662
808
|
}
|
|
663
809
|
],
|
|
810
|
+
"description": "Convert a timestamp (milliseconds) to a Date.",
|
|
664
811
|
"output": {
|
|
665
|
-
"description": "
|
|
812
|
+
"description": "The input value converted to a Date.",
|
|
666
813
|
"type": {
|
|
667
|
-
"type": "
|
|
814
|
+
"type": "Date"
|
|
668
815
|
}
|
|
669
816
|
}
|
|
670
817
|
},
|
|
671
|
-
"@toddle/
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "
|
|
818
|
+
"@toddle/find": {
|
|
819
|
+
"name": "Find",
|
|
820
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the first item where the provided formula returns True.",
|
|
674
821
|
"arguments": [
|
|
675
822
|
{
|
|
676
823
|
"name": "Array",
|
|
677
824
|
"formula": {
|
|
678
825
|
"type": "value",
|
|
679
|
-
"value":
|
|
826
|
+
"value": null
|
|
680
827
|
},
|
|
828
|
+
"description": "The array to search through",
|
|
681
829
|
"type": {
|
|
682
830
|
"type": "Array"
|
|
683
|
-
}
|
|
684
|
-
"description": "The input Array."
|
|
831
|
+
}
|
|
685
832
|
},
|
|
686
833
|
{
|
|
687
834
|
"name": "Formula",
|
|
835
|
+
"isFunction": true,
|
|
688
836
|
"formula": {
|
|
689
837
|
"type": "path",
|
|
690
838
|
"path": [
|
|
@@ -692,34 +840,22 @@
|
|
|
692
840
|
"item"
|
|
693
841
|
]
|
|
694
842
|
},
|
|
843
|
+
"description": "The predicate formula that each item in the array is passed to.",
|
|
695
844
|
"type": {
|
|
696
845
|
"type": "Formula"
|
|
697
|
-
}
|
|
698
|
-
"isFunction": true,
|
|
699
|
-
"description": "The sorting formula. The output of this formula will determine the sort order of the items. If the formula returns an Array, the items will first be sorted by the first item, then the second, etc."
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
"name": "Ascending?",
|
|
703
|
-
"formula": {
|
|
704
|
-
"type": "value",
|
|
705
|
-
"value": true
|
|
706
|
-
},
|
|
707
|
-
"type": {
|
|
708
|
-
"type": "Boolean"
|
|
709
|
-
},
|
|
710
|
-
"description": "Should the list be sorted in ascending order?"
|
|
846
|
+
}
|
|
711
847
|
}
|
|
712
848
|
],
|
|
713
849
|
"output": {
|
|
714
|
-
"description": "The
|
|
850
|
+
"description": "The first item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
715
851
|
"type": {
|
|
716
|
-
"type": "
|
|
852
|
+
"type": "Any"
|
|
717
853
|
}
|
|
718
854
|
}
|
|
719
855
|
},
|
|
720
|
-
"@toddle/
|
|
721
|
-
"name": "
|
|
722
|
-
"description": "
|
|
856
|
+
"@toddle/map": {
|
|
857
|
+
"name": "Map",
|
|
858
|
+
"description": "Run a formula on each item of an Array to return a new Array.",
|
|
723
859
|
"arguments": [
|
|
724
860
|
{
|
|
725
861
|
"name": "Array",
|
|
@@ -727,7 +863,7 @@
|
|
|
727
863
|
"type": "value",
|
|
728
864
|
"value": null
|
|
729
865
|
},
|
|
730
|
-
"description": "Array of items
|
|
866
|
+
"description": "The Array of items.",
|
|
731
867
|
"type": {
|
|
732
868
|
"type": "Array"
|
|
733
869
|
}
|
|
@@ -736,144 +872,112 @@
|
|
|
736
872
|
"name": "Formula",
|
|
737
873
|
"isFunction": true,
|
|
738
874
|
"formula": {
|
|
739
|
-
"type": "
|
|
740
|
-
"
|
|
875
|
+
"type": "path",
|
|
876
|
+
"path": [
|
|
877
|
+
"Args",
|
|
878
|
+
"item"
|
|
879
|
+
]
|
|
741
880
|
},
|
|
742
|
-
"description": "The
|
|
881
|
+
"description": "The formula to run on each item of the Array.",
|
|
743
882
|
"type": {
|
|
744
883
|
"type": "Formula"
|
|
745
884
|
}
|
|
746
885
|
}
|
|
747
886
|
],
|
|
748
887
|
"output": {
|
|
749
|
-
"description": "
|
|
888
|
+
"description": "A new Array containing all the values returned from running the provided formula on each item in the provided input Array.",
|
|
750
889
|
"type": {
|
|
751
|
-
"type": "
|
|
890
|
+
"type": "Array"
|
|
752
891
|
}
|
|
753
892
|
}
|
|
754
893
|
},
|
|
755
|
-
"@toddle/
|
|
756
|
-
"name": "
|
|
757
|
-
"description": "
|
|
894
|
+
"@toddle/number": {
|
|
895
|
+
"name": "Number",
|
|
896
|
+
"description": "Convert a value of any type to a Number.",
|
|
758
897
|
"arguments": [
|
|
759
898
|
{
|
|
760
|
-
"name": "
|
|
761
|
-
"
|
|
762
|
-
"type": "value",
|
|
763
|
-
"value": ""
|
|
764
|
-
},
|
|
765
|
-
"description": "First value.",
|
|
899
|
+
"name": "Input",
|
|
900
|
+
"description": "Value of any type",
|
|
766
901
|
"type": {
|
|
767
902
|
"type": "Any"
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
"name": "Second",
|
|
903
|
+
},
|
|
772
904
|
"formula": {
|
|
773
905
|
"type": "value",
|
|
774
|
-
"value": ""
|
|
775
|
-
},
|
|
776
|
-
"description": "Second value.",
|
|
777
|
-
"type": {
|
|
778
|
-
"type": "Any"
|
|
906
|
+
"value": "1"
|
|
779
907
|
}
|
|
780
908
|
}
|
|
781
909
|
],
|
|
782
910
|
"output": {
|
|
783
|
-
"description": "
|
|
911
|
+
"description": "The input value converted to a Number.",
|
|
784
912
|
"type": {
|
|
785
|
-
"type": "
|
|
913
|
+
"type": "Number"
|
|
786
914
|
}
|
|
787
915
|
}
|
|
788
916
|
},
|
|
789
|
-
"@toddle/
|
|
790
|
-
"name": "
|
|
791
|
-
"description": "
|
|
917
|
+
"@toddle/matches": {
|
|
918
|
+
"name": "Matches",
|
|
919
|
+
"description": "Finds the (global) matches in a String based on a regular expression.",
|
|
792
920
|
"arguments": [
|
|
793
921
|
{
|
|
794
|
-
"name": "
|
|
922
|
+
"name": "Input",
|
|
795
923
|
"formula": {
|
|
796
924
|
"type": "value",
|
|
797
925
|
"value": ""
|
|
798
926
|
},
|
|
799
|
-
"description": "
|
|
927
|
+
"description": "The string to search for matches in.",
|
|
800
928
|
"type": {
|
|
801
|
-
"type": "
|
|
929
|
+
"type": "String"
|
|
802
930
|
}
|
|
803
931
|
},
|
|
804
932
|
{
|
|
805
|
-
"name": "
|
|
933
|
+
"name": "Regular expression",
|
|
806
934
|
"formula": {
|
|
807
935
|
"type": "value",
|
|
808
936
|
"value": ""
|
|
809
937
|
},
|
|
810
|
-
"description": "
|
|
938
|
+
"description": "The regular expression to use for matching.",
|
|
811
939
|
"type": {
|
|
812
|
-
"type": "
|
|
940
|
+
"type": "String"
|
|
813
941
|
}
|
|
814
|
-
}
|
|
815
|
-
],
|
|
816
|
-
"output": {
|
|
817
|
-
"description": "Returns True if the first Number is larger than or equal to the second Number.",
|
|
818
|
-
"type": {
|
|
819
|
-
"type": "Boolean"
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
"@toddle/capitalize": {
|
|
824
|
-
"name": "Capitalize",
|
|
825
|
-
"description": "Capitalize a string: make the first letter uppercase whilst keeping the rest lowercase.",
|
|
826
|
-
"arguments": [
|
|
942
|
+
},
|
|
827
943
|
{
|
|
828
|
-
"name": "
|
|
944
|
+
"name": "Global search",
|
|
829
945
|
"formula": {
|
|
830
946
|
"type": "value",
|
|
831
|
-
"value":
|
|
947
|
+
"value": true
|
|
832
948
|
},
|
|
833
|
-
"description": "
|
|
949
|
+
"description": "Test the regular expression against all possible matches in a string.",
|
|
834
950
|
"type": {
|
|
835
|
-
"type": "
|
|
951
|
+
"type": "Boolean"
|
|
836
952
|
}
|
|
837
|
-
}
|
|
838
|
-
],
|
|
839
|
-
"output": {
|
|
840
|
-
"description": "The capitalized String.",
|
|
841
|
-
"type": {
|
|
842
|
-
"type": "String"
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
"@toddle/dropLast": {
|
|
847
|
-
"name": "Drop last",
|
|
848
|
-
"description": "Remove item(s) from the end of an Array or String.",
|
|
849
|
-
"arguments": [
|
|
953
|
+
},
|
|
850
954
|
{
|
|
851
|
-
"name": "
|
|
955
|
+
"name": "Case insensitive",
|
|
852
956
|
"formula": {
|
|
853
957
|
"type": "value",
|
|
854
|
-
"value":
|
|
958
|
+
"value": false
|
|
855
959
|
},
|
|
856
|
-
"description": "
|
|
960
|
+
"description": "Ignore case while attempting a match in a string.",
|
|
857
961
|
"type": {
|
|
858
|
-
"type": "
|
|
962
|
+
"type": "Boolean"
|
|
859
963
|
}
|
|
860
964
|
},
|
|
861
965
|
{
|
|
862
|
-
"name": "
|
|
966
|
+
"name": "Multi line",
|
|
863
967
|
"formula": {
|
|
864
968
|
"type": "value",
|
|
865
|
-
"value":
|
|
969
|
+
"value": false
|
|
866
970
|
},
|
|
971
|
+
"description": "Treat multiline strings as multiple lines.",
|
|
867
972
|
"type": {
|
|
868
|
-
"type": "
|
|
869
|
-
}
|
|
870
|
-
"description": "Number of items to remove."
|
|
973
|
+
"type": "Boolean"
|
|
974
|
+
}
|
|
871
975
|
}
|
|
872
976
|
],
|
|
873
977
|
"output": {
|
|
874
|
-
"description": "
|
|
978
|
+
"description": "An Array of Strings",
|
|
875
979
|
"type": {
|
|
876
|
-
"type": "Array
|
|
980
|
+
"type": "Array"
|
|
877
981
|
}
|
|
878
982
|
}
|
|
879
983
|
},
|
|
@@ -911,417 +1015,378 @@
|
|
|
911
1015
|
}
|
|
912
1016
|
}
|
|
913
1017
|
},
|
|
914
|
-
"@toddle/
|
|
915
|
-
"name": "
|
|
916
|
-
"description": "
|
|
1018
|
+
"@toddle/fromEntries": {
|
|
1019
|
+
"name": "From entries",
|
|
1020
|
+
"description": "Transform an Array of key-value pairs into an Object. This formula is the reverse of Entries.",
|
|
917
1021
|
"arguments": [
|
|
918
1022
|
{
|
|
919
|
-
"name": "
|
|
1023
|
+
"name": "Array",
|
|
920
1024
|
"formula": {
|
|
921
1025
|
"type": "value",
|
|
922
1026
|
"value": null
|
|
923
1027
|
},
|
|
924
|
-
"description": "
|
|
925
|
-
"type": {
|
|
926
|
-
"type": "Array \\| Object"
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"name": "Path",
|
|
931
|
-
"formula": {
|
|
932
|
-
"type": "value",
|
|
933
|
-
"value": "Item"
|
|
934
|
-
},
|
|
935
|
-
"description": "The path can be either a Number (if the first argument is an array), a String, or an Array of strings. If an Array is given, the property at that path will be removed.",
|
|
1028
|
+
"description": "An Array of Objects. Each Object should have a `key` and `value` property named `key` and `value` respectively e.g. `[{ key: 'yourKey', value: 'yourValue' }]`.",
|
|
936
1029
|
"type": {
|
|
937
|
-
"type": "Array
|
|
1030
|
+
"type": "Array"
|
|
938
1031
|
}
|
|
939
1032
|
}
|
|
940
1033
|
],
|
|
941
1034
|
"output": {
|
|
942
|
-
"description": "
|
|
1035
|
+
"description": "An Object containing all entries from the input Array in the format `{yourKey: yourValue}`.",
|
|
943
1036
|
"type": {
|
|
944
1037
|
"type": "Object"
|
|
945
1038
|
}
|
|
946
1039
|
}
|
|
947
1040
|
},
|
|
948
|
-
"@toddle/
|
|
949
|
-
"name": "
|
|
950
|
-
"description": "
|
|
1041
|
+
"@toddle/string": {
|
|
1042
|
+
"name": "String",
|
|
1043
|
+
"description": "Convert a value of any type to a String.",
|
|
951
1044
|
"arguments": [
|
|
952
1045
|
{
|
|
953
|
-
"name": "
|
|
954
|
-
"
|
|
955
|
-
"type": "value",
|
|
956
|
-
"value": null
|
|
957
|
-
},
|
|
958
|
-
"description": "The name of the cookie you want to get the value of.",
|
|
1046
|
+
"name": "Input",
|
|
1047
|
+
"description": "Value of any type.",
|
|
959
1048
|
"type": {
|
|
960
|
-
"type": "
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
],
|
|
964
|
-
"output": {
|
|
965
|
-
"description": "The value of the cookie. If a value is not found, this return value will be Null.",
|
|
966
|
-
"type": {
|
|
967
|
-
"type": "String"
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
"@toddle/modulo": {
|
|
972
|
-
"name": "Modulo",
|
|
973
|
-
"description": "Get the remainder when dividing two Numbers.",
|
|
974
|
-
"arguments": [
|
|
975
|
-
{
|
|
976
|
-
"name": "Dividend",
|
|
977
|
-
"formula": {
|
|
978
|
-
"type": "value",
|
|
979
|
-
"value": 1
|
|
1049
|
+
"type": "Any"
|
|
980
1050
|
},
|
|
981
|
-
"description": "The number to be divided.",
|
|
982
|
-
"type": {
|
|
983
|
-
"type": "Number"
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"name": "Divider",
|
|
988
1051
|
"formula": {
|
|
989
1052
|
"type": "value",
|
|
990
|
-
"value": 1
|
|
991
|
-
},
|
|
992
|
-
"description": "The number to divide by.",
|
|
993
|
-
"type": {
|
|
994
|
-
"type": "Number"
|
|
1053
|
+
"value": "1"
|
|
995
1054
|
}
|
|
996
1055
|
}
|
|
997
1056
|
],
|
|
998
1057
|
"output": {
|
|
999
|
-
"description": "The
|
|
1058
|
+
"description": "The input value converted to a String",
|
|
1000
1059
|
"type": {
|
|
1001
|
-
"type": "
|
|
1060
|
+
"type": "String"
|
|
1002
1061
|
}
|
|
1003
1062
|
}
|
|
1004
1063
|
},
|
|
1005
|
-
"@toddle/
|
|
1006
|
-
"name": "
|
|
1007
|
-
"description": "
|
|
1008
|
-
"arguments": [
|
|
1009
|
-
{
|
|
1010
|
-
"name": "Value",
|
|
1011
|
-
"type": {
|
|
1012
|
-
"type": "Number"
|
|
1013
|
-
},
|
|
1014
|
-
"formula": {
|
|
1015
|
-
"type": "value",
|
|
1016
|
-
"value": null
|
|
1017
|
-
},
|
|
1018
|
-
"description": "Number to round."
|
|
1019
|
-
},
|
|
1064
|
+
"@toddle/append": {
|
|
1065
|
+
"name": "Append",
|
|
1066
|
+
"description": "Add an element to the end of an Array.",
|
|
1067
|
+
"arguments": [
|
|
1020
1068
|
{
|
|
1021
|
-
"name": "
|
|
1069
|
+
"name": "Array",
|
|
1022
1070
|
"type": {
|
|
1023
|
-
"type": "
|
|
1071
|
+
"type": "Array"
|
|
1024
1072
|
},
|
|
1025
|
-
"description": "The
|
|
1073
|
+
"description": "The Array to append to.",
|
|
1026
1074
|
"formula": {
|
|
1027
|
-
"type": "
|
|
1028
|
-
"
|
|
1075
|
+
"type": "array",
|
|
1076
|
+
"arguments": []
|
|
1029
1077
|
}
|
|
1030
1078
|
},
|
|
1031
1079
|
{
|
|
1032
|
-
"name": "
|
|
1080
|
+
"name": "Item",
|
|
1033
1081
|
"type": {
|
|
1034
|
-
"type": "
|
|
1082
|
+
"type": "Any"
|
|
1035
1083
|
},
|
|
1036
|
-
"description": "The
|
|
1084
|
+
"description": "The item to append to the Array.",
|
|
1037
1085
|
"formula": {
|
|
1038
1086
|
"type": "value",
|
|
1039
|
-
"value":
|
|
1087
|
+
"value": "Item"
|
|
1040
1088
|
}
|
|
1041
1089
|
}
|
|
1042
1090
|
],
|
|
1043
1091
|
"output": {
|
|
1092
|
+
"description": "A new Array containing all elements from the input Array, including the new item.",
|
|
1044
1093
|
"type": {
|
|
1045
|
-
"type": "
|
|
1046
|
-
}
|
|
1047
|
-
"description": "Returns the input value if between the specified Min and Max. Otherwise, it returns the Min or Max value."
|
|
1094
|
+
"type": "Array"
|
|
1095
|
+
}
|
|
1048
1096
|
}
|
|
1049
1097
|
},
|
|
1050
|
-
"@toddle/
|
|
1051
|
-
"name": "
|
|
1052
|
-
"description": "
|
|
1098
|
+
"@toddle/greaterOrEqueal": {
|
|
1099
|
+
"name": "Greater or equal",
|
|
1100
|
+
"description": "Compute whether a value is larger than or equal to another value.",
|
|
1053
1101
|
"arguments": [
|
|
1054
1102
|
{
|
|
1055
|
-
"name": "
|
|
1056
|
-
"
|
|
1057
|
-
|
|
1058
|
-
"
|
|
1103
|
+
"name": "First",
|
|
1104
|
+
"formula": {
|
|
1105
|
+
"type": "value",
|
|
1106
|
+
"value": ""
|
|
1059
1107
|
},
|
|
1108
|
+
"description": "First value to be compared.",
|
|
1109
|
+
"type": {
|
|
1110
|
+
"type": "Number"
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"name": "Second",
|
|
1060
1115
|
"formula": {
|
|
1061
|
-
"type": "
|
|
1062
|
-
"
|
|
1116
|
+
"type": "value",
|
|
1117
|
+
"value": ""
|
|
1118
|
+
},
|
|
1119
|
+
"description": "Second value to be compared.",
|
|
1120
|
+
"type": {
|
|
1121
|
+
"type": "Number"
|
|
1063
1122
|
}
|
|
1064
1123
|
}
|
|
1065
1124
|
],
|
|
1066
1125
|
"output": {
|
|
1067
|
-
"description": "
|
|
1126
|
+
"description": "Returns True if the first Number is larger than or equal to the second Number.",
|
|
1068
1127
|
"type": {
|
|
1069
|
-
"type": "
|
|
1128
|
+
"type": "Boolean"
|
|
1070
1129
|
}
|
|
1071
1130
|
}
|
|
1072
1131
|
},
|
|
1073
|
-
"@toddle/
|
|
1074
|
-
"name": "
|
|
1075
|
-
"description": "
|
|
1132
|
+
"@toddle/encodeURIComponent": {
|
|
1133
|
+
"name": "Encode URI Component",
|
|
1134
|
+
"description": "Encode a URI component, escaping certain characters to their UTF-8 representation.",
|
|
1076
1135
|
"arguments": [
|
|
1077
1136
|
{
|
|
1078
|
-
"name": "
|
|
1137
|
+
"name": "URIComponent",
|
|
1079
1138
|
"formula": {
|
|
1080
1139
|
"type": "value",
|
|
1081
1140
|
"value": null
|
|
1082
1141
|
},
|
|
1083
|
-
"description": "The
|
|
1142
|
+
"description": "The URI component to encode.",
|
|
1084
1143
|
"type": {
|
|
1085
|
-
"type": "
|
|
1144
|
+
"type": "String"
|
|
1086
1145
|
}
|
|
1087
1146
|
}
|
|
1088
1147
|
],
|
|
1089
1148
|
"output": {
|
|
1149
|
+
"description": "The encoded URI component.",
|
|
1090
1150
|
"type": {
|
|
1091
|
-
"type": "
|
|
1092
|
-
}
|
|
1093
|
-
"description": "The reversed Array."
|
|
1151
|
+
"type": "String"
|
|
1152
|
+
}
|
|
1094
1153
|
}
|
|
1095
1154
|
},
|
|
1096
|
-
"@toddle/
|
|
1097
|
-
"name": "
|
|
1098
|
-
"description": "Get the timestamp from a Date, e.g. 1633462980000.",
|
|
1155
|
+
"@toddle/formatDate": {
|
|
1156
|
+
"name": "Format Date",
|
|
1099
1157
|
"arguments": [
|
|
1100
1158
|
{
|
|
1101
1159
|
"name": "Date",
|
|
1102
|
-
"description": "
|
|
1160
|
+
"description": "Date to format",
|
|
1103
1161
|
"type": {
|
|
1104
1162
|
"type": "Date"
|
|
1105
1163
|
},
|
|
1164
|
+
"formula": {
|
|
1165
|
+
"type": "Date",
|
|
1166
|
+
"value": null
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "Locale(s)",
|
|
1171
|
+
"description": "Optional locale to use for formatting the Date, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
1172
|
+
"type": {
|
|
1173
|
+
"type": "Array \\| String"
|
|
1174
|
+
},
|
|
1175
|
+
"formula": {
|
|
1176
|
+
"type": "value",
|
|
1177
|
+
"value": null
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "Options",
|
|
1182
|
+
"description": "Optional Object for configuring the formatting of the output. See the [DateTimeFormat syntax on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax).",
|
|
1183
|
+
"type": {
|
|
1184
|
+
"type": "Object"
|
|
1185
|
+
},
|
|
1106
1186
|
"formula": {
|
|
1107
1187
|
"type": "value",
|
|
1108
1188
|
"value": null
|
|
1109
1189
|
}
|
|
1110
1190
|
}
|
|
1111
1191
|
],
|
|
1192
|
+
"description": "Format a date using the Intl.DateTimeFormat API. See the [DateTimeFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat).",
|
|
1112
1193
|
"output": {
|
|
1113
|
-
"description": "The
|
|
1194
|
+
"description": "The Date input formatted as a String.",
|
|
1114
1195
|
"type": {
|
|
1115
|
-
"type": "
|
|
1196
|
+
"type": "String"
|
|
1116
1197
|
}
|
|
1117
1198
|
}
|
|
1118
1199
|
},
|
|
1119
|
-
"@toddle/
|
|
1120
|
-
"name": "
|
|
1200
|
+
"@toddle/not": {
|
|
1201
|
+
"name": "Not",
|
|
1202
|
+
"description": "Get the Boolean opposite of an input value.",
|
|
1121
1203
|
"arguments": [
|
|
1122
1204
|
{
|
|
1123
|
-
"name": "
|
|
1205
|
+
"name": "Input",
|
|
1124
1206
|
"formula": {
|
|
1125
1207
|
"type": "value",
|
|
1126
|
-
"value":
|
|
1208
|
+
"value": true
|
|
1127
1209
|
},
|
|
1210
|
+
"description": "The input value.",
|
|
1128
1211
|
"type": {
|
|
1129
|
-
"type": "
|
|
1130
|
-
}
|
|
1131
|
-
"description": "The input data encoded as base64."
|
|
1212
|
+
"type": "Boolean"
|
|
1213
|
+
}
|
|
1132
1214
|
}
|
|
1133
1215
|
],
|
|
1134
|
-
"description": "Deocde a base64 string to utf-8.",
|
|
1135
|
-
"output": {
|
|
1136
|
-
"description": "The decoded string.",
|
|
1137
|
-
"type": {
|
|
1138
|
-
"type": "String"
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
"@toddle/branchName": {
|
|
1143
|
-
"name": "Branch Name",
|
|
1144
|
-
"description": "Get the name of the current branch. For production, the branch name is 'main'.",
|
|
1145
|
-
"arguments": [],
|
|
1146
1216
|
"output": {
|
|
1147
|
-
"description": "Returns the
|
|
1217
|
+
"description": "Returns True if the input value is False, and False if the input value is True.",
|
|
1148
1218
|
"type": {
|
|
1149
|
-
"type": "
|
|
1219
|
+
"type": "Boolean"
|
|
1150
1220
|
}
|
|
1151
1221
|
}
|
|
1152
1222
|
},
|
|
1153
|
-
"@toddle/
|
|
1154
|
-
"name": "
|
|
1155
|
-
"description": "
|
|
1223
|
+
"@toddle/logarithm": {
|
|
1224
|
+
"name": "Logarithm",
|
|
1225
|
+
"description": "Return the logarithm of a Number.",
|
|
1156
1226
|
"arguments": [
|
|
1157
1227
|
{
|
|
1158
|
-
"name": "
|
|
1228
|
+
"name": "Number",
|
|
1159
1229
|
"formula": {
|
|
1160
1230
|
"type": "value",
|
|
1161
1231
|
"value": 1
|
|
1162
1232
|
},
|
|
1163
|
-
"description": "
|
|
1233
|
+
"description": "A Number greater than or equal to 0.",
|
|
1164
1234
|
"type": {
|
|
1165
|
-
"type": "
|
|
1235
|
+
"type": "Number"
|
|
1166
1236
|
}
|
|
1167
1237
|
}
|
|
1168
1238
|
],
|
|
1169
1239
|
"output": {
|
|
1170
|
-
"description": "The type of the input value. Types can be one of: String, Boolean, Number, Array, Object, or Null.",
|
|
1171
1240
|
"type": {
|
|
1172
|
-
"type": "
|
|
1173
|
-
}
|
|
1241
|
+
"type": "Number"
|
|
1242
|
+
},
|
|
1243
|
+
"description": "The natural logarithm of the Number."
|
|
1174
1244
|
}
|
|
1175
1245
|
},
|
|
1176
|
-
"@toddle/
|
|
1177
|
-
"name": "
|
|
1178
|
-
"description": "
|
|
1246
|
+
"@toddle/set": {
|
|
1247
|
+
"name": "Set",
|
|
1248
|
+
"description": "Set a value in an Object or Array based on a specified path.",
|
|
1179
1249
|
"arguments": [
|
|
1180
1250
|
{
|
|
1181
|
-
"name": "
|
|
1251
|
+
"name": "Object",
|
|
1182
1252
|
"formula": {
|
|
1183
1253
|
"type": "value",
|
|
1184
1254
|
"value": null
|
|
1185
1255
|
},
|
|
1186
|
-
"description": "The
|
|
1256
|
+
"description": "The input Object.",
|
|
1187
1257
|
"type": {
|
|
1188
|
-
"type": "
|
|
1258
|
+
"type": "Object"
|
|
1189
1259
|
}
|
|
1190
1260
|
},
|
|
1191
1261
|
{
|
|
1192
|
-
"name": "
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
"
|
|
1262
|
+
"name": "Path",
|
|
1263
|
+
"formula": {
|
|
1264
|
+
"type": "value",
|
|
1265
|
+
"value": "Key"
|
|
1196
1266
|
},
|
|
1267
|
+
"description": "The Path can be either a Number, a String or an Array of Strings.",
|
|
1268
|
+
"type": {
|
|
1269
|
+
"type": "Array \\| Number \\| String"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"name": "Value",
|
|
1197
1274
|
"formula": {
|
|
1198
1275
|
"type": "value",
|
|
1199
|
-
"value": "
|
|
1276
|
+
"value": "Item"
|
|
1277
|
+
},
|
|
1278
|
+
"description": "The value to set.",
|
|
1279
|
+
"type": {
|
|
1280
|
+
"type": "Any"
|
|
1200
1281
|
}
|
|
1201
1282
|
}
|
|
1202
1283
|
],
|
|
1203
|
-
"variableArguments": true,
|
|
1204
|
-
"output": {
|
|
1205
|
-
"description": "Returns the first value that is not False or Null. Returns Null if no valid values is given.",
|
|
1206
|
-
"type": {
|
|
1207
|
-
"type": "Any"
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
},
|
|
1211
|
-
"@toddle/languages": {
|
|
1212
|
-
"name": "Languages",
|
|
1213
|
-
"description": "An array of the preferred languages for the user, based on the Navigator.languages property (on the client) or the Accept-Language header (on the server).",
|
|
1214
|
-
"arguments": [],
|
|
1215
1284
|
"output": {
|
|
1216
|
-
"description": "
|
|
1285
|
+
"description": "The input Object with the new field.",
|
|
1217
1286
|
"type": {
|
|
1218
|
-
"type": "
|
|
1287
|
+
"type": "Object"
|
|
1219
1288
|
}
|
|
1220
1289
|
}
|
|
1221
1290
|
},
|
|
1222
|
-
"@toddle/
|
|
1223
|
-
"name": "
|
|
1224
|
-
"description": "
|
|
1291
|
+
"@toddle/deleteKey": {
|
|
1292
|
+
"name": "Delete",
|
|
1293
|
+
"description": "Return a copy of the input Object or Array without the specified key.",
|
|
1225
1294
|
"arguments": [
|
|
1226
1295
|
{
|
|
1227
|
-
"name": "
|
|
1296
|
+
"name": "Object",
|
|
1228
1297
|
"formula": {
|
|
1229
1298
|
"type": "value",
|
|
1230
1299
|
"value": null
|
|
1231
1300
|
},
|
|
1232
|
-
"description": "The
|
|
1301
|
+
"description": "The input record.",
|
|
1233
1302
|
"type": {
|
|
1234
|
-
"type": "Array"
|
|
1303
|
+
"type": "Array \\| Object"
|
|
1235
1304
|
}
|
|
1236
1305
|
},
|
|
1237
1306
|
{
|
|
1238
|
-
"name": "
|
|
1239
|
-
"isFunction": true,
|
|
1307
|
+
"name": "Path",
|
|
1240
1308
|
"formula": {
|
|
1241
|
-
"type": "
|
|
1242
|
-
"
|
|
1243
|
-
"Args",
|
|
1244
|
-
"item"
|
|
1245
|
-
]
|
|
1309
|
+
"type": "value",
|
|
1310
|
+
"value": "Item"
|
|
1246
1311
|
},
|
|
1247
|
-
"description": "The
|
|
1312
|
+
"description": "The path can be either a Number (if the first argument is an array), a String, or an Array of strings. If an Array is given, the property at that path will be removed.",
|
|
1248
1313
|
"type": {
|
|
1249
|
-
"type": "
|
|
1314
|
+
"type": "Array<Number \\| String> \\| Number \\| String"
|
|
1250
1315
|
}
|
|
1251
1316
|
}
|
|
1252
1317
|
],
|
|
1253
1318
|
"output": {
|
|
1254
|
-
"description": "
|
|
1319
|
+
"description": "A copy of the record without the property specified in the Path.",
|
|
1255
1320
|
"type": {
|
|
1256
|
-
"type": "
|
|
1321
|
+
"type": "Object"
|
|
1257
1322
|
}
|
|
1258
1323
|
}
|
|
1259
1324
|
},
|
|
1260
|
-
"@toddle/
|
|
1261
|
-
"name": "
|
|
1262
|
-
"description": "
|
|
1325
|
+
"@toddle/takeLast": {
|
|
1326
|
+
"name": "Take last",
|
|
1327
|
+
"description": "Take items from the end of an Array or String.",
|
|
1263
1328
|
"arguments": [
|
|
1264
1329
|
{
|
|
1330
|
+
"name": "Array",
|
|
1265
1331
|
"formula": {
|
|
1266
1332
|
"type": "value",
|
|
1267
|
-
"value":
|
|
1333
|
+
"value": null
|
|
1268
1334
|
},
|
|
1269
|
-
"
|
|
1270
|
-
"description": "The smallest value in the list.",
|
|
1335
|
+
"description": "The input value.",
|
|
1271
1336
|
"type": {
|
|
1272
|
-
"type": "
|
|
1337
|
+
"type": "Array \\| String"
|
|
1273
1338
|
}
|
|
1274
1339
|
},
|
|
1275
1340
|
{
|
|
1276
|
-
"name": "
|
|
1341
|
+
"name": "Count",
|
|
1277
1342
|
"formula": {
|
|
1278
1343
|
"type": "value",
|
|
1279
|
-
"value":
|
|
1344
|
+
"value": 1
|
|
1280
1345
|
},
|
|
1281
|
-
"description": "
|
|
1346
|
+
"description": "Number of items to take.",
|
|
1282
1347
|
"type": {
|
|
1283
1348
|
"type": "Number"
|
|
1284
1349
|
}
|
|
1285
1350
|
}
|
|
1286
1351
|
],
|
|
1287
1352
|
"output": {
|
|
1288
|
-
"description": "
|
|
1353
|
+
"description": "The last items from the Array or String.",
|
|
1289
1354
|
"type": {
|
|
1290
|
-
"type": "Array"
|
|
1355
|
+
"type": "Array \\| String"
|
|
1291
1356
|
}
|
|
1292
1357
|
}
|
|
1293
1358
|
},
|
|
1294
|
-
"@toddle/
|
|
1295
|
-
"name": "
|
|
1296
|
-
"description": "
|
|
1359
|
+
"@toddle/lastIndexOf": {
|
|
1360
|
+
"name": "Last Index of",
|
|
1361
|
+
"description": "Search an Array or String to find the index of the last occurrence of a specified item or substring.",
|
|
1297
1362
|
"arguments": [
|
|
1298
1363
|
{
|
|
1299
1364
|
"name": "Array",
|
|
1300
1365
|
"formula": {
|
|
1301
1366
|
"type": "value",
|
|
1302
|
-
"value":
|
|
1367
|
+
"value": ""
|
|
1303
1368
|
},
|
|
1304
|
-
"description": "
|
|
1369
|
+
"description": "The value to search.",
|
|
1305
1370
|
"type": {
|
|
1306
|
-
"type": "Array"
|
|
1371
|
+
"type": "Array \\| String"
|
|
1307
1372
|
}
|
|
1308
1373
|
},
|
|
1309
1374
|
{
|
|
1310
|
-
"name": "
|
|
1375
|
+
"name": "Item",
|
|
1311
1376
|
"formula": {
|
|
1312
1377
|
"type": "value",
|
|
1313
|
-
"value": "
|
|
1378
|
+
"value": ""
|
|
1314
1379
|
},
|
|
1315
|
-
"description": "
|
|
1380
|
+
"description": "The item or substring to search for.",
|
|
1316
1381
|
"type": {
|
|
1317
|
-
"type": "
|
|
1382
|
+
"type": "Any"
|
|
1318
1383
|
}
|
|
1319
1384
|
}
|
|
1320
1385
|
],
|
|
1321
1386
|
"output": {
|
|
1322
|
-
"description": "
|
|
1387
|
+
"description": "If the item or substring exists in the Array, the last index of that item is returned. If the item is not found, -1 is returned.",
|
|
1323
1388
|
"type": {
|
|
1324
|
-
"type": "
|
|
1389
|
+
"type": "Number"
|
|
1325
1390
|
}
|
|
1326
1391
|
}
|
|
1327
1392
|
},
|
|
@@ -1359,32 +1424,32 @@
|
|
|
1359
1424
|
"description": "The rounded Number."
|
|
1360
1425
|
}
|
|
1361
1426
|
},
|
|
1362
|
-
"@toddle/
|
|
1363
|
-
"name": "
|
|
1364
|
-
"description": "
|
|
1427
|
+
"@toddle/uppercase": {
|
|
1428
|
+
"name": "Uppercase",
|
|
1429
|
+
"description": "Convert a String to uppercase.",
|
|
1365
1430
|
"arguments": [
|
|
1366
1431
|
{
|
|
1367
|
-
"name": "
|
|
1432
|
+
"name": "String",
|
|
1368
1433
|
"formula": {
|
|
1369
1434
|
"type": "value",
|
|
1370
|
-
"value":
|
|
1435
|
+
"value": "string"
|
|
1371
1436
|
},
|
|
1372
|
-
"description": "
|
|
1437
|
+
"description": "Input String.",
|
|
1373
1438
|
"type": {
|
|
1374
1439
|
"type": "String"
|
|
1375
1440
|
}
|
|
1376
1441
|
}
|
|
1377
1442
|
],
|
|
1378
1443
|
"output": {
|
|
1379
|
-
"description": "The
|
|
1444
|
+
"description": "The input String with all characters converted to uppercase.",
|
|
1380
1445
|
"type": {
|
|
1381
1446
|
"type": "String"
|
|
1382
1447
|
}
|
|
1383
1448
|
}
|
|
1384
1449
|
},
|
|
1385
|
-
"@toddle/
|
|
1386
|
-
"name": "
|
|
1387
|
-
"description": "
|
|
1450
|
+
"@toddle/first": {
|
|
1451
|
+
"name": "First",
|
|
1452
|
+
"description": "Return the first item in an Array.",
|
|
1388
1453
|
"arguments": [
|
|
1389
1454
|
{
|
|
1390
1455
|
"name": "Array",
|
|
@@ -1395,226 +1460,125 @@
|
|
|
1395
1460
|
"type": {
|
|
1396
1461
|
"type": "Array"
|
|
1397
1462
|
},
|
|
1398
|
-
"description": "
|
|
1463
|
+
"description": "An Array of items."
|
|
1399
1464
|
}
|
|
1400
1465
|
],
|
|
1401
1466
|
"output": {
|
|
1402
|
-
"description": "The
|
|
1467
|
+
"description": "The first item in the Array.",
|
|
1403
1468
|
"type": {
|
|
1404
1469
|
"type": "Any"
|
|
1405
1470
|
}
|
|
1406
1471
|
}
|
|
1407
1472
|
},
|
|
1408
|
-
"@toddle/
|
|
1409
|
-
"name": "
|
|
1410
|
-
"description": "
|
|
1411
|
-
"arguments": [
|
|
1412
|
-
{
|
|
1413
|
-
"name": "Array",
|
|
1414
|
-
"formula": {
|
|
1415
|
-
"type": "value",
|
|
1416
|
-
"value": ""
|
|
1417
|
-
},
|
|
1418
|
-
"description": "The value to search.",
|
|
1419
|
-
"type": {
|
|
1420
|
-
"type": "Array \\| String"
|
|
1421
|
-
}
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"name": "Item",
|
|
1425
|
-
"formula": {
|
|
1426
|
-
"type": "value",
|
|
1427
|
-
"value": ""
|
|
1428
|
-
},
|
|
1429
|
-
"description": "The item or substring to search for.",
|
|
1430
|
-
"type": {
|
|
1431
|
-
"type": "Any"
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
],
|
|
1435
|
-
"output": {
|
|
1436
|
-
"description": "If the item or substring exists in the Array, the last index of that item is returned. If the item is not found, -1 is returned.",
|
|
1437
|
-
"type": {
|
|
1438
|
-
"type": "Number"
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
"@toddle/parseURL": {
|
|
1443
|
-
"name": "Parse URL",
|
|
1444
|
-
"description": "Parse a URL",
|
|
1473
|
+
"@toddle/encodeJSON": {
|
|
1474
|
+
"name": "Encode JSON",
|
|
1475
|
+
"description": "Encode data as JSON.",
|
|
1445
1476
|
"arguments": [
|
|
1446
1477
|
{
|
|
1447
|
-
"name": "
|
|
1478
|
+
"name": "Data",
|
|
1448
1479
|
"formula": {
|
|
1449
1480
|
"type": "value",
|
|
1450
1481
|
"value": null
|
|
1451
1482
|
},
|
|
1452
|
-
"description": "The
|
|
1483
|
+
"description": "The data to convert.",
|
|
1453
1484
|
"type": {
|
|
1454
|
-
"type": "
|
|
1485
|
+
"type": "Any"
|
|
1455
1486
|
}
|
|
1456
1487
|
},
|
|
1457
1488
|
{
|
|
1458
|
-
"name": "
|
|
1489
|
+
"name": "Indent",
|
|
1459
1490
|
"formula": {
|
|
1460
1491
|
"type": "value",
|
|
1461
|
-
"value":
|
|
1492
|
+
"value": 2
|
|
1462
1493
|
},
|
|
1463
|
-
"description": "
|
|
1494
|
+
"description": "How many characters the encoded value will be indented.",
|
|
1464
1495
|
"type": {
|
|
1465
|
-
"type": "
|
|
1496
|
+
"type": "Number"
|
|
1466
1497
|
}
|
|
1467
1498
|
}
|
|
1468
1499
|
],
|
|
1469
1500
|
"output": {
|
|
1470
|
-
"description": "
|
|
1501
|
+
"description": "The encoded JSON value.",
|
|
1471
1502
|
"type": {
|
|
1472
|
-
"type": "
|
|
1503
|
+
"type": "String"
|
|
1473
1504
|
}
|
|
1474
1505
|
}
|
|
1475
1506
|
},
|
|
1476
|
-
"@toddle/
|
|
1477
|
-
"name": "
|
|
1478
|
-
"description": "
|
|
1507
|
+
"@toddle/filter": {
|
|
1508
|
+
"name": "Filter",
|
|
1509
|
+
"description": "Return a new Array containing only the elements for which the provided formula evaluates to True.",
|
|
1479
1510
|
"arguments": [
|
|
1480
1511
|
{
|
|
1481
|
-
"name": "
|
|
1512
|
+
"name": "Array",
|
|
1482
1513
|
"formula": {
|
|
1483
1514
|
"type": "value",
|
|
1484
1515
|
"value": null
|
|
1485
1516
|
},
|
|
1486
|
-
"description": "
|
|
1517
|
+
"description": "The array of items to be filtered.",
|
|
1487
1518
|
"type": {
|
|
1488
|
-
"type": "
|
|
1519
|
+
"type": "Array"
|
|
1489
1520
|
}
|
|
1490
1521
|
},
|
|
1491
1522
|
{
|
|
1492
|
-
"name": "
|
|
1493
|
-
"
|
|
1494
|
-
"type": "value",
|
|
1495
|
-
"value": null
|
|
1496
|
-
},
|
|
1497
|
-
"description": "Input Number.",
|
|
1498
|
-
"type": {
|
|
1499
|
-
"type": "Number"
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
],
|
|
1503
|
-
"variableArguments": true,
|
|
1504
|
-
"output": {
|
|
1505
|
-
"description": "The largest of the input Numbers.",
|
|
1506
|
-
"type": {
|
|
1507
|
-
"type": "Number"
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
},
|
|
1511
|
-
"@toddle/squareRoot": {
|
|
1512
|
-
"name": "Square root",
|
|
1513
|
-
"description": "Get the square root of a Number.",
|
|
1514
|
-
"arguments": [
|
|
1515
|
-
{
|
|
1516
|
-
"name": "Number",
|
|
1523
|
+
"name": "Formula",
|
|
1524
|
+
"isFunction": true,
|
|
1517
1525
|
"formula": {
|
|
1518
|
-
"type": "
|
|
1519
|
-
"
|
|
1526
|
+
"type": "path",
|
|
1527
|
+
"path": [
|
|
1528
|
+
"Args",
|
|
1529
|
+
"item"
|
|
1530
|
+
]
|
|
1520
1531
|
},
|
|
1521
|
-
"description": "
|
|
1532
|
+
"description": "Predicate formula for filtering items.",
|
|
1522
1533
|
"type": {
|
|
1523
|
-
"type": "
|
|
1534
|
+
"type": "Formula"
|
|
1524
1535
|
}
|
|
1525
1536
|
}
|
|
1526
1537
|
],
|
|
1527
1538
|
"output": {
|
|
1528
|
-
"description": "
|
|
1539
|
+
"description": "New Array containing only the items for which the Formula evaluated to True.",
|
|
1529
1540
|
"type": {
|
|
1530
|
-
"type": "
|
|
1541
|
+
"type": "Array"
|
|
1531
1542
|
}
|
|
1532
1543
|
}
|
|
1533
1544
|
},
|
|
1534
|
-
"@toddle/
|
|
1535
|
-
"name": "Get
|
|
1536
|
-
"description": "
|
|
1537
|
-
"cache": false,
|
|
1545
|
+
"@toddle/getCookie": {
|
|
1546
|
+
"name": "Get Cookie",
|
|
1547
|
+
"description": "Get the value of a cookie by name. This formula is available both server-side and client-side. Http-Only cookies will only be available server-side.",
|
|
1538
1548
|
"arguments": [
|
|
1539
1549
|
{
|
|
1540
|
-
"name": "
|
|
1550
|
+
"name": "Cookie name",
|
|
1541
1551
|
"formula": {
|
|
1542
1552
|
"type": "value",
|
|
1543
1553
|
"value": null
|
|
1544
1554
|
},
|
|
1545
|
-
"description": "The
|
|
1555
|
+
"description": "The name of the cookie you want to get the value of.",
|
|
1546
1556
|
"type": {
|
|
1547
1557
|
"type": "String"
|
|
1548
1558
|
}
|
|
1549
1559
|
}
|
|
1550
1560
|
],
|
|
1551
1561
|
"output": {
|
|
1552
|
-
"description": "The value found
|
|
1553
|
-
"type": {
|
|
1554
|
-
"type": "Any"
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
},
|
|
1558
|
-
"@toddle/absolute": {
|
|
1559
|
-
"name": "Absolute",
|
|
1560
|
-
"description": "Get the absolute value of a Number.",
|
|
1561
|
-
"arguments": [
|
|
1562
|
-
{
|
|
1563
|
-
"name": "Value",
|
|
1564
|
-
"formula": {
|
|
1565
|
-
"type": "value",
|
|
1566
|
-
"value": -1
|
|
1567
|
-
},
|
|
1568
|
-
"type": {
|
|
1569
|
-
"type": "Number"
|
|
1570
|
-
},
|
|
1571
|
-
"description": "The input Number."
|
|
1572
|
-
}
|
|
1573
|
-
],
|
|
1574
|
-
"output": {
|
|
1575
|
-
"description": "The absolute value of the input.",
|
|
1562
|
+
"description": "The value of the cookie. If a value is not found, this return value will be Null.",
|
|
1576
1563
|
"type": {
|
|
1577
|
-
"type": "
|
|
1564
|
+
"type": "String"
|
|
1578
1565
|
}
|
|
1579
1566
|
}
|
|
1580
1567
|
},
|
|
1581
|
-
"@toddle/
|
|
1582
|
-
"name": "
|
|
1583
|
-
"description": "
|
|
1584
|
-
"arguments": [
|
|
1585
|
-
{
|
|
1586
|
-
"name": "Minuend",
|
|
1587
|
-
"formula": {
|
|
1588
|
-
"type": "value",
|
|
1589
|
-
"value": 1
|
|
1590
|
-
},
|
|
1591
|
-
"description": "The number to subtract from.",
|
|
1592
|
-
"type": {
|
|
1593
|
-
"type": "Number"
|
|
1594
|
-
}
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
"name": "Substrahend",
|
|
1598
|
-
"formula": {
|
|
1599
|
-
"type": "value",
|
|
1600
|
-
"value": 1
|
|
1601
|
-
},
|
|
1602
|
-
"description": "The number to subtract.",
|
|
1603
|
-
"type": {
|
|
1604
|
-
"type": "Number"
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
],
|
|
1568
|
+
"@toddle/languages": {
|
|
1569
|
+
"name": "Languages",
|
|
1570
|
+
"description": "An array of the preferred languages for the user, based on the Navigator.languages property (on the client) or the Accept-Language header (on the server).",
|
|
1571
|
+
"arguments": [],
|
|
1608
1572
|
"output": {
|
|
1609
|
-
"description": "
|
|
1573
|
+
"description": "An array with the preferred languages for the user.",
|
|
1610
1574
|
"type": {
|
|
1611
|
-
"type": "
|
|
1575
|
+
"type": "Array"
|
|
1612
1576
|
}
|
|
1613
1577
|
}
|
|
1614
1578
|
},
|
|
1615
|
-
"@toddle/
|
|
1616
|
-
"name": "
|
|
1617
|
-
"description": "
|
|
1579
|
+
"@toddle/findIndex": {
|
|
1580
|
+
"name": "Find index",
|
|
1581
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the index of the first item where the formula returns True.",
|
|
1618
1582
|
"arguments": [
|
|
1619
1583
|
{
|
|
1620
1584
|
"name": "Array",
|
|
@@ -1622,7 +1586,7 @@
|
|
|
1622
1586
|
"type": "value",
|
|
1623
1587
|
"value": null
|
|
1624
1588
|
},
|
|
1625
|
-
"description": "
|
|
1589
|
+
"description": "The array to search.",
|
|
1626
1590
|
"type": {
|
|
1627
1591
|
"type": "Array"
|
|
1628
1592
|
}
|
|
@@ -1631,296 +1595,300 @@
|
|
|
1631
1595
|
"name": "Formula",
|
|
1632
1596
|
"isFunction": true,
|
|
1633
1597
|
"formula": {
|
|
1634
|
-
"type": "
|
|
1635
|
-
"
|
|
1598
|
+
"type": "path",
|
|
1599
|
+
"path": [
|
|
1600
|
+
"Args",
|
|
1601
|
+
"item"
|
|
1602
|
+
]
|
|
1636
1603
|
},
|
|
1637
|
-
"description": "The
|
|
1604
|
+
"description": "The predicate formula that each item in the Array is passed to.",
|
|
1638
1605
|
"type": {
|
|
1639
1606
|
"type": "Formula"
|
|
1640
1607
|
}
|
|
1641
1608
|
}
|
|
1642
1609
|
],
|
|
1643
1610
|
"output": {
|
|
1644
|
-
"description": "
|
|
1611
|
+
"description": "The index of the first item in the Array where the predicate formula returns True. Returns -1 if the predicate formula did not return True for any item.",
|
|
1645
1612
|
"type": {
|
|
1646
|
-
"type": "
|
|
1613
|
+
"type": "Any"
|
|
1647
1614
|
}
|
|
1648
1615
|
}
|
|
1649
1616
|
},
|
|
1650
|
-
"@toddle/
|
|
1651
|
-
"name": "
|
|
1652
|
-
"description": "
|
|
1617
|
+
"@toddle/sum": {
|
|
1618
|
+
"name": "Sum",
|
|
1619
|
+
"description": "Return the sum of an Array of numbers",
|
|
1653
1620
|
"arguments": [
|
|
1654
1621
|
{
|
|
1655
|
-
"name": "
|
|
1656
|
-
"formula": {
|
|
1657
|
-
"type": "value",
|
|
1658
|
-
"value": 3
|
|
1659
|
-
},
|
|
1660
|
-
"description": "The number to be raised to the exponent.",
|
|
1622
|
+
"name": "Array",
|
|
1661
1623
|
"type": {
|
|
1662
|
-
"type": "
|
|
1663
|
-
}
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
"name": "Exponent",
|
|
1667
|
-
"formula": {
|
|
1668
|
-
"type": "value",
|
|
1669
|
-
"value": 2
|
|
1624
|
+
"type": "Array"
|
|
1670
1625
|
},
|
|
1671
|
-
"description": "The
|
|
1672
|
-
"
|
|
1673
|
-
"type": "
|
|
1626
|
+
"description": "The array of numbers to sum.",
|
|
1627
|
+
"formula": {
|
|
1628
|
+
"type": "array",
|
|
1629
|
+
"arguments": []
|
|
1674
1630
|
}
|
|
1675
1631
|
}
|
|
1676
1632
|
],
|
|
1677
1633
|
"output": {
|
|
1634
|
+
"description": "The total sum from adding all the numbers in the Array.",
|
|
1678
1635
|
"type": {
|
|
1679
1636
|
"type": "Number"
|
|
1680
|
-
}
|
|
1681
|
-
"description": "The result of raising the base to the exponent."
|
|
1637
|
+
}
|
|
1682
1638
|
}
|
|
1683
1639
|
},
|
|
1684
|
-
"@toddle/
|
|
1685
|
-
"name": "
|
|
1686
|
-
"description": "
|
|
1640
|
+
"@toddle/divide": {
|
|
1641
|
+
"name": "Divide",
|
|
1642
|
+
"description": "Perform a division calculation.",
|
|
1687
1643
|
"arguments": [
|
|
1688
1644
|
{
|
|
1689
|
-
"name": "
|
|
1690
|
-
"
|
|
1691
|
-
"type": "value",
|
|
1692
|
-
"value": ""
|
|
1693
|
-
},
|
|
1694
|
-
"description": "First value to be compared.",
|
|
1645
|
+
"name": "Dividend",
|
|
1646
|
+
"description": "The number to be divided.",
|
|
1695
1647
|
"type": {
|
|
1696
1648
|
"type": "Number"
|
|
1649
|
+
},
|
|
1650
|
+
"formula": {
|
|
1651
|
+
"type": "value",
|
|
1652
|
+
"value": 1
|
|
1697
1653
|
}
|
|
1698
1654
|
},
|
|
1699
1655
|
{
|
|
1700
|
-
"name": "
|
|
1701
|
-
"
|
|
1702
|
-
"type": "value",
|
|
1703
|
-
"value": ""
|
|
1704
|
-
},
|
|
1705
|
-
"description": "Second value to be compared.",
|
|
1656
|
+
"name": "Divisor",
|
|
1657
|
+
"description": "The number to divide by.",
|
|
1706
1658
|
"type": {
|
|
1707
1659
|
"type": "Number"
|
|
1660
|
+
},
|
|
1661
|
+
"formula": {
|
|
1662
|
+
"type": "value",
|
|
1663
|
+
"value": 1
|
|
1708
1664
|
}
|
|
1709
1665
|
}
|
|
1710
1666
|
],
|
|
1711
1667
|
"output": {
|
|
1712
|
-
"description": "
|
|
1668
|
+
"description": "The result of dividing the dividend with the divisor.",
|
|
1713
1669
|
"type": {
|
|
1714
|
-
"type": "
|
|
1670
|
+
"type": "Number"
|
|
1715
1671
|
}
|
|
1716
1672
|
}
|
|
1717
1673
|
},
|
|
1718
|
-
"@toddle/
|
|
1719
|
-
"name": "
|
|
1720
|
-
"description": "
|
|
1674
|
+
"@toddle/canShare": {
|
|
1675
|
+
"name": "Can Share",
|
|
1676
|
+
"description": "Return a Boolean indicating whether the provided data can be shared (with the \"Share\" action).",
|
|
1721
1677
|
"arguments": [
|
|
1722
1678
|
{
|
|
1723
|
-
"name": "
|
|
1679
|
+
"name": "URL",
|
|
1680
|
+
"description": "The URL you want to check.",
|
|
1724
1681
|
"type": {
|
|
1725
|
-
"type": "
|
|
1682
|
+
"type": "String"
|
|
1726
1683
|
},
|
|
1727
|
-
"description": "The Array to append to.",
|
|
1728
1684
|
"formula": {
|
|
1729
|
-
"type": "
|
|
1730
|
-
"
|
|
1685
|
+
"type": "value",
|
|
1686
|
+
"value": null
|
|
1731
1687
|
}
|
|
1732
1688
|
},
|
|
1733
1689
|
{
|
|
1734
|
-
"name": "
|
|
1690
|
+
"name": "Title",
|
|
1691
|
+
"description": "The title you want to check.",
|
|
1735
1692
|
"type": {
|
|
1736
|
-
"type": "
|
|
1693
|
+
"type": "String"
|
|
1737
1694
|
},
|
|
1738
|
-
"description": "The item to append to the Array.",
|
|
1739
1695
|
"formula": {
|
|
1740
1696
|
"type": "value",
|
|
1741
|
-
"value":
|
|
1697
|
+
"value": null
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "Text",
|
|
1702
|
+
"description": "The text you want to check.",
|
|
1703
|
+
"type": {
|
|
1704
|
+
"type": "String"
|
|
1705
|
+
},
|
|
1706
|
+
"formula": {
|
|
1707
|
+
"type": "value",
|
|
1708
|
+
"value": null
|
|
1742
1709
|
}
|
|
1743
1710
|
}
|
|
1744
|
-
]
|
|
1745
|
-
"output": {
|
|
1746
|
-
"description": "A new Array containing all elements from the input Array, including the new item.",
|
|
1747
|
-
"type": {
|
|
1748
|
-
"type": "Array"
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1711
|
+
]
|
|
1751
1712
|
},
|
|
1752
|
-
"@toddle/
|
|
1753
|
-
"name": "
|
|
1713
|
+
"@toddle/last": {
|
|
1714
|
+
"name": "Last",
|
|
1715
|
+
"description": "Get the last item in an Array.",
|
|
1754
1716
|
"arguments": [
|
|
1755
1717
|
{
|
|
1756
|
-
"name": "
|
|
1718
|
+
"name": "Array",
|
|
1757
1719
|
"formula": {
|
|
1758
1720
|
"type": "value",
|
|
1759
|
-
"value":
|
|
1721
|
+
"value": []
|
|
1760
1722
|
},
|
|
1761
1723
|
"type": {
|
|
1762
|
-
"type": "
|
|
1724
|
+
"type": "Array"
|
|
1763
1725
|
},
|
|
1764
|
-
"description": "The input
|
|
1726
|
+
"description": "The input Array."
|
|
1765
1727
|
}
|
|
1766
1728
|
],
|
|
1767
|
-
"description": "Encode a string to base64.",
|
|
1768
1729
|
"output": {
|
|
1769
|
-
"description": "The
|
|
1730
|
+
"description": "The last item in the Array.",
|
|
1770
1731
|
"type": {
|
|
1771
|
-
"type": "
|
|
1732
|
+
"type": "Any"
|
|
1772
1733
|
}
|
|
1773
1734
|
}
|
|
1774
1735
|
},
|
|
1775
|
-
"@toddle/
|
|
1776
|
-
"name": "
|
|
1736
|
+
"@toddle/reverse": {
|
|
1737
|
+
"name": "Reverse",
|
|
1738
|
+
"description": "Reverse the order of an Array.",
|
|
1777
1739
|
"arguments": [
|
|
1778
1740
|
{
|
|
1779
|
-
"name": "
|
|
1780
|
-
"description": "Number to be added.",
|
|
1781
|
-
"type": {
|
|
1782
|
-
"type": "Number"
|
|
1783
|
-
},
|
|
1741
|
+
"name": "Array",
|
|
1784
1742
|
"formula": {
|
|
1785
1743
|
"type": "value",
|
|
1786
|
-
"value":
|
|
1744
|
+
"value": null
|
|
1745
|
+
},
|
|
1746
|
+
"description": "The Array to be reversed.",
|
|
1747
|
+
"type": {
|
|
1748
|
+
"type": "Array"
|
|
1787
1749
|
}
|
|
1750
|
+
}
|
|
1751
|
+
],
|
|
1752
|
+
"output": {
|
|
1753
|
+
"type": {
|
|
1754
|
+
"type": "Array"
|
|
1788
1755
|
},
|
|
1756
|
+
"description": "The reversed Array."
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1759
|
+
"@toddle/typeOf": {
|
|
1760
|
+
"name": "Type of",
|
|
1761
|
+
"description": "Get the type of a given input.",
|
|
1762
|
+
"arguments": [
|
|
1789
1763
|
{
|
|
1790
|
-
"name": "
|
|
1791
|
-
"type": {
|
|
1792
|
-
"type": "Number"
|
|
1793
|
-
},
|
|
1794
|
-
"description": "Number to be added.",
|
|
1764
|
+
"name": "Input",
|
|
1795
1765
|
"formula": {
|
|
1796
1766
|
"type": "value",
|
|
1797
1767
|
"value": 1
|
|
1768
|
+
},
|
|
1769
|
+
"description": "The input value.",
|
|
1770
|
+
"type": {
|
|
1771
|
+
"type": "Any"
|
|
1798
1772
|
}
|
|
1799
1773
|
}
|
|
1800
1774
|
],
|
|
1801
|
-
"variableArguments": true,
|
|
1802
|
-
"description": "Get the sum of multiple numbers.",
|
|
1803
1775
|
"output": {
|
|
1804
|
-
"description": "The
|
|
1776
|
+
"description": "The type of the input value. Types can be one of: String, Boolean, Number, Array, Object, or Null.",
|
|
1805
1777
|
"type": {
|
|
1806
|
-
"type": "
|
|
1778
|
+
"type": "Any"
|
|
1807
1779
|
}
|
|
1808
1780
|
}
|
|
1809
1781
|
},
|
|
1810
|
-
"@toddle/
|
|
1811
|
-
"name": "
|
|
1812
|
-
"description": "
|
|
1782
|
+
"@toddle/join": {
|
|
1783
|
+
"name": "Join",
|
|
1784
|
+
"description": "Combine an Array of Strings in to a single String.",
|
|
1813
1785
|
"arguments": [
|
|
1814
1786
|
{
|
|
1815
|
-
"name": "
|
|
1787
|
+
"name": "Array",
|
|
1816
1788
|
"formula": {
|
|
1817
1789
|
"type": "value",
|
|
1818
|
-
"value":
|
|
1790
|
+
"value": null
|
|
1819
1791
|
},
|
|
1792
|
+
"description": "An array of Strings.",
|
|
1820
1793
|
"type": {
|
|
1821
|
-
"type": "
|
|
1822
|
-
}
|
|
1823
|
-
"description": "Number to be multiplied."
|
|
1794
|
+
"type": "Array"
|
|
1795
|
+
}
|
|
1824
1796
|
},
|
|
1825
1797
|
{
|
|
1826
|
-
"name": "
|
|
1798
|
+
"name": "Separator",
|
|
1827
1799
|
"formula": {
|
|
1828
1800
|
"type": "value",
|
|
1829
|
-
"value":
|
|
1801
|
+
"value": ", "
|
|
1830
1802
|
},
|
|
1803
|
+
"description": "A separator String that is inserted in between each item in the Array to join.",
|
|
1831
1804
|
"type": {
|
|
1832
|
-
"type": "
|
|
1833
|
-
}
|
|
1834
|
-
"description": "Number to be multiplied."
|
|
1805
|
+
"type": "String"
|
|
1806
|
+
}
|
|
1835
1807
|
}
|
|
1836
1808
|
],
|
|
1837
|
-
"variableArguments": true,
|
|
1838
1809
|
"output": {
|
|
1839
|
-
"description": "
|
|
1810
|
+
"description": "A String combining each item in the input Array separated by the separator String, e.g. joining [\"a\", \"b\", \"c\"] with a \",\" separator will return \"a,b,c\".",
|
|
1840
1811
|
"type": {
|
|
1841
|
-
"type": "
|
|
1812
|
+
"type": "String"
|
|
1842
1813
|
}
|
|
1843
1814
|
}
|
|
1844
1815
|
},
|
|
1845
|
-
"@toddle/
|
|
1846
|
-
"name": "
|
|
1847
|
-
"description": "Remove items from the beginning of an Array or String.",
|
|
1816
|
+
"@toddle/encodeBase64": {
|
|
1817
|
+
"name": "Encode to base64",
|
|
1848
1818
|
"arguments": [
|
|
1849
1819
|
{
|
|
1850
|
-
"name": "
|
|
1820
|
+
"name": "Value",
|
|
1851
1821
|
"formula": {
|
|
1852
1822
|
"type": "value",
|
|
1853
|
-
"value":
|
|
1823
|
+
"value": "Input value"
|
|
1854
1824
|
},
|
|
1855
|
-
"description": "The input value.",
|
|
1856
|
-
"type": {
|
|
1857
|
-
"type": "Array \\| String"
|
|
1858
|
-
}
|
|
1859
|
-
},
|
|
1860
|
-
{
|
|
1861
|
-
"name": "Count",
|
|
1862
|
-
"description": "Number of items to remove.",
|
|
1863
1825
|
"type": {
|
|
1864
|
-
"type": "
|
|
1826
|
+
"type": "String"
|
|
1865
1827
|
},
|
|
1866
|
-
"
|
|
1867
|
-
"type": "value",
|
|
1868
|
-
"value": 1
|
|
1869
|
-
}
|
|
1828
|
+
"description": "The input string to be encoded."
|
|
1870
1829
|
}
|
|
1871
1830
|
],
|
|
1831
|
+
"description": "Encode a string to base64.",
|
|
1872
1832
|
"output": {
|
|
1873
|
-
"description": "
|
|
1833
|
+
"description": "The base 64 encoded string.",
|
|
1874
1834
|
"type": {
|
|
1875
|
-
"type": "
|
|
1835
|
+
"type": "String"
|
|
1876
1836
|
}
|
|
1877
1837
|
}
|
|
1878
1838
|
},
|
|
1879
|
-
"@toddle/
|
|
1880
|
-
"name": "
|
|
1881
|
-
"description": "
|
|
1839
|
+
"@toddle/reduce": {
|
|
1840
|
+
"name": "Reduce",
|
|
1841
|
+
"description": "Reduce a group of items to a single value by applying each item to a reducer formula.",
|
|
1882
1842
|
"arguments": [
|
|
1883
1843
|
{
|
|
1884
|
-
"name": "Array",
|
|
1844
|
+
"name": "Array",
|
|
1845
|
+
"formula": {
|
|
1846
|
+
"type": "value",
|
|
1847
|
+
"value": null
|
|
1848
|
+
},
|
|
1849
|
+
"description": "The Array or Object of items to be reduced.",
|
|
1850
|
+
"type": {
|
|
1851
|
+
"type": "Array \\| Object"
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "Formula",
|
|
1856
|
+
"isFunction": true,
|
|
1885
1857
|
"formula": {
|
|
1886
1858
|
"type": "value",
|
|
1887
1859
|
"value": null
|
|
1888
1860
|
},
|
|
1889
|
-
"description": "The Array
|
|
1861
|
+
"description": "The reducer formula. Each item in the Array is applied to the formula along with the accumulator. The result of this formula will be a new accumulator used for the next item.",
|
|
1890
1862
|
"type": {
|
|
1891
|
-
"type": "
|
|
1863
|
+
"type": "Formula"
|
|
1892
1864
|
}
|
|
1893
1865
|
},
|
|
1894
1866
|
{
|
|
1895
|
-
"name": "
|
|
1896
|
-
"isFunction": true,
|
|
1867
|
+
"name": "Accumulator",
|
|
1897
1868
|
"formula": {
|
|
1898
|
-
"type": "
|
|
1899
|
-
"
|
|
1900
|
-
"Args",
|
|
1901
|
-
"item"
|
|
1902
|
-
]
|
|
1869
|
+
"type": "value",
|
|
1870
|
+
"value": null
|
|
1903
1871
|
},
|
|
1904
|
-
"description": "
|
|
1872
|
+
"description": "The initial value of the accumulator. This value is passed to the reducer formula along with the first item in the Array, and the result is used as the accumulator for the next item.",
|
|
1905
1873
|
"type": {
|
|
1906
|
-
"type": "
|
|
1874
|
+
"type": "Any"
|
|
1907
1875
|
}
|
|
1908
1876
|
}
|
|
1909
1877
|
],
|
|
1910
1878
|
"output": {
|
|
1911
|
-
"description": "
|
|
1879
|
+
"description": "The value returned from applying the last item to the reducer formula.",
|
|
1912
1880
|
"type": {
|
|
1913
|
-
"type": "
|
|
1881
|
+
"type": "Any"
|
|
1914
1882
|
}
|
|
1915
1883
|
}
|
|
1916
1884
|
},
|
|
1917
|
-
"@toddle/
|
|
1918
|
-
"name": "Round",
|
|
1919
|
-
"description": "Round a Number to the nearest decimal point.",
|
|
1885
|
+
"@toddle/roundDown": {
|
|
1886
|
+
"name": "Round down",
|
|
1887
|
+
"description": "Round a Number down to the nearest decimal point.",
|
|
1920
1888
|
"arguments": [
|
|
1921
1889
|
{
|
|
1922
1890
|
"name": "Input",
|
|
1923
|
-
"description": "Number to round.",
|
|
1891
|
+
"description": "Number to round down.",
|
|
1924
1892
|
"type": {
|
|
1925
1893
|
"type": "Number"
|
|
1926
1894
|
},
|
|
@@ -1948,83 +1916,95 @@
|
|
|
1948
1916
|
"description": "The rounded Number."
|
|
1949
1917
|
}
|
|
1950
1918
|
},
|
|
1951
|
-
"@toddle/
|
|
1952
|
-
"name": "
|
|
1953
|
-
"description": "
|
|
1919
|
+
"@toddle/randomNumber": {
|
|
1920
|
+
"name": "Random number",
|
|
1921
|
+
"description": "return a random Number between 0 and 1.",
|
|
1922
|
+
"arguments": [],
|
|
1923
|
+
"cache": false,
|
|
1924
|
+
"output": {
|
|
1925
|
+
"description": "A random Number between 0 and 1.",
|
|
1926
|
+
"type": {
|
|
1927
|
+
"type": "Number"
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
"@toddle/greaterThan": {
|
|
1932
|
+
"name": "Greater than",
|
|
1933
|
+
"description": "Compute if a value is larger than another value.",
|
|
1954
1934
|
"arguments": [
|
|
1955
1935
|
{
|
|
1956
|
-
"name": "
|
|
1957
|
-
"description": "Number to round down.",
|
|
1958
|
-
"type": {
|
|
1959
|
-
"type": "Number"
|
|
1960
|
-
},
|
|
1936
|
+
"name": "First",
|
|
1961
1937
|
"formula": {
|
|
1962
1938
|
"type": "value",
|
|
1963
|
-
"value":
|
|
1939
|
+
"value": ""
|
|
1940
|
+
},
|
|
1941
|
+
"description": "First value to be compared.",
|
|
1942
|
+
"type": {
|
|
1943
|
+
"type": "Number"
|
|
1964
1944
|
}
|
|
1965
1945
|
},
|
|
1966
1946
|
{
|
|
1967
|
-
"name": "
|
|
1968
|
-
"description": "Number of decimals to round to.",
|
|
1969
|
-
"type": {
|
|
1970
|
-
"type": "Number"
|
|
1971
|
-
},
|
|
1947
|
+
"name": "Second",
|
|
1972
1948
|
"formula": {
|
|
1973
1949
|
"type": "value",
|
|
1974
|
-
"value":
|
|
1950
|
+
"value": ""
|
|
1951
|
+
},
|
|
1952
|
+
"description": "Second value to be compared.",
|
|
1953
|
+
"type": {
|
|
1954
|
+
"type": "Number"
|
|
1975
1955
|
}
|
|
1976
1956
|
}
|
|
1977
1957
|
],
|
|
1978
1958
|
"output": {
|
|
1959
|
+
"description": "Returns True if the first Number is larger than the second Number.",
|
|
1979
1960
|
"type": {
|
|
1980
|
-
"type": "
|
|
1981
|
-
}
|
|
1982
|
-
"description": "The rounded Number."
|
|
1961
|
+
"type": "Boolean"
|
|
1962
|
+
}
|
|
1983
1963
|
}
|
|
1984
1964
|
},
|
|
1985
|
-
"@toddle/
|
|
1986
|
-
"name": "
|
|
1987
|
-
"description": "Get the
|
|
1965
|
+
"@toddle/absolute": {
|
|
1966
|
+
"name": "Absolute",
|
|
1967
|
+
"description": "Get the absolute value of a Number.",
|
|
1988
1968
|
"arguments": [
|
|
1989
1969
|
{
|
|
1990
|
-
"name": "
|
|
1970
|
+
"name": "Value",
|
|
1991
1971
|
"formula": {
|
|
1992
1972
|
"type": "value",
|
|
1993
|
-
"value":
|
|
1973
|
+
"value": -1
|
|
1994
1974
|
},
|
|
1995
|
-
"description": "The input value.",
|
|
1996
1975
|
"type": {
|
|
1997
|
-
"type": "
|
|
1998
|
-
}
|
|
1976
|
+
"type": "Number"
|
|
1977
|
+
},
|
|
1978
|
+
"description": "The input Number."
|
|
1999
1979
|
}
|
|
2000
1980
|
],
|
|
2001
1981
|
"output": {
|
|
2002
|
-
"description": "
|
|
1982
|
+
"description": "The absolute value of the input.",
|
|
2003
1983
|
"type": {
|
|
2004
|
-
"type": "
|
|
1984
|
+
"type": "Number"
|
|
2005
1985
|
}
|
|
2006
1986
|
}
|
|
2007
1987
|
},
|
|
2008
|
-
"@toddle/
|
|
2009
|
-
"name": "
|
|
2010
|
-
"description": "
|
|
1988
|
+
"@toddle/parseJSON": {
|
|
1989
|
+
"name": "Parse JSON",
|
|
1990
|
+
"description": "Parse a String to JSON.",
|
|
2011
1991
|
"arguments": [
|
|
2012
1992
|
{
|
|
2013
|
-
"name": "
|
|
1993
|
+
"name": "JSON string",
|
|
2014
1994
|
"formula": {
|
|
2015
1995
|
"type": "value",
|
|
2016
|
-
"value":
|
|
1996
|
+
"value": null
|
|
2017
1997
|
},
|
|
2018
|
-
"description": "The String to
|
|
1998
|
+
"description": "The String to be parsed.",
|
|
2019
1999
|
"type": {
|
|
2020
2000
|
"type": "String"
|
|
2021
2001
|
}
|
|
2022
2002
|
}
|
|
2023
2003
|
],
|
|
2024
2004
|
"output": {
|
|
2025
|
-
"description": "The
|
|
2005
|
+
"description": "The parsed JSON value. If the input is not a valid String, this returns Null.",
|
|
2026
2006
|
"type": {
|
|
2027
|
-
"type": "
|
|
2007
|
+
"type": "Any"
|
|
2028
2008
|
}
|
|
2029
2009
|
}
|
|
2030
2010
|
},
|
|
@@ -2051,98 +2031,117 @@
|
|
|
2051
2031
|
"description": "Returns a String or Array containing all the specified input values."
|
|
2052
2032
|
}
|
|
2053
2033
|
},
|
|
2054
|
-
"@toddle/
|
|
2055
|
-
"name": "
|
|
2056
|
-
"description": "
|
|
2034
|
+
"@toddle/json": {
|
|
2035
|
+
"name": "JSON",
|
|
2036
|
+
"description": "Convert a value into a JSON String.",
|
|
2057
2037
|
"arguments": [
|
|
2058
2038
|
{
|
|
2059
|
-
"name": "
|
|
2039
|
+
"name": "Input",
|
|
2060
2040
|
"formula": {
|
|
2061
2041
|
"type": "value",
|
|
2062
|
-
"value":
|
|
2042
|
+
"value": null
|
|
2063
2043
|
},
|
|
2064
|
-
"description": "
|
|
2044
|
+
"description": "The input value.",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"type": "Any"
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"name": "Indentation",
|
|
2051
|
+
"formula": {
|
|
2052
|
+
"type": "value",
|
|
2053
|
+
"value": 0
|
|
2054
|
+
},
|
|
2055
|
+
"description": "The number of spaces used for indentation in the JSON String.",
|
|
2065
2056
|
"type": {
|
|
2066
2057
|
"type": "Number"
|
|
2067
2058
|
}
|
|
2068
2059
|
}
|
|
2069
2060
|
],
|
|
2070
2061
|
"output": {
|
|
2062
|
+
"description": "The JSON String.",
|
|
2071
2063
|
"type": {
|
|
2072
|
-
"type": "
|
|
2073
|
-
}
|
|
2074
|
-
"description": "The natural logarithm of the Number."
|
|
2064
|
+
"type": "String"
|
|
2065
|
+
}
|
|
2075
2066
|
}
|
|
2076
2067
|
},
|
|
2077
|
-
"@toddle/
|
|
2078
|
-
"name": "
|
|
2079
|
-
"description": "
|
|
2068
|
+
"@toddle/power": {
|
|
2069
|
+
"name": "Power",
|
|
2070
|
+
"description": "Raise a number to a power.",
|
|
2080
2071
|
"arguments": [
|
|
2081
2072
|
{
|
|
2082
|
-
"name": "
|
|
2073
|
+
"name": "Base",
|
|
2083
2074
|
"formula": {
|
|
2084
2075
|
"type": "value",
|
|
2085
|
-
"value":
|
|
2076
|
+
"value": 3
|
|
2086
2077
|
},
|
|
2087
|
-
"description": "The
|
|
2078
|
+
"description": "The number to be raised to the exponent.",
|
|
2088
2079
|
"type": {
|
|
2089
|
-
"type": "
|
|
2080
|
+
"type": "Number"
|
|
2090
2081
|
}
|
|
2091
2082
|
},
|
|
2092
2083
|
{
|
|
2093
|
-
"name": "
|
|
2094
|
-
"isFunction": true,
|
|
2084
|
+
"name": "Exponent",
|
|
2095
2085
|
"formula": {
|
|
2096
|
-
"type": "
|
|
2097
|
-
"
|
|
2098
|
-
"Args",
|
|
2099
|
-
"item"
|
|
2100
|
-
]
|
|
2086
|
+
"type": "value",
|
|
2087
|
+
"value": 2
|
|
2101
2088
|
},
|
|
2102
|
-
"description": "The
|
|
2089
|
+
"description": "The exponent to raise the base to.",
|
|
2103
2090
|
"type": {
|
|
2104
|
-
"type": "
|
|
2091
|
+
"type": "Number"
|
|
2105
2092
|
}
|
|
2106
2093
|
}
|
|
2107
2094
|
],
|
|
2108
2095
|
"output": {
|
|
2109
|
-
"description": "The last item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
2110
2096
|
"type": {
|
|
2111
|
-
"type": "
|
|
2112
|
-
}
|
|
2097
|
+
"type": "Number"
|
|
2098
|
+
},
|
|
2099
|
+
"description": "The result of raising the base to the exponent."
|
|
2113
2100
|
}
|
|
2114
2101
|
},
|
|
2115
|
-
"@toddle/
|
|
2116
|
-
"name": "
|
|
2117
|
-
"description": "
|
|
2102
|
+
"@toddle/range": {
|
|
2103
|
+
"name": "Range",
|
|
2104
|
+
"description": "Create an Array of numbers between a Min and Max value.",
|
|
2118
2105
|
"arguments": [
|
|
2119
2106
|
{
|
|
2120
|
-
"name": "Array",
|
|
2121
2107
|
"formula": {
|
|
2122
2108
|
"type": "value",
|
|
2123
|
-
"value":
|
|
2109
|
+
"value": 0
|
|
2124
2110
|
},
|
|
2125
|
-
"
|
|
2111
|
+
"name": "Min",
|
|
2112
|
+
"description": "The smallest value in the list.",
|
|
2126
2113
|
"type": {
|
|
2127
|
-
"type": "
|
|
2114
|
+
"type": "Number"
|
|
2128
2115
|
}
|
|
2129
2116
|
},
|
|
2130
2117
|
{
|
|
2131
|
-
"name": "
|
|
2118
|
+
"name": "Max",
|
|
2132
2119
|
"formula": {
|
|
2133
2120
|
"type": "value",
|
|
2134
|
-
"value":
|
|
2121
|
+
"value": 10
|
|
2135
2122
|
},
|
|
2136
|
-
"description": "The
|
|
2123
|
+
"description": "The largest value in the list.",
|
|
2137
2124
|
"type": {
|
|
2138
|
-
"type": "
|
|
2125
|
+
"type": "Number"
|
|
2139
2126
|
}
|
|
2140
2127
|
}
|
|
2141
2128
|
],
|
|
2142
2129
|
"output": {
|
|
2143
|
-
"description": "
|
|
2130
|
+
"description": "An Array containing all the numbers between Min and Max, inclusive.",
|
|
2144
2131
|
"type": {
|
|
2145
|
-
"type": "
|
|
2132
|
+
"type": "Array"
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
"@toddle/now": {
|
|
2137
|
+
"name": "Now",
|
|
2138
|
+
"description": "Get a Date representing \"Now\"",
|
|
2139
|
+
"arguments": [],
|
|
2140
|
+
"cache": false,
|
|
2141
|
+
"output": {
|
|
2142
|
+
"description": "A Date object initialized at the current date/time.",
|
|
2143
|
+
"type": {
|
|
2144
|
+
"type": "Date"
|
|
2146
2145
|
}
|
|
2147
2146
|
}
|
|
2148
2147
|
},
|
|
@@ -2180,154 +2179,119 @@
|
|
|
2180
2179
|
}
|
|
2181
2180
|
}
|
|
2182
2181
|
},
|
|
2183
|
-
"@toddle/
|
|
2184
|
-
"name": "
|
|
2185
|
-
"description": "
|
|
2182
|
+
"@toddle/flatten": {
|
|
2183
|
+
"name": "Flatten",
|
|
2184
|
+
"description": "Flatten a nested Array.",
|
|
2186
2185
|
"arguments": [
|
|
2187
2186
|
{
|
|
2188
|
-
"name": "
|
|
2189
|
-
"
|
|
2190
|
-
"type": "value",
|
|
2191
|
-
"value": ""
|
|
2192
|
-
},
|
|
2193
|
-
"description": "First Number to be compared.",
|
|
2187
|
+
"name": "Array",
|
|
2188
|
+
"description": "An Array containing one or more Arrays.",
|
|
2194
2189
|
"type": {
|
|
2195
|
-
"type": "
|
|
2196
|
-
}
|
|
2197
|
-
},
|
|
2198
|
-
{
|
|
2199
|
-
"name": "Second",
|
|
2200
|
-
"formula": {
|
|
2201
|
-
"type": "value",
|
|
2202
|
-
"value": ""
|
|
2190
|
+
"type": "Array"
|
|
2203
2191
|
},
|
|
2204
|
-
"
|
|
2205
|
-
|
|
2206
|
-
"
|
|
2192
|
+
"formula": {
|
|
2193
|
+
"type": "array",
|
|
2194
|
+
"arguments": []
|
|
2207
2195
|
}
|
|
2208
2196
|
}
|
|
2209
2197
|
],
|
|
2210
2198
|
"output": {
|
|
2211
|
-
"description": "
|
|
2199
|
+
"description": "A flattened Array where all items in the original array are concatenated.",
|
|
2212
2200
|
"type": {
|
|
2213
|
-
"type": "
|
|
2201
|
+
"type": "Array"
|
|
2214
2202
|
}
|
|
2215
2203
|
}
|
|
2216
|
-
},
|
|
2217
|
-
"@toddle/
|
|
2218
|
-
"name": "
|
|
2219
|
-
"description": "
|
|
2204
|
+
},
|
|
2205
|
+
"@toddle/shuffle": {
|
|
2206
|
+
"name": "Shuffle",
|
|
2207
|
+
"description": "Shuffle items in an Array or String.",
|
|
2208
|
+
"cache": false,
|
|
2220
2209
|
"arguments": [
|
|
2221
2210
|
{
|
|
2222
2211
|
"name": "Array",
|
|
2223
2212
|
"formula": {
|
|
2224
2213
|
"type": "value",
|
|
2225
|
-
"value":
|
|
2214
|
+
"value": null
|
|
2226
2215
|
},
|
|
2227
|
-
"description": "The value
|
|
2216
|
+
"description": "The input value.",
|
|
2228
2217
|
"type": {
|
|
2229
2218
|
"type": "Array \\| String"
|
|
2230
2219
|
}
|
|
2231
|
-
},
|
|
2232
|
-
{
|
|
2233
|
-
"name": "Item",
|
|
2234
|
-
"formula": {
|
|
2235
|
-
"type": "value",
|
|
2236
|
-
"value": ""
|
|
2237
|
-
},
|
|
2238
|
-
"description": "The item or value to search for.",
|
|
2239
|
-
"type": {
|
|
2240
|
-
"type": "Any"
|
|
2241
|
-
}
|
|
2242
2220
|
}
|
|
2243
2221
|
],
|
|
2244
2222
|
"output": {
|
|
2245
|
-
"description": "
|
|
2223
|
+
"description": "The shuffled Array or String.",
|
|
2246
2224
|
"type": {
|
|
2247
|
-
"type": "
|
|
2225
|
+
"type": "Array \\| String"
|
|
2248
2226
|
}
|
|
2249
2227
|
}
|
|
2250
2228
|
},
|
|
2251
|
-
"@toddle/
|
|
2252
|
-
"name": "
|
|
2229
|
+
"@toddle/defaultTo": {
|
|
2230
|
+
"name": "Default to",
|
|
2231
|
+
"description": "Return the first value that is not False or Null.",
|
|
2253
2232
|
"arguments": [
|
|
2254
2233
|
{
|
|
2255
|
-
"name": "
|
|
2256
|
-
"description": "Number to format.",
|
|
2257
|
-
"type": {
|
|
2258
|
-
"type": "Number"
|
|
2259
|
-
},
|
|
2260
|
-
"formula": {
|
|
2261
|
-
"type": "Number",
|
|
2262
|
-
"value": 100
|
|
2263
|
-
}
|
|
2264
|
-
},
|
|
2265
|
-
{
|
|
2266
|
-
"name": "Locale(s)",
|
|
2267
|
-
"description": "Optional locale to use for formatting the Number, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
2268
|
-
"type": {
|
|
2269
|
-
"type": "Array \\| String"
|
|
2270
|
-
},
|
|
2234
|
+
"name": "0",
|
|
2271
2235
|
"formula": {
|
|
2272
2236
|
"type": "value",
|
|
2273
2237
|
"value": null
|
|
2238
|
+
},
|
|
2239
|
+
"description": "The inital value.",
|
|
2240
|
+
"type": {
|
|
2241
|
+
"type": "Any"
|
|
2274
2242
|
}
|
|
2275
2243
|
},
|
|
2276
2244
|
{
|
|
2277
|
-
"name": "
|
|
2278
|
-
"description": "
|
|
2245
|
+
"name": "1",
|
|
2246
|
+
"description": "The first fallback value to be used if the primary value is Null or False.",
|
|
2279
2247
|
"type": {
|
|
2280
|
-
"type": "
|
|
2248
|
+
"type": "Any"
|
|
2281
2249
|
},
|
|
2282
2250
|
"formula": {
|
|
2283
2251
|
"type": "value",
|
|
2284
|
-
"value":
|
|
2252
|
+
"value": "default"
|
|
2285
2253
|
}
|
|
2286
2254
|
}
|
|
2287
2255
|
],
|
|
2288
|
-
"
|
|
2256
|
+
"variableArguments": true,
|
|
2289
2257
|
"output": {
|
|
2290
|
-
"description": "
|
|
2258
|
+
"description": "Returns the first value that is not False or Null. Returns Null if no valid values is given.",
|
|
2291
2259
|
"type": {
|
|
2292
|
-
"type": "
|
|
2260
|
+
"type": "Any"
|
|
2293
2261
|
}
|
|
2294
2262
|
}
|
|
2295
2263
|
},
|
|
2296
|
-
"@toddle/
|
|
2297
|
-
"name": "
|
|
2298
|
-
"description": "
|
|
2264
|
+
"@toddle/minus": {
|
|
2265
|
+
"name": "Minus",
|
|
2266
|
+
"description": "Subtract a Number from a Number.",
|
|
2299
2267
|
"arguments": [
|
|
2300
2268
|
{
|
|
2301
|
-
"name": "
|
|
2269
|
+
"name": "Minuend",
|
|
2302
2270
|
"formula": {
|
|
2303
2271
|
"type": "value",
|
|
2304
|
-
"value":
|
|
2272
|
+
"value": 1
|
|
2305
2273
|
},
|
|
2306
|
-
"description": "The
|
|
2274
|
+
"description": "The number to subtract from.",
|
|
2307
2275
|
"type": {
|
|
2308
|
-
"type": "
|
|
2276
|
+
"type": "Number"
|
|
2309
2277
|
}
|
|
2310
2278
|
},
|
|
2311
2279
|
{
|
|
2312
|
-
"name": "
|
|
2313
|
-
"isFunction": true,
|
|
2280
|
+
"name": "Substrahend",
|
|
2314
2281
|
"formula": {
|
|
2315
|
-
"type": "
|
|
2316
|
-
"
|
|
2317
|
-
"Args",
|
|
2318
|
-
"item"
|
|
2319
|
-
]
|
|
2282
|
+
"type": "value",
|
|
2283
|
+
"value": 1
|
|
2320
2284
|
},
|
|
2321
|
-
"description": "The
|
|
2285
|
+
"description": "The number to subtract.",
|
|
2322
2286
|
"type": {
|
|
2323
|
-
"type": "
|
|
2287
|
+
"type": "Number"
|
|
2324
2288
|
}
|
|
2325
2289
|
}
|
|
2326
2290
|
],
|
|
2327
2291
|
"output": {
|
|
2328
|
-
"description": "The
|
|
2292
|
+
"description": "The result of subtracting the Substrahend from the Minuend.",
|
|
2329
2293
|
"type": {
|
|
2330
|
-
"type": "
|
|
2294
|
+
"type": "Number"
|
|
2331
2295
|
}
|
|
2332
2296
|
}
|
|
2333
2297
|
},
|
|
@@ -2366,265 +2330,233 @@
|
|
|
2366
2330
|
}
|
|
2367
2331
|
}
|
|
2368
2332
|
},
|
|
2369
|
-
"@toddle/
|
|
2370
|
-
"name": "
|
|
2371
|
-
"description": "
|
|
2333
|
+
"@toddle/trim": {
|
|
2334
|
+
"name": "Trim",
|
|
2335
|
+
"description": "Remove any leading and trailing white spaces from a String.",
|
|
2372
2336
|
"arguments": [
|
|
2373
2337
|
{
|
|
2374
|
-
"name": "
|
|
2338
|
+
"name": "String",
|
|
2375
2339
|
"formula": {
|
|
2376
2340
|
"type": "value",
|
|
2377
|
-
"value":
|
|
2341
|
+
"value": ""
|
|
2378
2342
|
},
|
|
2379
|
-
"description": "The
|
|
2343
|
+
"description": "The String to trim.",
|
|
2380
2344
|
"type": {
|
|
2381
|
-
"type": "
|
|
2345
|
+
"type": "String"
|
|
2382
2346
|
}
|
|
2383
|
-
}
|
|
2347
|
+
}
|
|
2348
|
+
],
|
|
2349
|
+
"output": {
|
|
2350
|
+
"description": "The trimmed String.",
|
|
2351
|
+
"type": {
|
|
2352
|
+
"type": "String"
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
},
|
|
2356
|
+
"@toddle/take": {
|
|
2357
|
+
"name": "Take",
|
|
2358
|
+
"description": "Take items from the start of an Array or String.",
|
|
2359
|
+
"arguments": [
|
|
2384
2360
|
{
|
|
2385
|
-
"name": "
|
|
2361
|
+
"name": "Array",
|
|
2386
2362
|
"formula": {
|
|
2387
2363
|
"type": "value",
|
|
2388
|
-
"value":
|
|
2364
|
+
"value": null
|
|
2389
2365
|
},
|
|
2390
|
-
"description": "
|
|
2366
|
+
"description": "Input Array or String.",
|
|
2391
2367
|
"type": {
|
|
2392
|
-
"type": "Array \\|
|
|
2368
|
+
"type": "Array \\| String"
|
|
2393
2369
|
}
|
|
2394
2370
|
},
|
|
2395
2371
|
{
|
|
2396
|
-
"name": "
|
|
2372
|
+
"name": "Count",
|
|
2397
2373
|
"formula": {
|
|
2398
2374
|
"type": "value",
|
|
2399
|
-
"value":
|
|
2375
|
+
"value": 1
|
|
2400
2376
|
},
|
|
2401
|
-
"description": "The value to set.",
|
|
2402
2377
|
"type": {
|
|
2403
|
-
"type": "
|
|
2404
|
-
}
|
|
2378
|
+
"type": "Number"
|
|
2379
|
+
},
|
|
2380
|
+
"description": "Number of items to take."
|
|
2405
2381
|
}
|
|
2406
2382
|
],
|
|
2407
2383
|
"output": {
|
|
2408
|
-
"description": "The
|
|
2384
|
+
"description": "The first items from the Array or String.",
|
|
2409
2385
|
"type": {
|
|
2410
|
-
"type": "
|
|
2386
|
+
"type": "Array \\| String"
|
|
2411
2387
|
}
|
|
2412
2388
|
}
|
|
2413
2389
|
},
|
|
2414
|
-
"@toddle/
|
|
2415
|
-
"name": "
|
|
2416
|
-
"description": "
|
|
2390
|
+
"@toddle/groupBy": {
|
|
2391
|
+
"name": "Group by",
|
|
2392
|
+
"description": "Group an Array of items into an Object based on a grouping formula.",
|
|
2417
2393
|
"arguments": [
|
|
2418
2394
|
{
|
|
2419
|
-
"name": "
|
|
2395
|
+
"name": "Array",
|
|
2420
2396
|
"formula": {
|
|
2421
2397
|
"type": "value",
|
|
2422
2398
|
"value": null
|
|
2423
2399
|
},
|
|
2424
|
-
"description": "
|
|
2400
|
+
"description": "Array of items to be grouped.",
|
|
2425
2401
|
"type": {
|
|
2426
|
-
"type": "
|
|
2402
|
+
"type": "Array"
|
|
2427
2403
|
}
|
|
2428
|
-
}
|
|
2429
|
-
],
|
|
2430
|
-
"output": {
|
|
2431
|
-
"description": "The parsed JSON value. If the input is not a valid String, this returns Null.",
|
|
2432
|
-
"type": {
|
|
2433
|
-
"type": "Any"
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
},
|
|
2437
|
-
"@toddle/getHttpOnlyCookie": {
|
|
2438
|
-
"name": "Get Http-Only Cookie",
|
|
2439
|
-
"description": "Get the value of an Http-Only cookie by name. This formula will is only intended to be used server-side for SSR/proxied API requests to read Http-Only cookies.",
|
|
2440
|
-
"arguments": [
|
|
2404
|
+
},
|
|
2441
2405
|
{
|
|
2442
|
-
"name": "
|
|
2406
|
+
"name": "Formula",
|
|
2407
|
+
"isFunction": true,
|
|
2443
2408
|
"formula": {
|
|
2444
2409
|
"type": "value",
|
|
2445
2410
|
"value": null
|
|
2446
2411
|
},
|
|
2447
|
-
"description": "The
|
|
2412
|
+
"description": "The grouping formula used to group the items. The String returned from the formula will match the key in the output Oject.",
|
|
2448
2413
|
"type": {
|
|
2449
|
-
"type": "
|
|
2414
|
+
"type": "Formula"
|
|
2450
2415
|
}
|
|
2451
2416
|
}
|
|
2452
2417
|
],
|
|
2453
2418
|
"output": {
|
|
2454
|
-
"description": "
|
|
2419
|
+
"description": "An Object where each key matches a value returned by the grouping formula, and each value is the list of items that share the return value.",
|
|
2455
2420
|
"type": {
|
|
2456
|
-
"type": "
|
|
2421
|
+
"type": "Object"
|
|
2457
2422
|
}
|
|
2458
2423
|
}
|
|
2459
2424
|
},
|
|
2460
|
-
"@toddle/
|
|
2461
|
-
"name": "
|
|
2462
|
-
"description": "Convert a value of any type to a Boolean.",
|
|
2425
|
+
"@toddle/formatNumber": {
|
|
2426
|
+
"name": "Format Number",
|
|
2463
2427
|
"arguments": [
|
|
2464
2428
|
{
|
|
2465
2429
|
"name": "Input",
|
|
2466
|
-
"description": "
|
|
2467
|
-
"type": {
|
|
2468
|
-
"type": "Any"
|
|
2469
|
-
},
|
|
2470
|
-
"formula": {
|
|
2471
|
-
"type": "value",
|
|
2472
|
-
"value": "1"
|
|
2473
|
-
}
|
|
2474
|
-
}
|
|
2475
|
-
],
|
|
2476
|
-
"output": {
|
|
2477
|
-
"description": "The input value converted to a Boolean. False and Null will return False, all other values will return True.",
|
|
2478
|
-
"type": {
|
|
2479
|
-
"type": "Boolean"
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
},
|
|
2483
|
-
"@toddle/dateFromTimestamp": {
|
|
2484
|
-
"name": "Date From Timestamp",
|
|
2485
|
-
"arguments": [
|
|
2486
|
-
{
|
|
2487
|
-
"name": "Timestamp",
|
|
2488
|
-
"description": "A Number in milliseconds since 1st January, 1970 (EPOCH).",
|
|
2430
|
+
"description": "Number to format.",
|
|
2489
2431
|
"type": {
|
|
2490
2432
|
"type": "Number"
|
|
2491
2433
|
},
|
|
2492
2434
|
"formula": {
|
|
2493
|
-
"type": "
|
|
2494
|
-
"value":
|
|
2435
|
+
"type": "Number",
|
|
2436
|
+
"value": 100
|
|
2495
2437
|
}
|
|
2496
|
-
}
|
|
2497
|
-
],
|
|
2498
|
-
"description": "Convert a timestamp (milliseconds) to a Date.",
|
|
2499
|
-
"output": {
|
|
2500
|
-
"description": "The input value converted to a Date.",
|
|
2501
|
-
"type": {
|
|
2502
|
-
"type": "Date"
|
|
2503
|
-
}
|
|
2504
|
-
}
|
|
2505
|
-
},
|
|
2506
|
-
"@toddle/getElementById": {
|
|
2507
|
-
"name": "Get element by id",
|
|
2508
|
-
"description": "Return a DOM element with a given id.",
|
|
2509
|
-
"cache": false,
|
|
2510
|
-
"arguments": [
|
|
2511
|
-
{
|
|
2512
|
-
"name": "Id",
|
|
2513
|
-
"formula": {
|
|
2514
|
-
"type": "value",
|
|
2515
|
-
"value": "element-id"
|
|
2516
|
-
},
|
|
2517
|
-
"type": {
|
|
2518
|
-
"type": "String"
|
|
2519
|
-
},
|
|
2520
|
-
"description": "The id of the DOM element to return."
|
|
2521
|
-
}
|
|
2522
|
-
],
|
|
2523
|
-
"output": {
|
|
2524
|
-
"description": "The DOM element with the given id. If no DOM element is found, this will return Null.",
|
|
2525
|
-
"type": {
|
|
2526
|
-
"type": "Element"
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
},
|
|
2530
|
-
"@toddle/entries": {
|
|
2531
|
-
"name": "Entries",
|
|
2532
|
-
"description": "Get an Array of entries from a given Object.",
|
|
2533
|
-
"arguments": [
|
|
2438
|
+
},
|
|
2534
2439
|
{
|
|
2535
|
-
"name": "
|
|
2440
|
+
"name": "Locale(s)",
|
|
2441
|
+
"description": "Optional locale to use for formatting the Number, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
|
|
2442
|
+
"type": {
|
|
2443
|
+
"type": "Array \\| String"
|
|
2444
|
+
},
|
|
2536
2445
|
"formula": {
|
|
2537
2446
|
"type": "value",
|
|
2538
2447
|
"value": null
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"name": "Options",
|
|
2452
|
+
"description": "Optional Object for configuring the formatting of the output. See the [NumberFormat locale options on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locale_options).",
|
|
2541
2453
|
"type": {
|
|
2542
2454
|
"type": "Object"
|
|
2455
|
+
},
|
|
2456
|
+
"formula": {
|
|
2457
|
+
"type": "value",
|
|
2458
|
+
"value": null
|
|
2543
2459
|
}
|
|
2544
2460
|
}
|
|
2545
2461
|
],
|
|
2462
|
+
"description": "Format a Number using the Intl.NumberFormat API. See the [NumberFormat docs on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).",
|
|
2546
2463
|
"output": {
|
|
2547
|
-
"description": "
|
|
2464
|
+
"description": "The Number input formatted as a String.",
|
|
2548
2465
|
"type": {
|
|
2549
|
-
"type": "
|
|
2466
|
+
"type": "String"
|
|
2550
2467
|
}
|
|
2551
2468
|
}
|
|
2552
2469
|
},
|
|
2553
|
-
"@toddle/
|
|
2554
|
-
"name": "
|
|
2555
|
-
"description": "
|
|
2470
|
+
"@toddle/some": {
|
|
2471
|
+
"name": "Some",
|
|
2472
|
+
"description": "Run a formula on all items of an Array to determine if any item matches a set of conditions.",
|
|
2556
2473
|
"arguments": [
|
|
2557
2474
|
{
|
|
2558
|
-
"name": "
|
|
2475
|
+
"name": "Array",
|
|
2559
2476
|
"formula": {
|
|
2560
2477
|
"type": "value",
|
|
2561
2478
|
"value": null
|
|
2562
2479
|
},
|
|
2563
|
-
"description": "The
|
|
2480
|
+
"description": "The Array of items to evaluate.",
|
|
2564
2481
|
"type": {
|
|
2565
|
-
"type": "
|
|
2482
|
+
"type": "Array"
|
|
2566
2483
|
}
|
|
2567
2484
|
},
|
|
2568
2485
|
{
|
|
2569
|
-
"name": "
|
|
2486
|
+
"name": "Formula",
|
|
2487
|
+
"isFunction": true,
|
|
2570
2488
|
"formula": {
|
|
2571
|
-
"type": "
|
|
2572
|
-
"
|
|
2489
|
+
"type": "path",
|
|
2490
|
+
"path": [
|
|
2491
|
+
"Args",
|
|
2492
|
+
"item"
|
|
2493
|
+
]
|
|
2573
2494
|
},
|
|
2574
|
-
"description": "
|
|
2495
|
+
"description": "Predicate formula for evaluating each item.",
|
|
2575
2496
|
"type": {
|
|
2576
|
-
"type": "
|
|
2497
|
+
"type": "Formula"
|
|
2577
2498
|
}
|
|
2578
2499
|
}
|
|
2579
2500
|
],
|
|
2580
2501
|
"output": {
|
|
2581
|
-
"description": "
|
|
2502
|
+
"description": "Returns True if the predicate formula returns True for any items in the Array, otherwise False.",
|
|
2582
2503
|
"type": {
|
|
2583
|
-
"type": "
|
|
2504
|
+
"type": "Boolean"
|
|
2584
2505
|
}
|
|
2585
2506
|
}
|
|
2586
2507
|
},
|
|
2587
|
-
"@toddle/
|
|
2588
|
-
"name": "
|
|
2589
|
-
"description": "Return
|
|
2508
|
+
"@toddle/getElementById": {
|
|
2509
|
+
"name": "Get element by id",
|
|
2510
|
+
"description": "Return a DOM element with a given id.",
|
|
2511
|
+
"cache": false,
|
|
2590
2512
|
"arguments": [
|
|
2591
2513
|
{
|
|
2592
|
-
"name": "
|
|
2514
|
+
"name": "Id",
|
|
2593
2515
|
"formula": {
|
|
2594
2516
|
"type": "value",
|
|
2595
|
-
"value":
|
|
2517
|
+
"value": "element-id"
|
|
2596
2518
|
},
|
|
2597
2519
|
"type": {
|
|
2598
|
-
"type": "
|
|
2520
|
+
"type": "String"
|
|
2599
2521
|
},
|
|
2600
|
-
"description": "
|
|
2522
|
+
"description": "The id of the DOM element to return."
|
|
2601
2523
|
}
|
|
2602
2524
|
],
|
|
2603
2525
|
"output": {
|
|
2604
|
-
"description": "The
|
|
2526
|
+
"description": "The DOM element with the given id. If no DOM element is found, this will return Null.",
|
|
2605
2527
|
"type": {
|
|
2606
|
-
"type": "
|
|
2528
|
+
"type": "Element"
|
|
2607
2529
|
}
|
|
2608
2530
|
}
|
|
2609
2531
|
},
|
|
2610
|
-
"@toddle/
|
|
2611
|
-
"name": "
|
|
2612
|
-
"description": "
|
|
2532
|
+
"@toddle/branchName": {
|
|
2533
|
+
"name": "Branch Name",
|
|
2534
|
+
"description": "Get the name of the current branch. For production, the branch name is 'main'.",
|
|
2535
|
+
"arguments": [],
|
|
2536
|
+
"output": {
|
|
2537
|
+
"description": "Returns the name of the current branch.",
|
|
2538
|
+
"type": {
|
|
2539
|
+
"type": "String"
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
},
|
|
2543
|
+
"@toddle/sort_by": {
|
|
2544
|
+
"name": "Sort by",
|
|
2545
|
+
"description": "Sort an Array using a formula.",
|
|
2613
2546
|
"arguments": [
|
|
2614
2547
|
{
|
|
2615
2548
|
"name": "Array",
|
|
2616
2549
|
"formula": {
|
|
2617
2550
|
"type": "value",
|
|
2618
|
-
"value":
|
|
2551
|
+
"value": []
|
|
2619
2552
|
},
|
|
2620
|
-
"description": "The Array of items.",
|
|
2621
2553
|
"type": {
|
|
2622
2554
|
"type": "Array"
|
|
2623
|
-
}
|
|
2555
|
+
},
|
|
2556
|
+
"description": "The input Array."
|
|
2624
2557
|
},
|
|
2625
2558
|
{
|
|
2626
2559
|
"name": "Formula",
|
|
2627
|
-
"isFunction": true,
|
|
2628
2560
|
"formula": {
|
|
2629
2561
|
"type": "path",
|
|
2630
2562
|
"path": [
|
|
@@ -2632,107 +2564,102 @@
|
|
|
2632
2564
|
"item"
|
|
2633
2565
|
]
|
|
2634
2566
|
},
|
|
2635
|
-
"description": "The formula to run on each item of the Array.",
|
|
2636
2567
|
"type": {
|
|
2637
2568
|
"type": "Formula"
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
],
|
|
2641
|
-
"output": {
|
|
2642
|
-
"description": "A new Array containing all the values returned from running the provided formula on each item in the provided input Array.",
|
|
2643
|
-
"type": {
|
|
2644
|
-
"type": "Array"
|
|
2645
|
-
}
|
|
2646
|
-
}
|
|
2647
|
-
},
|
|
2648
|
-
"@toddle/now": {
|
|
2649
|
-
"name": "Now",
|
|
2650
|
-
"description": "Get a Date representing \"Now\"",
|
|
2651
|
-
"arguments": [],
|
|
2652
|
-
"cache": false,
|
|
2653
|
-
"output": {
|
|
2654
|
-
"description": "A Date object initialized at the current date/time.",
|
|
2655
|
-
"type": {
|
|
2656
|
-
"type": "Date"
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
"@toddle/startsWith": {
|
|
2661
|
-
"name": "Starts with",
|
|
2662
|
-
"description": "Check if a String has a given prefix.",
|
|
2663
|
-
"arguments": [
|
|
2664
|
-
{
|
|
2665
|
-
"name": "String",
|
|
2666
|
-
"formula": {
|
|
2667
|
-
"type": "value",
|
|
2668
|
-
"value": ""
|
|
2669
2569
|
},
|
|
2670
|
-
"
|
|
2671
|
-
"
|
|
2672
|
-
"type": "String"
|
|
2673
|
-
}
|
|
2570
|
+
"isFunction": true,
|
|
2571
|
+
"description": "The sorting formula. The output of this formula will determine the sort order of the items. If the formula returns an Array, the items will first be sorted by the first item, then the second, etc."
|
|
2674
2572
|
},
|
|
2675
2573
|
{
|
|
2676
|
-
"name": "
|
|
2574
|
+
"name": "Ascending?",
|
|
2677
2575
|
"formula": {
|
|
2678
2576
|
"type": "value",
|
|
2679
|
-
"value":
|
|
2577
|
+
"value": true
|
|
2680
2578
|
},
|
|
2681
|
-
"description": "The prefix to check for.",
|
|
2682
2579
|
"type": {
|
|
2683
|
-
"type": "
|
|
2684
|
-
}
|
|
2580
|
+
"type": "Boolean"
|
|
2581
|
+
},
|
|
2582
|
+
"description": "Should the list be sorted in ascending order?"
|
|
2685
2583
|
}
|
|
2686
2584
|
],
|
|
2687
2585
|
"output": {
|
|
2688
|
-
"description": "
|
|
2586
|
+
"description": "The input Array sorted by the value returned by the sorting formula.",
|
|
2689
2587
|
"type": {
|
|
2690
|
-
"type": "
|
|
2588
|
+
"type": "Number"
|
|
2691
2589
|
}
|
|
2692
2590
|
}
|
|
2693
2591
|
},
|
|
2694
|
-
"@toddle/
|
|
2695
|
-
"name": "
|
|
2696
|
-
"description": "
|
|
2592
|
+
"@toddle/clamp": {
|
|
2593
|
+
"name": "Clamp",
|
|
2594
|
+
"description": "Limit a value to a specified Min and Max value.",
|
|
2697
2595
|
"arguments": [
|
|
2698
2596
|
{
|
|
2699
|
-
"name": "
|
|
2700
|
-
"description": "The URL you want to check.",
|
|
2597
|
+
"name": "Value",
|
|
2701
2598
|
"type": {
|
|
2702
|
-
"type": "
|
|
2599
|
+
"type": "Number"
|
|
2703
2600
|
},
|
|
2704
2601
|
"formula": {
|
|
2705
2602
|
"type": "value",
|
|
2706
2603
|
"value": null
|
|
2707
|
-
}
|
|
2604
|
+
},
|
|
2605
|
+
"description": "Number to round."
|
|
2708
2606
|
},
|
|
2709
2607
|
{
|
|
2710
|
-
"name": "
|
|
2711
|
-
"description": "The title you want to check.",
|
|
2608
|
+
"name": "Min",
|
|
2712
2609
|
"type": {
|
|
2713
|
-
"type": "
|
|
2610
|
+
"type": "Number"
|
|
2714
2611
|
},
|
|
2612
|
+
"description": "The smallest allowed Number.",
|
|
2715
2613
|
"formula": {
|
|
2716
2614
|
"type": "value",
|
|
2717
|
-
"value":
|
|
2615
|
+
"value": 0
|
|
2718
2616
|
}
|
|
2719
2617
|
},
|
|
2720
2618
|
{
|
|
2721
|
-
"name": "
|
|
2722
|
-
"description": "The text you want to check.",
|
|
2619
|
+
"name": "Max",
|
|
2723
2620
|
"type": {
|
|
2724
|
-
"type": "
|
|
2621
|
+
"type": "Number"
|
|
2725
2622
|
},
|
|
2623
|
+
"description": "The largest allowed Number.",
|
|
2726
2624
|
"formula": {
|
|
2727
2625
|
"type": "value",
|
|
2728
|
-
"value":
|
|
2626
|
+
"value": 100
|
|
2729
2627
|
}
|
|
2730
2628
|
}
|
|
2731
|
-
]
|
|
2629
|
+
],
|
|
2630
|
+
"output": {
|
|
2631
|
+
"type": {
|
|
2632
|
+
"type": "Number"
|
|
2633
|
+
},
|
|
2634
|
+
"description": "Returns the input value if between the specified Min and Max. Otherwise, it returns the Min or Max value."
|
|
2635
|
+
}
|
|
2732
2636
|
},
|
|
2733
|
-
"@toddle/
|
|
2734
|
-
"name": "
|
|
2735
|
-
"
|
|
2637
|
+
"@toddle/decodeBase64": {
|
|
2638
|
+
"name": "Decode base64",
|
|
2639
|
+
"arguments": [
|
|
2640
|
+
{
|
|
2641
|
+
"name": "Base64 value",
|
|
2642
|
+
"formula": {
|
|
2643
|
+
"type": "value",
|
|
2644
|
+
"value": "Input value"
|
|
2645
|
+
},
|
|
2646
|
+
"type": {
|
|
2647
|
+
"type": "String"
|
|
2648
|
+
},
|
|
2649
|
+
"description": "The input data encoded as base64."
|
|
2650
|
+
}
|
|
2651
|
+
],
|
|
2652
|
+
"description": "Deocde a base64 string to utf-8.",
|
|
2653
|
+
"output": {
|
|
2654
|
+
"description": "The decoded string.",
|
|
2655
|
+
"type": {
|
|
2656
|
+
"type": "String"
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
"@toddle/findLast": {
|
|
2661
|
+
"name": "Find Last",
|
|
2662
|
+
"description": "Search through an Array of items and apply a formula to each item, to return the last item where the formula returns True.",
|
|
2736
2663
|
"arguments": [
|
|
2737
2664
|
{
|
|
2738
2665
|
"name": "Array",
|
|
@@ -2740,131 +2667,146 @@
|
|
|
2740
2667
|
"type": "value",
|
|
2741
2668
|
"value": null
|
|
2742
2669
|
},
|
|
2743
|
-
"description": "
|
|
2670
|
+
"description": "The array to search.",
|
|
2744
2671
|
"type": {
|
|
2745
2672
|
"type": "Array"
|
|
2746
2673
|
}
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"name": "Formula",
|
|
2677
|
+
"isFunction": true,
|
|
2678
|
+
"formula": {
|
|
2679
|
+
"type": "path",
|
|
2680
|
+
"path": [
|
|
2681
|
+
"Args",
|
|
2682
|
+
"item"
|
|
2683
|
+
]
|
|
2684
|
+
},
|
|
2685
|
+
"description": "The predicate formula that each item in the Array is passed to.",
|
|
2686
|
+
"type": {
|
|
2687
|
+
"type": "Formula"
|
|
2688
|
+
}
|
|
2747
2689
|
}
|
|
2748
2690
|
],
|
|
2749
2691
|
"output": {
|
|
2750
|
-
"description": "
|
|
2692
|
+
"description": "The last item in the Array where the formula returns True. Returns Null if the predicate formula did not return True for any item.",
|
|
2751
2693
|
"type": {
|
|
2752
|
-
"type": "
|
|
2694
|
+
"type": "Any"
|
|
2753
2695
|
}
|
|
2754
2696
|
}
|
|
2755
2697
|
},
|
|
2756
|
-
"@toddle/
|
|
2757
|
-
"name": "
|
|
2758
|
-
"description": "
|
|
2698
|
+
"@toddle/drop": {
|
|
2699
|
+
"name": "Drop",
|
|
2700
|
+
"description": "Remove items from the beginning of an Array or String.",
|
|
2759
2701
|
"arguments": [
|
|
2760
2702
|
{
|
|
2761
|
-
"name": "
|
|
2703
|
+
"name": "Array",
|
|
2704
|
+
"formula": {
|
|
2705
|
+
"type": "value",
|
|
2706
|
+
"value": null
|
|
2707
|
+
},
|
|
2708
|
+
"description": "The input value.",
|
|
2709
|
+
"type": {
|
|
2710
|
+
"type": "Array \\| String"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
"name": "Count",
|
|
2715
|
+
"description": "Number of items to remove.",
|
|
2716
|
+
"type": {
|
|
2717
|
+
"type": "Number"
|
|
2718
|
+
},
|
|
2762
2719
|
"formula": {
|
|
2763
2720
|
"type": "value",
|
|
2764
|
-
"value":
|
|
2765
|
-
},
|
|
2766
|
-
"description": "Input String.",
|
|
2767
|
-
"type": {
|
|
2768
|
-
"type": "String"
|
|
2721
|
+
"value": 1
|
|
2769
2722
|
}
|
|
2770
2723
|
}
|
|
2771
2724
|
],
|
|
2772
2725
|
"output": {
|
|
2773
|
-
"description": "
|
|
2726
|
+
"description": "A copy of the list without the first items.",
|
|
2774
2727
|
"type": {
|
|
2775
|
-
"type": "String"
|
|
2728
|
+
"type": "Array \\| String"
|
|
2776
2729
|
}
|
|
2777
2730
|
}
|
|
2778
2731
|
},
|
|
2779
|
-
"@toddle/
|
|
2780
|
-
"name": "
|
|
2781
|
-
"description": "
|
|
2732
|
+
"@toddle/entries": {
|
|
2733
|
+
"name": "Entries",
|
|
2734
|
+
"description": "Get an Array of entries from a given Object.",
|
|
2782
2735
|
"arguments": [
|
|
2783
2736
|
{
|
|
2784
|
-
"name": "
|
|
2785
|
-
"type": {
|
|
2786
|
-
"type": "Array"
|
|
2787
|
-
},
|
|
2788
|
-
"description": "The array of numbers to sum.",
|
|
2737
|
+
"name": "Object",
|
|
2789
2738
|
"formula": {
|
|
2790
|
-
"type": "
|
|
2791
|
-
"
|
|
2739
|
+
"type": "value",
|
|
2740
|
+
"value": null
|
|
2741
|
+
},
|
|
2742
|
+
"description": "Input record",
|
|
2743
|
+
"type": {
|
|
2744
|
+
"type": "Object"
|
|
2792
2745
|
}
|
|
2793
2746
|
}
|
|
2794
2747
|
],
|
|
2795
2748
|
"output": {
|
|
2796
|
-
"description": "
|
|
2749
|
+
"description": "Returns an Array of entries for the given input record. The entries are Objects with a “Key” and “Value” property.",
|
|
2797
2750
|
"type": {
|
|
2798
|
-
"type": "
|
|
2751
|
+
"type": "Array"
|
|
2799
2752
|
}
|
|
2800
2753
|
}
|
|
2801
2754
|
},
|
|
2802
|
-
"@toddle/
|
|
2803
|
-
"name": "
|
|
2804
|
-
"description": "
|
|
2755
|
+
"@toddle/getHttpOnlyCookie": {
|
|
2756
|
+
"name": "Get Http-Only Cookie",
|
|
2757
|
+
"description": "Get the value of an Http-Only cookie by name. This formula will is only intended to be used server-side for SSR/proxied API requests to read Http-Only cookies.",
|
|
2805
2758
|
"arguments": [
|
|
2806
2759
|
{
|
|
2807
|
-
"name": "
|
|
2760
|
+
"name": "Cookie name",
|
|
2808
2761
|
"formula": {
|
|
2809
2762
|
"type": "value",
|
|
2810
2763
|
"value": null
|
|
2811
2764
|
},
|
|
2765
|
+
"description": "The name of the Http-Only cookie you want to get the value of.",
|
|
2812
2766
|
"type": {
|
|
2813
2767
|
"type": "String"
|
|
2814
|
-
}
|
|
2815
|
-
"description": "The encoded URI to decode."
|
|
2768
|
+
}
|
|
2816
2769
|
}
|
|
2817
2770
|
],
|
|
2818
2771
|
"output": {
|
|
2819
|
-
"description": "The
|
|
2772
|
+
"description": "The value of the cookie. If no cookie is found, this will return Null. If you use this formula client-side, it will return a placeholder template string.",
|
|
2820
2773
|
"type": {
|
|
2821
2774
|
"type": "String"
|
|
2822
2775
|
}
|
|
2823
2776
|
}
|
|
2824
2777
|
},
|
|
2825
|
-
"@toddle/
|
|
2826
|
-
"name": "
|
|
2827
|
-
"description": "
|
|
2778
|
+
"@toddle/max": {
|
|
2779
|
+
"name": "Max",
|
|
2780
|
+
"description": "Find the largest Number from a list of inputs.",
|
|
2828
2781
|
"arguments": [
|
|
2829
2782
|
{
|
|
2830
|
-
"name": "
|
|
2831
|
-
"formula": {
|
|
2832
|
-
"type": "value",
|
|
2833
|
-
"value": null
|
|
2834
|
-
},
|
|
2835
|
-
"description": "The Array or Object of items to be reduced.",
|
|
2836
|
-
"type": {
|
|
2837
|
-
"type": "Array \\| Object"
|
|
2838
|
-
}
|
|
2839
|
-
},
|
|
2840
|
-
{
|
|
2841
|
-
"name": "Formula",
|
|
2842
|
-
"isFunction": true,
|
|
2783
|
+
"name": "0",
|
|
2843
2784
|
"formula": {
|
|
2844
2785
|
"type": "value",
|
|
2845
2786
|
"value": null
|
|
2846
2787
|
},
|
|
2847
|
-
"description": "
|
|
2788
|
+
"description": "Input Number.",
|
|
2848
2789
|
"type": {
|
|
2849
|
-
"type": "
|
|
2790
|
+
"type": "Number"
|
|
2850
2791
|
}
|
|
2851
2792
|
},
|
|
2852
2793
|
{
|
|
2853
|
-
"name": "
|
|
2794
|
+
"name": "1",
|
|
2854
2795
|
"formula": {
|
|
2855
2796
|
"type": "value",
|
|
2856
2797
|
"value": null
|
|
2857
2798
|
},
|
|
2858
|
-
"description": "
|
|
2799
|
+
"description": "Input Number.",
|
|
2859
2800
|
"type": {
|
|
2860
|
-
"type": "
|
|
2801
|
+
"type": "Number"
|
|
2861
2802
|
}
|
|
2862
2803
|
}
|
|
2863
2804
|
],
|
|
2805
|
+
"variableArguments": true,
|
|
2864
2806
|
"output": {
|
|
2865
|
-
"description": "The
|
|
2807
|
+
"description": "The largest of the input Numbers.",
|
|
2866
2808
|
"type": {
|
|
2867
|
-
"type": "
|
|
2809
|
+
"type": "Number"
|
|
2868
2810
|
}
|
|
2869
2811
|
}
|
|
2870
2812
|
},
|
|
@@ -2901,119 +2843,71 @@
|
|
|
2901
2843
|
"type": "Boolean"
|
|
2902
2844
|
}
|
|
2903
2845
|
}
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
"
|
|
2909
|
-
"description": "Share data with title, text, and/or URL using the Navigator.share API.",
|
|
2846
|
+
},
|
|
2847
|
+
"@toddle/getFromLocalStorage": {
|
|
2848
|
+
"name": "Get from Local Storage",
|
|
2849
|
+
"description": "Read a value from local storage with the provided key.",
|
|
2850
|
+
"cache": false,
|
|
2910
2851
|
"arguments": [
|
|
2911
2852
|
{
|
|
2912
|
-
"name": "
|
|
2913
|
-
"description": "The URL to share.",
|
|
2914
|
-
"type": {
|
|
2915
|
-
"type": "String"
|
|
2916
|
-
},
|
|
2853
|
+
"name": "Key",
|
|
2917
2854
|
"formula": {
|
|
2918
2855
|
"type": "value",
|
|
2919
2856
|
"value": null
|
|
2920
|
-
}
|
|
2921
|
-
},
|
|
2922
|
-
{
|
|
2923
|
-
"name": "Title",
|
|
2924
|
-
"description": "The title to share.",
|
|
2925
|
-
"type": {
|
|
2926
|
-
"type": "String"
|
|
2927
2857
|
},
|
|
2928
|
-
"
|
|
2929
|
-
"type": "value",
|
|
2930
|
-
"value": null
|
|
2931
|
-
}
|
|
2932
|
-
},
|
|
2933
|
-
{
|
|
2934
|
-
"name": "Text",
|
|
2935
|
-
"description": "The text to share.",
|
|
2858
|
+
"description": "The key to read from local storage.",
|
|
2936
2859
|
"type": {
|
|
2937
2860
|
"type": "String"
|
|
2938
|
-
},
|
|
2939
|
-
"formula": {
|
|
2940
|
-
"type": "value",
|
|
2941
|
-
"value": null
|
|
2942
2861
|
}
|
|
2943
2862
|
}
|
|
2944
|
-
]
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
"arguments": [
|
|
2950
|
-
{
|
|
2951
|
-
"name": "Key",
|
|
2952
|
-
"description": "The key in local storage to delete.",
|
|
2953
|
-
"type": {
|
|
2954
|
-
"type": "String"
|
|
2955
|
-
},
|
|
2956
|
-
"formula": {
|
|
2957
|
-
"type": "value",
|
|
2958
|
-
"value": ""
|
|
2959
|
-
}
|
|
2863
|
+
],
|
|
2864
|
+
"output": {
|
|
2865
|
+
"description": "The value found in local storage. If no value is found, this will return Null.",
|
|
2866
|
+
"type": {
|
|
2867
|
+
"type": "Any"
|
|
2960
2868
|
}
|
|
2961
|
-
|
|
2869
|
+
}
|
|
2962
2870
|
},
|
|
2963
|
-
"@toddle/
|
|
2964
|
-
"name": "
|
|
2965
|
-
"description": "
|
|
2871
|
+
"@toddle/dropLast": {
|
|
2872
|
+
"name": "Drop last",
|
|
2873
|
+
"description": "Remove item(s) from the end of an Array or String.",
|
|
2966
2874
|
"arguments": [
|
|
2967
2875
|
{
|
|
2968
|
-
"name": "
|
|
2969
|
-
"description": "The DOM element that should receive focus.",
|
|
2970
|
-
"type": {
|
|
2971
|
-
"type": "Element"
|
|
2972
|
-
},
|
|
2876
|
+
"name": "Array",
|
|
2973
2877
|
"formula": {
|
|
2974
|
-
"type": "
|
|
2878
|
+
"type": "value",
|
|
2975
2879
|
"value": null
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
]
|
|
2979
|
-
},
|
|
2980
|
-
"@toddle/setSessionCookies": {
|
|
2981
|
-
"name": "Set session cookies",
|
|
2982
|
-
"description": "Save authentication tokens as session cookies.",
|
|
2983
|
-
"arguments": [
|
|
2984
|
-
{
|
|
2985
|
-
"name": "Access token",
|
|
2986
|
-
"description": "Access tokens are the most common way to authenticate with a server.",
|
|
2987
|
-
"type": {
|
|
2988
|
-
"type": "String"
|
|
2989
2880
|
},
|
|
2990
|
-
"
|
|
2991
|
-
|
|
2992
|
-
"
|
|
2881
|
+
"description": "The input value.",
|
|
2882
|
+
"type": {
|
|
2883
|
+
"type": "Array \\| String"
|
|
2993
2884
|
}
|
|
2994
2885
|
},
|
|
2995
2886
|
{
|
|
2996
|
-
"name": "
|
|
2997
|
-
"
|
|
2887
|
+
"name": "Count",
|
|
2888
|
+
"formula": {
|
|
2889
|
+
"type": "value",
|
|
2890
|
+
"value": 1
|
|
2891
|
+
},
|
|
2998
2892
|
"type": {
|
|
2999
2893
|
"type": "Number"
|
|
3000
2894
|
},
|
|
3001
|
-
"
|
|
3002
|
-
"type": "value",
|
|
3003
|
-
"value": ""
|
|
3004
|
-
}
|
|
2895
|
+
"description": "Number of items to remove."
|
|
3005
2896
|
}
|
|
3006
2897
|
],
|
|
3007
|
-
"
|
|
3008
|
-
"
|
|
3009
|
-
|
|
3010
|
-
"
|
|
3011
|
-
},
|
|
3012
|
-
"Error": {
|
|
3013
|
-
"description": "This event is triggered if Nordcraft is unable to set the session cookies.",
|
|
3014
|
-
"actions": []
|
|
2898
|
+
"output": {
|
|
2899
|
+
"description": "A copy of the list without the last item(s).",
|
|
2900
|
+
"type": {
|
|
2901
|
+
"type": "Array \\| String"
|
|
3015
2902
|
}
|
|
3016
2903
|
}
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
export const actions = {
|
|
2907
|
+
"@toddle/clearLocalStorage": {
|
|
2908
|
+
"name": "Clear Local Storage",
|
|
2909
|
+
"description": "Delete all values in local storage.",
|
|
2910
|
+
"arguments": []
|
|
3017
2911
|
},
|
|
3018
2912
|
"@toddle/saveToSessionStorage": {
|
|
3019
2913
|
"name": "Save to Session Storage",
|
|
@@ -3043,53 +2937,32 @@
|
|
|
3043
2937
|
}
|
|
3044
2938
|
]
|
|
3045
2939
|
},
|
|
3046
|
-
"@toddle/
|
|
3047
|
-
"name": "
|
|
3048
|
-
"
|
|
3049
|
-
"
|
|
3050
|
-
|
|
3051
|
-
"name": "Key",
|
|
3052
|
-
"description": "The key in session storage to delete.",
|
|
3053
|
-
"type": {
|
|
3054
|
-
"type": "String"
|
|
3055
|
-
},
|
|
3056
|
-
"formula": {
|
|
3057
|
-
"type": "value",
|
|
3058
|
-
"value": ""
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
]
|
|
2940
|
+
"@toddle/preventDefault": {
|
|
2941
|
+
"name": "Prevent default",
|
|
2942
|
+
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault",
|
|
2943
|
+
"description": "Prevent default browser behavior for this event.",
|
|
2944
|
+
"arguments": []
|
|
3062
2945
|
},
|
|
3063
|
-
"@toddle/
|
|
3064
|
-
"name": "
|
|
3065
|
-
"description": "
|
|
2946
|
+
"@toddle/focus": {
|
|
2947
|
+
"name": "Focus",
|
|
2948
|
+
"description": "Move focus to a DOM element.",
|
|
3066
2949
|
"arguments": [
|
|
3067
2950
|
{
|
|
3068
|
-
"name": "
|
|
3069
|
-
"description": "The
|
|
2951
|
+
"name": "Element",
|
|
2952
|
+
"description": "The DOM element that should receive focus.",
|
|
3070
2953
|
"type": {
|
|
3071
|
-
"type": "
|
|
2954
|
+
"type": "Element"
|
|
3072
2955
|
},
|
|
3073
2956
|
"formula": {
|
|
3074
|
-
"type": "
|
|
3075
|
-
"value":
|
|
3076
|
-
}
|
|
3077
|
-
}
|
|
3078
|
-
]
|
|
3079
|
-
"events": {
|
|
3080
|
-
"tick": {
|
|
3081
|
-
"actions": []
|
|
3082
|
-
}
|
|
3083
|
-
}
|
|
3084
|
-
},
|
|
3085
|
-
"@toddle/clearLocalStorage": {
|
|
3086
|
-
"name": "Clear Local Storage",
|
|
3087
|
-
"description": "Delete all values in local storage.",
|
|
3088
|
-
"arguments": []
|
|
2957
|
+
"type": "Element",
|
|
2958
|
+
"value": null
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
]
|
|
3089
2962
|
},
|
|
3090
|
-
"@toddle/
|
|
3091
|
-
"name": "Set
|
|
3092
|
-
"description": "Save a key/value pair as
|
|
2963
|
+
"@toddle/setCookie": {
|
|
2964
|
+
"name": "Set Cookie",
|
|
2965
|
+
"description": "Save a key/value pair as a non-http-only cookie (readable on the client). Useful for storing user preferences.",
|
|
3093
2966
|
"arguments": [
|
|
3094
2967
|
{
|
|
3095
2968
|
"name": "Name",
|
|
@@ -3099,7 +2972,7 @@
|
|
|
3099
2972
|
},
|
|
3100
2973
|
"formula": {
|
|
3101
2974
|
"type": "value",
|
|
3102
|
-
"value": "
|
|
2975
|
+
"value": ""
|
|
3103
2976
|
}
|
|
3104
2977
|
},
|
|
3105
2978
|
{
|
|
@@ -3115,7 +2988,7 @@
|
|
|
3115
2988
|
},
|
|
3116
2989
|
{
|
|
3117
2990
|
"name": "Expires in",
|
|
3118
|
-
"description": "(Optional) Time in seconds until the cookie expires.
|
|
2991
|
+
"description": "(Optional) Time in seconds until the cookie expires. If this is null, the cookie will expire at the end of the user's session.",
|
|
3119
2992
|
"type": {
|
|
3120
2993
|
"type": "Number"
|
|
3121
2994
|
},
|
|
@@ -3174,37 +3047,49 @@
|
|
|
3174
3047
|
"description": "Delete all values in session storage.",
|
|
3175
3048
|
"arguments": []
|
|
3176
3049
|
},
|
|
3177
|
-
"@toddle/
|
|
3178
|
-
"name": "
|
|
3179
|
-
"
|
|
3050
|
+
"@toddle/stopPropagation": {
|
|
3051
|
+
"name": "Stop propagation",
|
|
3052
|
+
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation",
|
|
3053
|
+
"description": "Stop the event from bubbling up the DOM to parent elements.",
|
|
3054
|
+
"arguments": []
|
|
3055
|
+
},
|
|
3056
|
+
"@toddle/gotToURL": {
|
|
3057
|
+
"name": "Go to URL",
|
|
3058
|
+
"description": "Navigate to a specified URL.",
|
|
3180
3059
|
"arguments": [
|
|
3181
3060
|
{
|
|
3182
|
-
"name": "
|
|
3183
|
-
"description": "The
|
|
3061
|
+
"name": "URL",
|
|
3062
|
+
"description": "The URL to navigate to.",
|
|
3184
3063
|
"type": {
|
|
3185
3064
|
"type": "String"
|
|
3186
3065
|
},
|
|
3187
3066
|
"formula": {
|
|
3188
3067
|
"type": "value",
|
|
3189
|
-
"value": ""
|
|
3068
|
+
"value": "https://example.com"
|
|
3190
3069
|
}
|
|
3191
|
-
}
|
|
3070
|
+
}
|
|
3071
|
+
]
|
|
3072
|
+
},
|
|
3073
|
+
"@toddle/share": {
|
|
3074
|
+
"name": "Share",
|
|
3075
|
+
"description": "Share data with title, text, and/or URL using the Navigator.share API.",
|
|
3076
|
+
"arguments": [
|
|
3192
3077
|
{
|
|
3193
|
-
"name": "
|
|
3194
|
-
"description": "The
|
|
3078
|
+
"name": "URL",
|
|
3079
|
+
"description": "The URL to share.",
|
|
3195
3080
|
"type": {
|
|
3196
3081
|
"type": "String"
|
|
3197
3082
|
},
|
|
3198
3083
|
"formula": {
|
|
3199
3084
|
"type": "value",
|
|
3200
|
-
"value":
|
|
3085
|
+
"value": null
|
|
3201
3086
|
}
|
|
3202
3087
|
},
|
|
3203
3088
|
{
|
|
3204
|
-
"name": "
|
|
3205
|
-
"description": "
|
|
3089
|
+
"name": "Title",
|
|
3090
|
+
"description": "The title to share.",
|
|
3206
3091
|
"type": {
|
|
3207
|
-
"type": "
|
|
3092
|
+
"type": "String"
|
|
3208
3093
|
},
|
|
3209
3094
|
"formula": {
|
|
3210
3095
|
"type": "value",
|
|
@@ -3212,8 +3097,8 @@
|
|
|
3212
3097
|
}
|
|
3213
3098
|
},
|
|
3214
3099
|
{
|
|
3215
|
-
"name": "
|
|
3216
|
-
"description": "
|
|
3100
|
+
"name": "Text",
|
|
3101
|
+
"description": "The text to share.",
|
|
3217
3102
|
"type": {
|
|
3218
3103
|
"type": "String"
|
|
3219
3104
|
},
|
|
@@ -3221,37 +3106,43 @@
|
|
|
3221
3106
|
"type": "value",
|
|
3222
3107
|
"value": null
|
|
3223
3108
|
}
|
|
3224
|
-
}
|
|
3109
|
+
}
|
|
3110
|
+
]
|
|
3111
|
+
},
|
|
3112
|
+
"@toddle/setSessionCookies": {
|
|
3113
|
+
"name": "Set session cookies",
|
|
3114
|
+
"description": "Save authentication tokens as session cookies.",
|
|
3115
|
+
"arguments": [
|
|
3225
3116
|
{
|
|
3226
|
-
"name": "
|
|
3227
|
-
"description": "
|
|
3117
|
+
"name": "Access token",
|
|
3118
|
+
"description": "Access tokens are the most common way to authenticate with a server.",
|
|
3228
3119
|
"type": {
|
|
3229
3120
|
"type": "String"
|
|
3230
3121
|
},
|
|
3231
3122
|
"formula": {
|
|
3232
3123
|
"type": "value",
|
|
3233
|
-
"value":
|
|
3124
|
+
"value": ""
|
|
3234
3125
|
}
|
|
3235
3126
|
},
|
|
3236
3127
|
{
|
|
3237
|
-
"name": "
|
|
3238
|
-
"description": "(Optional)
|
|
3128
|
+
"name": "Expires in",
|
|
3129
|
+
"description": "(Optional) Time in seconds until the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs.",
|
|
3239
3130
|
"type": {
|
|
3240
|
-
"type": "
|
|
3131
|
+
"type": "Number"
|
|
3241
3132
|
},
|
|
3242
3133
|
"formula": {
|
|
3243
3134
|
"type": "value",
|
|
3244
|
-
"value":
|
|
3135
|
+
"value": ""
|
|
3245
3136
|
}
|
|
3246
3137
|
}
|
|
3247
3138
|
],
|
|
3248
3139
|
"events": {
|
|
3249
3140
|
"Success": {
|
|
3250
|
-
"description": "This event is triggered once the
|
|
3141
|
+
"description": "This event is triggered once the tokens have been saved.",
|
|
3251
3142
|
"actions": []
|
|
3252
3143
|
},
|
|
3253
3144
|
"Error": {
|
|
3254
|
-
"description": "This event is triggered if
|
|
3145
|
+
"description": "This event is triggered if Nordcraft is unable to set the session cookies.",
|
|
3255
3146
|
"actions": []
|
|
3256
3147
|
}
|
|
3257
3148
|
}
|
|
@@ -3273,17 +3164,22 @@
|
|
|
3273
3164
|
}
|
|
3274
3165
|
]
|
|
3275
3166
|
},
|
|
3276
|
-
"@toddle/
|
|
3277
|
-
"name": "
|
|
3278
|
-
"
|
|
3279
|
-
"
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3167
|
+
"@toddle/deleteFromLocalStorage": {
|
|
3168
|
+
"name": "Delete from Local Storage",
|
|
3169
|
+
"description": "Delete a value from local storage (if found) based on the provided key.",
|
|
3170
|
+
"arguments": [
|
|
3171
|
+
{
|
|
3172
|
+
"name": "Key",
|
|
3173
|
+
"description": "The key in local storage to delete.",
|
|
3174
|
+
"type": {
|
|
3175
|
+
"type": "String"
|
|
3176
|
+
},
|
|
3177
|
+
"formula": {
|
|
3178
|
+
"type": "value",
|
|
3179
|
+
"value": ""
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
]
|
|
3287
3183
|
},
|
|
3288
3184
|
"@toddle/logToConsole": {
|
|
3289
3185
|
"name": "Log to console",
|
|
@@ -3310,13 +3206,13 @@
|
|
|
3310
3206
|
}
|
|
3311
3207
|
]
|
|
3312
3208
|
},
|
|
3313
|
-
"@toddle/
|
|
3314
|
-
"name": "
|
|
3315
|
-
"description": "
|
|
3209
|
+
"@toddle/deleteFromSessionStorage": {
|
|
3210
|
+
"name": "Delete from Session Storage",
|
|
3211
|
+
"description": "Delete a value from session storage (if found) based on the provided key.",
|
|
3316
3212
|
"arguments": [
|
|
3317
3213
|
{
|
|
3318
3214
|
"name": "Key",
|
|
3319
|
-
"description": "The key
|
|
3215
|
+
"description": "The key in session storage to delete.",
|
|
3320
3216
|
"type": {
|
|
3321
3217
|
"type": "String"
|
|
3322
3218
|
},
|
|
@@ -3324,17 +3220,6 @@
|
|
|
3324
3220
|
"type": "value",
|
|
3325
3221
|
"value": ""
|
|
3326
3222
|
}
|
|
3327
|
-
},
|
|
3328
|
-
{
|
|
3329
|
-
"name": "Value",
|
|
3330
|
-
"description": "The value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).",
|
|
3331
|
-
"type": {
|
|
3332
|
-
"type": "Any"
|
|
3333
|
-
},
|
|
3334
|
-
"formula": {
|
|
3335
|
-
"type": "value",
|
|
3336
|
-
"value": null
|
|
3337
|
-
}
|
|
3338
3223
|
}
|
|
3339
3224
|
]
|
|
3340
3225
|
},
|
|
@@ -3360,21 +3245,136 @@
|
|
|
3360
3245
|
}
|
|
3361
3246
|
}
|
|
3362
3247
|
},
|
|
3363
|
-
"@toddle/
|
|
3364
|
-
"name": "
|
|
3365
|
-
"description": "
|
|
3248
|
+
"@toddle/interval": {
|
|
3249
|
+
"name": "Interval",
|
|
3250
|
+
"description": "Run an action every \"delay\" milliseconds.",
|
|
3366
3251
|
"arguments": [
|
|
3367
3252
|
{
|
|
3368
|
-
"name": "
|
|
3369
|
-
"description": "The
|
|
3253
|
+
"name": "Interval in milliseconds",
|
|
3254
|
+
"description": "The interval \"delay\".",
|
|
3255
|
+
"type": {
|
|
3256
|
+
"type": "Number"
|
|
3257
|
+
},
|
|
3258
|
+
"formula": {
|
|
3259
|
+
"type": "value",
|
|
3260
|
+
"value": 1000
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
],
|
|
3264
|
+
"events": {
|
|
3265
|
+
"tick": {
|
|
3266
|
+
"actions": []
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
},
|
|
3270
|
+
"@toddle/saveToLocalStorage": {
|
|
3271
|
+
"name": "Save to Local Storage",
|
|
3272
|
+
"description": "Save a provided key/value to local storage by JSON encoding the value.",
|
|
3273
|
+
"arguments": [
|
|
3274
|
+
{
|
|
3275
|
+
"name": "Key",
|
|
3276
|
+
"description": "The key to be used in local storage.",
|
|
3370
3277
|
"type": {
|
|
3371
3278
|
"type": "String"
|
|
3372
3279
|
},
|
|
3373
3280
|
"formula": {
|
|
3374
3281
|
"type": "value",
|
|
3375
|
-
"value": "
|
|
3282
|
+
"value": ""
|
|
3283
|
+
}
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
"name": "Value",
|
|
3287
|
+
"description": "The value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).",
|
|
3288
|
+
"type": {
|
|
3289
|
+
"type": "Any"
|
|
3290
|
+
},
|
|
3291
|
+
"formula": {
|
|
3292
|
+
"type": "value",
|
|
3293
|
+
"value": null
|
|
3376
3294
|
}
|
|
3377
3295
|
}
|
|
3378
3296
|
]
|
|
3297
|
+
},
|
|
3298
|
+
"@toddle/setHttpOnlyCookie": {
|
|
3299
|
+
"name": "Set Http-Only Cookie",
|
|
3300
|
+
"description": "Save a key/value pair as an Http-Only cookie. Useful for storing JWTs or other tokens.",
|
|
3301
|
+
"arguments": [
|
|
3302
|
+
{
|
|
3303
|
+
"name": "Name",
|
|
3304
|
+
"description": "The name of the cookie.",
|
|
3305
|
+
"type": {
|
|
3306
|
+
"type": "String"
|
|
3307
|
+
},
|
|
3308
|
+
"formula": {
|
|
3309
|
+
"type": "value",
|
|
3310
|
+
"value": "access_token"
|
|
3311
|
+
}
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
"name": "Value",
|
|
3315
|
+
"description": "The value to be stored in the cookie.",
|
|
3316
|
+
"type": {
|
|
3317
|
+
"type": "String"
|
|
3318
|
+
},
|
|
3319
|
+
"formula": {
|
|
3320
|
+
"type": "value",
|
|
3321
|
+
"value": ""
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "Expires in",
|
|
3326
|
+
"description": "(Optional) Time in seconds until the cookie expires. This should be null for JWTs to use the JWT's expiration. If not provided, the cookie will be a session cookie.",
|
|
3327
|
+
"type": {
|
|
3328
|
+
"type": "Number"
|
|
3329
|
+
},
|
|
3330
|
+
"formula": {
|
|
3331
|
+
"type": "value",
|
|
3332
|
+
"value": null
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"name": "SameSite",
|
|
3337
|
+
"description": "(Optional) The SameSite attribute of the cookie. Defaults to Lax.",
|
|
3338
|
+
"type": {
|
|
3339
|
+
"type": "String"
|
|
3340
|
+
},
|
|
3341
|
+
"formula": {
|
|
3342
|
+
"type": "value",
|
|
3343
|
+
"value": null
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "Path",
|
|
3348
|
+
"description": "(Optional) The Path attribute of the cookie. Defaults to /.",
|
|
3349
|
+
"type": {
|
|
3350
|
+
"type": "String"
|
|
3351
|
+
},
|
|
3352
|
+
"formula": {
|
|
3353
|
+
"type": "value",
|
|
3354
|
+
"value": null
|
|
3355
|
+
}
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
"name": "Include Subdomains",
|
|
3359
|
+
"description": "(Optional) Whether to include subdomains when setting the cookie. Defaults to true.",
|
|
3360
|
+
"type": {
|
|
3361
|
+
"type": "Boolean"
|
|
3362
|
+
},
|
|
3363
|
+
"formula": {
|
|
3364
|
+
"type": "value",
|
|
3365
|
+
"value": null
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
],
|
|
3369
|
+
"events": {
|
|
3370
|
+
"Success": {
|
|
3371
|
+
"description": "This event is triggered once the cookie has been saved.",
|
|
3372
|
+
"actions": []
|
|
3373
|
+
},
|
|
3374
|
+
"Error": {
|
|
3375
|
+
"description": "This event is triggered if the cookie could not be saved.",
|
|
3376
|
+
"actions": []
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
3379
|
}
|
|
3380
3380
|
};
|