@bigbinary/neeto-rules-frontend 2.9.0-beta1 → 2.9.1

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/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-11-03T18:49:10.641Z
1
+ Built at 2026-11-13T11:51:42.827Z
@@ -13,7 +13,7 @@ var neetoCist = require('@bigbinary/neeto-cist');
13
13
  var Container = require('@bigbinary/neeto-molecules/v2/Container');
14
14
  var Header = require('@bigbinary/neeto-molecules/v2/Header');
15
15
  var reactI18next = require('react-i18next');
16
- var index = require('../../index-djZiAHat.js');
16
+ var index = require('../../index-fOTfZZ-u.js');
17
17
  var useCustomDataStore = require('../../useCustomDataStore-DPmWkEhs.js');
18
18
  var useUtilityStore = require('../../useUtilityStore-gtPhFvpI.js');
19
19
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
@@ -2644,6 +2644,7 @@ var descriptorFor = function descriptorFor(_ref19) {
2644
2644
  return {
2645
2645
  label: option.paneLabel || option.label,
2646
2646
  value: triggerValue(option),
2647
+ dataTestid: option.dataTestid,
2647
2648
  category: option.category,
2648
2649
  disabled: isLocked,
2649
2650
  disabledTooltip: isLocked && (schema.triggers.groupDisabledTooltip || i18next.t("neetoRules.builder.panes.triggerGroupDisabled"))
@@ -2659,7 +2660,8 @@ var descriptorFor = function descriptorFor(_ref19) {
2659
2660
  options: (((_schema$actor2 = schema.actor) === null || _schema$actor2 === void 0 ? void 0 : _schema$actor2.options) || []).map(function (option) {
2660
2661
  return {
2661
2662
  label: option.label,
2662
- value: optionValue(option)
2663
+ value: optionValue(option),
2664
+ dataTestid: option.dataTestid
2663
2665
  };
2664
2666
  }),
2665
2667
  selectedValues: [rule.performer]
@@ -2676,6 +2678,7 @@ var descriptorFor = function descriptorFor(_ref19) {
2676
2678
  return {
2677
2679
  label: field.paneLabel || field.label,
2678
2680
  value: optionValue(field),
2681
+ dataTestid: field.dataTestid,
2679
2682
  category: field.category
2680
2683
  };
2681
2684
  }),
@@ -2764,6 +2767,7 @@ var descriptorFor = function descriptorFor(_ref19) {
2764
2767
  return {
2765
2768
  label: isSwap ? meta.channelLabel || option.label : option.label,
2766
2769
  value: value,
2770
+ dataTestid: option.dataTestid,
2767
2771
  category: option.category,
2768
2772
  // Hosts mark unavailable actions with isDisabled; without carrying
2769
2773
  // the reason across, the picker disables them with no explanation.
@@ -2812,7 +2816,8 @@ var descriptorFor = function descriptorFor(_ref19) {
2812
2816
  }).map(function (recipient) {
2813
2817
  return {
2814
2818
  label: recipient.label,
2815
- value: optionValue(recipient)
2819
+ value: optionValue(recipient),
2820
+ dataTestid: recipient.dataTestid
2816
2821
  };
2817
2822
  }),
2818
2823
  selectedValues: [recipientOf({
@@ -2868,6 +2873,7 @@ var descriptorFor = function descriptorFor(_ref19) {
2868
2873
  return {
2869
2874
  label: option.label,
2870
2875
  value: value,
2876
+ dataTestid: option.dataTestid,
2871
2877
  disabled: (!!((_option$disabled2 = option.disabled) !== null && _option$disabled2 !== void 0 ? _option$disabled2 : option.isDisabled) || blockedNoPhone) && !isSelected,
2872
2878
  disabledReason: blockedNoPhone ? sc.disabledReason : option.disabledReason,
2873
2879
  disabledPopover: option.disabledPopover,
@@ -2901,7 +2907,8 @@ var descriptorFor = function descriptorFor(_ref19) {
2901
2907
  options: options.map(function (option) {
2902
2908
  return {
2903
2909
  label: option.label,
2904
- value: optionValue(option)
2910
+ value: optionValue(option),
2911
+ dataTestid: option.dataTestid
2905
2912
  };
2906
2913
  }),
2907
2914
  selectedValues: [item.phoneField]
@@ -4839,11 +4846,12 @@ var OptionsPane = function OptionsPane(_ref) {
4839
4846
  };
4840
4847
  var renderOptionRow = function renderOptionRow(option) {
4841
4848
  var item = /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.RadioGroup.Item, _objectSpread$3(_objectSpread$3({
4849
+ dataTestId: option.dataTestid,
4842
4850
  disabled: option.disabled,
4843
4851
  label: optionLabel(option),
4844
4852
  labelProps: previewHandlers(option.value, option.disabled),
4845
4853
  value: option.value
4846
- }, option.icon || option.disabledReason ? {
4854
+ }, !option.dataTestid && (option.icon || option.disabledReason) ? {
4847
4855
  "data-testid": option.value
4848
4856
  } : {}), previewHandlers(option.value, option.disabled)), option.value);
4849
4857
  var content = renderOptionContent === null || renderOptionContent === void 0 ? void 0 : renderOptionContent({
@@ -4875,17 +4883,16 @@ var OptionsPane = function OptionsPane(_ref) {
4875
4883
  items = _ref4[1];
4876
4884
  return /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
4877
4885
  children: [renderGroupHeader(category), items.map(function (option) {
4878
- return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Checkbox, _objectSpread$3(_objectSpread$3({
4886
+ return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Checkbox, _objectSpread$3({
4879
4887
  checked: isSelected(option.value),
4888
+ dataTestId: option.dataTestid,
4880
4889
  disabled: option.disabled,
4881
4890
  label: optionLabel(option),
4882
4891
  labelProps: previewHandlers(option.value, option.disabled),
4883
4892
  onCheckedChange: function onCheckedChange() {
4884
4893
  return handleSelect(option.value);
4885
4894
  }
4886
- }, option.icon || option.disabledReason ? {
4887
- dataTestid: option.value
4888
- } : {}), previewHandlers(option.value, option.disabled)), option.value);
4895
+ }, previewHandlers(option.value, option.disabled)), option.value);
4889
4896
  })]
4890
4897
  }, category || "_uncategorized");
4891
4898
  })