@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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -50891,6 +50891,11 @@ var BiFormSubmissionStatus = /* @__PURE__ */ (function(BiFormSubmissionStatus2)
|
|
|
50891
50891
|
BiFormSubmissionStatus2["SUCCESS"] = "SUCCESS";
|
|
50892
50892
|
return BiFormSubmissionStatus2;
|
|
50893
50893
|
})({});
|
|
50894
|
+
|
|
50895
|
+
// ../form-viewer/dist/esm/services/captcha-challenge.js
|
|
50896
|
+
var CAPTCHA_ABANDONED_MESSAGE = "captcha error";
|
|
50897
|
+
|
|
50898
|
+
// ../form-viewer/dist/esm/hooks/use-submit/utils.js
|
|
50894
50899
|
var redirectToExternalUrl = (redirectOptions) => {
|
|
50895
50900
|
const urlWithoutProtocol = redirectOptions?.redirectUrl?.replace(/^https?:\/\//, "");
|
|
50896
50901
|
const updatedExternalUrl = `https://${urlWithoutProtocol}`;
|
|
@@ -50904,7 +50909,6 @@ var getErrorCode = (error) => {
|
|
|
50904
50909
|
}
|
|
50905
50910
|
return error?.response?.data?.details?.applicationError?.code || error?.code && String(error?.code) || error?.response?.data?.details?.validationError?.fieldViolations?.[0]?.data?.errors?.[0]?.errorType || "UNKNOWN";
|
|
50906
50911
|
};
|
|
50907
|
-
var CAPTCHA_ABANDONED_MESSAGE = "captcha error";
|
|
50908
50912
|
var isBackendRejection = (error) => {
|
|
50909
50913
|
const status = error?.response?.status;
|
|
50910
50914
|
return typeof status === "number" && status >= 400 && status < 500;
|