@verbb/formie-browser 1.0.17-next.8.g031176b155cf → 4.0.7

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/chunks/{api-BR2Gqy37.js → api-DlW6054X.js} +3 -1
  3. package/dist/chunks/{bpoint-GvYfyPjD.js → bpoint-BKRpTj1e.js} +1 -1
  4. package/dist/chunks/{eway-BZuTBAUW.js → eway-9ZTEmiod.js} +1 -1
  5. package/dist/chunks/{file-upload-vEUr_EuP.js → file-upload-Bhxg5QZe.js} +2 -0
  6. package/dist/chunks/{go-cardless-DWZeB0Bq.js → go-cardless-BN096eDZ.js} +1 -1
  7. package/dist/chunks/{mollie-8OMXIYa8.js → mollie-DCBzpCmt.js} +1 -1
  8. package/dist/chunks/{moneris-qYHJ9EFy.js → moneris-CeryRRRJ.js} +1 -1
  9. package/dist/chunks/{opayo-DlWPEnla.js → opayo-D5cbEqJy.js} +1 -1
  10. package/dist/chunks/{paddle-CArfWih0.js → paddle-CDiiBCJ8.js} +1 -1
  11. package/dist/chunks/{paypal-BcaMCMGY.js → paypal-CA-kRKlJ.js} +1 -1
  12. package/dist/chunks/{payway-vxC7_bfR.js → payway-K9eUUMvk.js} +1 -1
  13. package/dist/chunks/{square-Dyz0p_GU.js → square-Bn6y1M0R.js} +1 -1
  14. package/dist/chunks/{stripe-Bfd_jp_k.js → stripe-CmzSSdMg.js} +1 -1
  15. package/dist/chunks/{upload-manager-CkmsPJRl.js → upload-manager-cGKWwGhu.js} +196 -192
  16. package/dist/css/formie-base.css +26 -26
  17. package/dist/css/theme-base/_primitives.css +9 -8
  18. package/dist/index.js +430 -422
  19. package/dist/js/core/create-formie-client.d.ts.map +1 -1
  20. package/dist/js/core/submit-result-state.d.ts.map +1 -1
  21. package/dist/js/core/validation-focus.d.ts +1 -0
  22. package/dist/js/core/validation-focus.d.ts.map +1 -1
  23. package/dist/js/modules/fields/file-upload.d.ts.map +1 -1
  24. package/dist/js/modules/fields/upload-manager.d.ts.map +1 -1
  25. package/package.json +4 -6
  26. package/src/css/formie-base.css +26 -26
  27. package/src/css/theme-base/_primitives.css +9 -8
  28. package/src/js/core/create-formie-client.ts +5 -0
  29. package/src/js/core/submit-result-state.ts +5 -0
  30. package/src/js/core/validation-focus.ts +40 -15
  31. package/src/js/modules/fields/file-upload.ts +7 -0
  32. package/src/js/modules/fields/upload-manager.ts +27 -12
package/CHANGELOG.md CHANGED
@@ -2,10 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.0.7 - 2026-11-05
6
+
5
7
  ### Changed
6
8
  - Changed the `@verbb/formie-*` package versions to match the Formie plugin, so Formie 4.0.7 pairs with version 4.0.7 of each package. The jump from 1.x has no breaking changes, but version ranges such as `^1.0.16` need updating once. ([#3081](https://github.com/verbb/formie/issues/3081))
7
9
 
8
10
  ### Fixed
11
+ - Fixed base reset selectors overriding the default theme when styles are compiled without CSS layers.
12
+ - Fixed File Upload fields retaining completed attachments after AJAX form resets, and duplicate advanced upload rows after Back navigation. ([#3097](https://github.com/verbb/formie/issues/3097))
13
+ - Fixed TypeScript errors in projects using NodeNext module resolution.
14
+ - Fixed a server-rendered error on a field inside a Group or Repeater marking every other field around it as invalid.
15
+ - Fixed focus not moving to Checkboxes, Agree, searchable Dropdown and Rich Text fields after a validation error.
9
16
  - Fixed searchable dropdown selections being cleared during AJAX page navigation. ([#3088](https://github.com/verbb/formie/issues/3088))
10
17
  - Fixed required field and core modules blocking submission when there’s nothing rendered for them to enhance yet, such as conditions inside a Repeater with no rows.
11
18
  - Fixed browser requests failing when Craft uses a custom action trigger, including token refresh after AJAX submissions. ([#3068](https://github.com/verbb/formie/issues/3068))
@@ -384,7 +384,9 @@ function K(t, n = {}) {
384
384
  let r = t.formieValidation, i = I(t)[0]?.getAttribute("data-formie-page-id");
385
385
  B(t), t.reset(), t.querySelectorAll("[data-formie-summary-token]").forEach((e) => {
386
386
  e instanceof HTMLInputElement ? e.remove() : e.removeAttribute("data-formie-summary-token");
387
- }), t.querySelectorAll("[data-formie-summary-blocks]").forEach((e) => e.replaceChildren()), n.preserveHiddenState || z(t, !1), F(t, "submissionId"), N(t, "expectedVersion", "0"), F(t, "submissionUid"), F(t, "progressId"), F(t, "pageId"), G(t), ue(t), r?.resetLiveState(), i ? (W(t, i), y(t, e("reset"), void 0)) : (w(t), y(t, e("reset"), void 0));
387
+ }), t.querySelectorAll("[data-formie-summary-blocks]").forEach((e) => e.replaceChildren()), t.querySelectorAll("[data-formie-file-upload-entry]").forEach((e) => e.remove()), t.querySelectorAll("[data-formie-file-summary], [data-formie-upload-manager-list]").forEach((e) => e.replaceChildren()), t.querySelectorAll("[data-formie-upload-manager-status]").forEach((e) => {
388
+ e.value = "";
389
+ }), n.preserveHiddenState || z(t, !1), F(t, "submissionId"), N(t, "expectedVersion", "0"), F(t, "submissionUid"), F(t, "progressId"), F(t, "pageId"), G(t), ue(t), r?.resetLiveState(), i ? (W(t, i), y(t, e("reset"), void 0)) : (w(t), y(t, e("reset"), void 0));
388
390
  }
389
391
  function ke(e) {
390
392
  return e.code === ge || e.meta?.resetState === !0;
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  //#region src/js/modules/payments/bpoint.ts
3
3
  var t = e({
4
4
  moduleId: "formie:bpoint",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  import { r as t } from "./async-2GdXNFCE.js";
3
3
  import { r as n } from "./scripts-DrccjrFv.js";
4
4
  //#region src/js/modules/payments/eway.ts
@@ -248,6 +248,8 @@ function Z(e, t, n) {
248
248
  try {
249
249
  let a = await q(e, t, n);
250
250
  if (i !== r.hydrationToken) return;
251
+ let o = I(e, t);
252
+ if (o.length !== n.length || o.some((e, t) => e.assetId !== n[t].assetId)) return;
251
253
  r.uploadedAssets = a, U(r), s(e, b, "uploaded-assets-sync", {
252
254
  fileUpload: e,
253
255
  assets: a
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./event-names-BCI2FLD8.js";
2
- import { t } from "./api-BR2Gqy37.js";
2
+ import { t } from "./api-DlW6054X.js";
3
3
  //#region src/js/modules/payments/go-cardless.ts
4
4
  var n = e("go-cardless", "redirect"), r = t({
5
5
  moduleId: "formie:go-cardless",
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./event-names-BCI2FLD8.js";
2
- import { t } from "./api-BR2Gqy37.js";
2
+ import { t } from "./api-DlW6054X.js";
3
3
  //#region src/js/modules/payments/mollie.ts
4
4
  var n = e("mollie", "redirect"), r = t({
5
5
  moduleId: "formie:mollie",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  //#region src/js/modules/payments/moneris.ts
3
3
  var t = {
4
4
  940: "Invalid profile ID (tokenization request).",
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./request-profile-DhwkeCpS.js";
2
2
  import { t } from "./dist-CJReDlDK.js";
3
3
  import { s as n } from "./event-names-BCI2FLD8.js";
4
- import { n as r, t as i } from "./api-BR2Gqy37.js";
4
+ import { n as r, t as i } from "./api-DlW6054X.js";
5
5
  import { t as a } from "./debug-rhzqP1j2.js";
6
6
  import { a as o } from "./theme-classes-DAQuEqdP.js";
7
7
  import { t as s } from "./csrf-DxHg_ZYt.js";
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./event-names-BCI2FLD8.js";
2
- import { t } from "./api-BR2Gqy37.js";
2
+ import { t } from "./api-DlW6054X.js";
3
3
  import { r as n } from "./scripts-DrccjrFv.js";
4
4
  //#region src/js/modules/payments/paddle.ts
5
5
  var r = "FORMIE_PADDLE_SCRIPT", i = e("paddle", "initialize"), a = t({
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  import { r as t } from "./scripts-DrccjrFv.js";
3
3
  import { t as n } from "./styles-BfoIZwJp.js";
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  import { r as t } from "./scripts-DrccjrFv.js";
3
3
  import { t as n } from "./styles-BfoIZwJp.js";
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as e } from "./api-BR2Gqy37.js";
1
+ import { t as e } from "./api-DlW6054X.js";
2
2
  import { r as t } from "./scripts-DrccjrFv.js";
3
3
  //#region src/js/modules/payments/square.ts
4
4
  var n = "FORMIE_SQUARE_SCRIPT", r = e({
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./event-names-BCI2FLD8.js";
2
- import { t } from "./api-BR2Gqy37.js";
2
+ import { t } from "./api-DlW6054X.js";
3
3
  import { i as n, t as r } from "./theme-classes-DAQuEqdP.js";
4
4
  import { r as i } from "./scripts-DrccjrFv.js";
5
5
  import { t as a } from "./styles-BfoIZwJp.js";