@homebound/beam 3.70.0 → 3.71.0

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
@@ -27061,7 +27061,14 @@ function WorkflowLayout(props) {
27061
27061
  const isFirstStep = currentIndex <= 0;
27062
27062
  const isLastStep = currentIndex === tabSteps.length - 1;
27063
27063
  const activeStep = tabSteps[currentIndex];
27064
- const buttons = /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(tabSteps[currentIndex - 1].value), onCancel: onCancelClick, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.completed, onContinue: () => setCurrentStep(tabSteps[currentIndex + 1].value) });
27064
+ const buttons = /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(tabSteps[currentIndex - 1].value), onCancel: onCancelClick, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.completed, onContinue: async () => {
27065
+ const onContinue = activeStep?.onContinue;
27066
+ if (onContinue) {
27067
+ const allowed = await onContinue();
27068
+ if (allowed === false) return;
27069
+ }
27070
+ setCurrentStep(tabSteps[currentIndex + 1].value);
27071
+ } });
27065
27072
  const showFooter = isMobile;
27066
27073
  (0, import_react155.useLayoutEffect)(() => {
27067
27074
  const root = document.documentElement;