pxengine 0.1.151 → 0.1.152

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.mjs CHANGED
@@ -21089,6 +21089,22 @@ A: ${label}`);
21089
21089
  const selectedCount = selectedKeys.length;
21090
21090
  const meetsMin = (selectedCount || (recommended ? 1 : 0)) >= minSel;
21091
21091
  const isContinueDisabled = disabled || !isLatestMessage || isProceeded || isDiscovery;
21092
+ if (optionsEntries.length === 0) {
21093
+ return /* @__PURE__ */ jsxs118(
21094
+ "div",
21095
+ {
21096
+ "data-testid": "mcq-card-error",
21097
+ className: cn(
21098
+ "p-4 rounded-lg border border-red-500/30 bg-red-500/5 text-sm text-red-300 w-full",
21099
+ className
21100
+ ),
21101
+ children: [
21102
+ resolvedQuestion || "This question",
21103
+ " couldn't be displayed \u2014 its answer options are missing or in an unexpected format. Ask the agent to regenerate this question."
21104
+ ]
21105
+ }
21106
+ );
21107
+ }
21092
21108
  const guidance = !isMulti ? "Select one option" : isSelectAll ? "Select all that apply" : minSel === maxSel ? `Select ${maxSel} options` : minSel <= 1 ? `Choose up to ${maxSel} options` : `Select between ${minSel} and ${maxSel} options`;
21093
21109
  return /* @__PURE__ */ jsxs118(
21094
21110
  "div",