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.cjs CHANGED
@@ -21425,6 +21425,22 @@ A: ${label}`);
21425
21425
  const selectedCount = selectedKeys.length;
21426
21426
  const meetsMin = (selectedCount || (recommended ? 1 : 0)) >= minSel;
21427
21427
  const isContinueDisabled = disabled || !isLatestMessage || isProceeded || isDiscovery;
21428
+ if (optionsEntries.length === 0) {
21429
+ return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
21430
+ "div",
21431
+ {
21432
+ "data-testid": "mcq-card-error",
21433
+ className: cn(
21434
+ "p-4 rounded-lg border border-red-500/30 bg-red-500/5 text-sm text-red-300 w-full",
21435
+ className
21436
+ ),
21437
+ children: [
21438
+ resolvedQuestion || "This question",
21439
+ " couldn't be displayed \u2014 its answer options are missing or in an unexpected format. Ask the agent to regenerate this question."
21440
+ ]
21441
+ }
21442
+ );
21443
+ }
21428
21444
  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`;
21429
21445
  return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
21430
21446
  "div",