@wix/form-public 0.548.0 → 0.549.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.js CHANGED
@@ -50881,6 +50881,11 @@ var BiFormSubmissionStatus = /* @__PURE__ */ (function(BiFormSubmissionStatus2)
50881
50881
  BiFormSubmissionStatus2["SUCCESS"] = "SUCCESS";
50882
50882
  return BiFormSubmissionStatus2;
50883
50883
  })({});
50884
+
50885
+ // ../form-viewer/dist/esm/services/captcha-challenge.js
50886
+ var CAPTCHA_ABANDONED_MESSAGE = "captcha error";
50887
+
50888
+ // ../form-viewer/dist/esm/hooks/use-submit/utils.js
50884
50889
  var redirectToExternalUrl = (redirectOptions) => {
50885
50890
  const urlWithoutProtocol = redirectOptions?.redirectUrl?.replace(/^https?:\/\//, "");
50886
50891
  const updatedExternalUrl = `https://${urlWithoutProtocol}`;
@@ -50894,7 +50899,6 @@ var getErrorCode = (error) => {
50894
50899
  }
50895
50900
  return error?.response?.data?.details?.applicationError?.code || error?.code && String(error?.code) || error?.response?.data?.details?.validationError?.fieldViolations?.[0]?.data?.errors?.[0]?.errorType || "UNKNOWN";
50896
50901
  };
50897
- var CAPTCHA_ABANDONED_MESSAGE = "captcha error";
50898
50902
  var isBackendRejection = (error) => {
50899
50903
  const status = error?.response?.status;
50900
50904
  return typeof status === "number" && status >= 400 && status < 500;