@rkmodules/rules 0.0.114 → 0.0.116
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/index.cjs.js
CHANGED
|
@@ -1434,6 +1434,32 @@ var joinStrings = {
|
|
|
1434
1434
|
}); },
|
|
1435
1435
|
};
|
|
1436
1436
|
|
|
1437
|
+
var stringEqualTo = {
|
|
1438
|
+
name: "stringEqualTo",
|
|
1439
|
+
label: "String Equal to",
|
|
1440
|
+
description: "Compare string equal and not equal",
|
|
1441
|
+
inputs: {
|
|
1442
|
+
a: { type: "number", default: 0 },
|
|
1443
|
+
b: { type: "number", default: 0 },
|
|
1444
|
+
},
|
|
1445
|
+
outputs: {
|
|
1446
|
+
eq: "boolean",
|
|
1447
|
+
neq: "boolean",
|
|
1448
|
+
},
|
|
1449
|
+
impl: function (inputs) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1450
|
+
return __generator(this, function (_a) {
|
|
1451
|
+
return [2 /*return*/, {
|
|
1452
|
+
eq: binaryOnTree(inputs.a, inputs.b, function (itemA, itemB) {
|
|
1453
|
+
return itemA === itemB;
|
|
1454
|
+
}, true),
|
|
1455
|
+
neq: binaryOnTree(inputs.a, inputs.b, function (itemA, itemB) {
|
|
1456
|
+
return itemA !== itemB;
|
|
1457
|
+
}, true),
|
|
1458
|
+
}];
|
|
1459
|
+
});
|
|
1460
|
+
}); },
|
|
1461
|
+
};
|
|
1462
|
+
|
|
1437
1463
|
var toString = {
|
|
1438
1464
|
name: "toString",
|
|
1439
1465
|
label: "To String",
|
|
@@ -1461,6 +1487,7 @@ var _a$6;
|
|
|
1461
1487
|
var primitives$6 = (_a$6 = {},
|
|
1462
1488
|
_a$6[toString.name] = toString,
|
|
1463
1489
|
_a$6[joinStrings.name] = joinStrings,
|
|
1490
|
+
_a$6[stringEqualTo.name] = stringEqualTo,
|
|
1464
1491
|
_a$6);
|
|
1465
1492
|
|
|
1466
1493
|
var filterList = {
|
|
@@ -6550,10 +6577,11 @@ function Flow(props) {
|
|
|
6550
6577
|
React.createElement(FlowInner, __assign({}, props)))));
|
|
6551
6578
|
}
|
|
6552
6579
|
|
|
6553
|
-
function useDraggableNode(name) {
|
|
6580
|
+
function useDraggableNode(name, itemProps) {
|
|
6581
|
+
if (itemProps === void 0) { itemProps = {}; }
|
|
6554
6582
|
var _a = __read(useDrag({
|
|
6555
6583
|
type: "flow-node",
|
|
6556
|
-
item: { name: name },
|
|
6584
|
+
item: __assign({ name: name }, itemProps),
|
|
6557
6585
|
collect: function (monitor) { return ({
|
|
6558
6586
|
isDragging: monitor.isDragging(),
|
|
6559
6587
|
}); },
|