@bigbinary/neeto-rules-frontend 2.9.4 → 2.9.5

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-16T12:35:53.365Z
1
+ Built at 2026-11-19T09:52:27.990Z
@@ -1515,6 +1515,7 @@ var ScopeRow = function ScopeRow(_ref2) {
1515
1515
  children: meeting
1516
1516
  }), singlePhoneFieldLabel && /*#__PURE__*/jsxRuntime.jsxs("span", {
1517
1517
  className: "mb-fixed",
1518
+ "data-testid": "scope-phone-field-fixed-".concat(index),
1518
1519
  children: [usingLabel, " ", singlePhoneFieldLabel]
1519
1520
  }), hasPhoneFieldChoice && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1520
1521
  children: [/*#__PURE__*/jsxRuntime.jsx("span", {
@@ -2647,6 +2648,7 @@ var descriptorFor = function descriptorFor(_ref19) {
2647
2648
  value: triggerValue(option),
2648
2649
  dataTestid: option.dataTestid,
2649
2650
  category: option.category,
2651
+ infoTooltip: option.infoTooltip,
2650
2652
  disabled: isLocked,
2651
2653
  disabledTooltip: isLocked && (schema.triggers.groupDisabledTooltip || i18next.t("neetoRules.builder.panes.triggerGroupDisabled"))
2652
2654
  };
@@ -4807,20 +4809,19 @@ var OptionsPane = function OptionsPane(_ref) {
4807
4809
  var popover = option.disabledPopover || (isNodeReason ? {
4808
4810
  description: reason
4809
4811
  } : null);
4810
- if (!Icon && !isTextReason && !popover) {
4811
- return option.disabled && option.disabledTooltip ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Tooltip, {
4812
- content: option.disabledTooltip,
4813
- position: "top",
4814
- children: /*#__PURE__*/jsxRuntime.jsx("span", {
4815
- children: option.label
4816
- })
4817
- }) : option.label;
4818
- }
4812
+ var label = option.disabled && option.disabledTooltip && !isTextReason && !popover ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Tooltip, {
4813
+ content: option.disabledTooltip,
4814
+ position: "top",
4815
+ children: /*#__PURE__*/jsxRuntime.jsx("span", {
4816
+ children: option.label
4817
+ })
4818
+ }) : option.label;
4819
+ if (!Icon && !isTextReason && !popover && !option.infoTooltip) return label;
4819
4820
  return /*#__PURE__*/jsxRuntime.jsxs("span", {
4820
4821
  className: "mb-pane-option",
4821
4822
  children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
4822
4823
  size: 20
4823
- }), option.label, popover && /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Popover, {
4824
+ }), label, popover && /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Popover, {
4824
4825
  position: "top",
4825
4826
  trigger: /*#__PURE__*/jsxRuntime.jsx("span", {
4826
4827
  className: "mb-pane-info",
@@ -4842,6 +4843,23 @@ var OptionsPane = function OptionsPane(_ref) {
4842
4843
  size: "sm",
4843
4844
  variant: "link"
4844
4845
  }))]
4846
+ }), !popover && option.infoTooltip && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Tooltip, {
4847
+ content: option.infoTooltip,
4848
+ position: "top",
4849
+ sideOffset: 8,
4850
+ children: /*#__PURE__*/jsxRuntime.jsx("span", {
4851
+ "aria-label": option.infoTooltip,
4852
+ className: "mb-pane-info",
4853
+ "data-testid": "".concat(option.value, "-info"),
4854
+ role: "img",
4855
+ tabIndex: 0,
4856
+ onClick: function onClick(event) {
4857
+ return event.preventDefault();
4858
+ },
4859
+ children: /*#__PURE__*/jsxRuntime.jsx(Info, {
4860
+ size: 14
4861
+ })
4862
+ })
4845
4863
  }), !popover && reason && isTextReason && (option.disabledTooltip ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Tooltip, {
4846
4864
  content: option.disabledTooltip,
4847
4865
  position: "top",
@@ -4900,12 +4918,13 @@ var OptionsPane = function OptionsPane(_ref) {
4900
4918
  items = _ref4[1];
4901
4919
  return /*#__PURE__*/jsxRuntime.jsxs(react.Fragment, {
4902
4920
  children: [renderGroupHeader(category), items.map(function (option) {
4921
+ var _option$dataTestid;
4903
4922
  return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Checkbox, _objectSpread$3({
4904
4923
  checked: isSelected(option.value),
4905
- dataTestId: option.dataTestid,
4906
4924
  disabled: option.disabled,
4907
4925
  label: optionLabel(option),
4908
4926
  labelProps: previewHandlers(option.value, option.disabled),
4927
+ dataTestId: (_option$dataTestid = option.dataTestid) !== null && _option$dataTestid !== void 0 ? _option$dataTestid : utils.hyphenize(option.label) || undefined,
4909
4928
  onCheckedChange: function onCheckedChange() {
4910
4929
  return handleSelect(option.value);
4911
4930
  }