@verbb/formie-browser 1.0.16 → 1.0.17-next.6.ge714580bc362

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
 
5
5
  ### Fixed
6
+ - Fixed invisible hCaptcha challenges timing out before they could be completed, requiring a second submit click. ([#3067](https://github.com/verbb/formie/issues/3067))
7
+ - Fixed token refreshes losing the form's site on multisite installations with path-based URLs. ([#3064](https://github.com/verbb/formie/issues/3064))
8
+ - Fixed theme attributes not being applied to AJAX success and error messages. ([#3061](https://github.com/verbb/formie/issues/3061))
9
+ - Fixed nested alert roles in form error messages that could cause duplicate screen reader announcements. ([#3062](https://github.com/verbb/formie/issues/3062))
6
10
  - Fixed Opayo re-tokenizing cards and requesting unnecessary merchant sessions after completing a 3D Secure challenge. ([#3048](https://github.com/verbb/formie/issues/3048))
7
11
 
8
12
  ## 1.0.16 - 2026-10-28
@@ -1,26 +1,26 @@
1
- import { a as e, r as t, t as n } from "./api-BPtH5RBA.js";
2
- import { n as r, t as i } from "./scripts-DrccjrFv.js";
1
+ import { a as e, i as t, r as n, t as r } from "./api-BPtH5RBA.js";
2
+ import { n as i, t as a } from "./scripts-DrccjrFv.js";
3
3
  //#region src/js/modules/captchas/hcaptcha.ts
4
- async function a(n) {
5
- let a = typeof n.language == "string" && n.language.trim() !== "" ? n.language.trim() : "en", { async: o, defer: s } = t(n.loadingMethod), c = "FORMIE_HCAPTCHA_ONLOAD", l = window, u = l.hcaptcha;
4
+ async function o(t) {
5
+ let r = typeof t.language == "string" && t.language.trim() !== "" ? t.language.trim() : "en", { async: o, defer: s } = n(t.loadingMethod), c = "FORMIE_HCAPTCHA_ONLOAD", l = window, u = l.hcaptcha;
6
6
  if (u) return u;
7
7
  let d = new Promise((e) => {
8
8
  l[c] = () => {
9
9
  delete l[c], e();
10
10
  };
11
11
  });
12
- return await r({
12
+ return await i({
13
13
  id: "FORMIE_HCAPTCHA_SCRIPT",
14
- src: `https://js.hcaptcha.com/1/api.js?recaptchacompat=off&render=explicit&onload=FORMIE_HCAPTCHA_ONLOAD&hl=${encodeURIComponent(a)}`,
14
+ src: `https://js.hcaptcha.com/1/api.js?recaptchacompat=off&render=explicit&onload=FORMIE_HCAPTCHA_ONLOAD&hl=${encodeURIComponent(r)}`,
15
15
  async: o,
16
16
  defer: s
17
- }), await d, i("hcaptcha", e);
17
+ }), await d, a("hcaptcha", e);
18
18
  }
19
- var o = n({
19
+ var s = r({
20
20
  moduleId: "formie:hcaptcha",
21
21
  defaultPlaceholderSelector: "[data-hcaptcha-placeholder]",
22
22
  defaultTokenFieldNames: ["h-captcha-response"],
23
- load: ({ options: e }) => a(e.provider),
23
+ load: ({ options: e }) => o(e.provider),
24
24
  mount: ({ api: e, container: t, provider: n, services: r }) => e.render(t, {
25
25
  sitekey: n.siteKey || "",
26
26
  theme: n.theme || "light",
@@ -38,11 +38,11 @@ var o = n({
38
38
  r.tokens.clear();
39
39
  }
40
40
  }),
41
- challenge: ({ api: e, widget: t, placeholder: n, services: r, stageCtx: i }) => {
42
- if (!r.tokens.has()) return e.execute(t), r.tokens.wait().then((e) => {
41
+ challenge: ({ api: e, widget: n, placeholder: r, services: i, stageCtx: a }) => {
42
+ if (!i.tokens.has()) return e.execute(n), i.tokens.wait(t).then((e) => {
43
43
  if (!e) {
44
- let e = r.errors.getDefaultMessage();
45
- r.errors.show(e, n), i.abort(e);
44
+ let e = i.errors.getDefaultMessage();
45
+ i.errors.show(e, r), a.abort(e);
46
46
  }
47
47
  });
48
48
  },
@@ -51,4 +51,4 @@ var o = n({
51
51
  }
52
52
  });
53
53
  //#endregion
54
- export { o as hcaptchaModule };
54
+ export { s as hcaptchaModule };