@uipath/maestro-builder-sdk 6.11.1 → 6.11.2
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.
|
@@ -294,9 +294,27 @@ export function eventFacts(node, objectRow) {
|
|
|
294
294
|
eventMode: pyStr(pyOr(get(node, "eventMode"), "polling")),
|
|
295
295
|
byoaConnection: truthy(fact("ByoaConnection", "byoaConnection", false)),
|
|
296
296
|
isWebhookUrlVisible: truthy(fact("IsWebhookUrlVisible", "isWebhookUrlVisible", false)),
|
|
297
|
-
textBlocks: pyIter(textBlocks).map(
|
|
297
|
+
textBlocks: pyIter(textBlocks).map(textBlockText),
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* One `Design.TextBlocks` entry as display text. The tenant answers with
|
|
302
|
+
* records — `{ Name, Text, Position }` (every Slack event object carries
|
|
303
|
+
* `{ Name: 'defaultMessage', Text: 'Add this webhook URL to your Slack app. …',
|
|
304
|
+
* Position: 'top' }`) — so the text is the record's `Text`. A bare string is
|
|
305
|
+
* kept as is. Anything else still goes through `pyStr`, which refuses it
|
|
306
|
+
* loudly: the Python's `str(t)` printed a dict repr into the webhook note, and
|
|
307
|
+
* an unknown shape should fail the same way this one did rather than print
|
|
308
|
+
* something plausible.
|
|
309
|
+
*/
|
|
310
|
+
function textBlockText(block) {
|
|
311
|
+
if (isRecord(block)) {
|
|
312
|
+
const text = pyOr(get(block, "Text"), get(block, "text"));
|
|
313
|
+
if (typeof text === "string")
|
|
314
|
+
return text;
|
|
315
|
+
}
|
|
316
|
+
return pyStr(block);
|
|
317
|
+
}
|
|
300
318
|
// ---------------------------------------------------------------------------
|
|
301
319
|
// The generator's cached event calls and its event passes
|
|
302
320
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.2",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"@types/node": "^22.7.0",
|
|
93
93
|
"esbuild": "^0.28.1"
|
|
94
94
|
},
|
|
95
|
-
"gitref": "
|
|
95
|
+
"gitref": "0e144a44d84cd717eaec74c8c43fe864026e7339"
|
|
96
96
|
}
|