@verbb/formie-browser 1.0.16 → 1.0.17-next.10.g9cef3233dddb
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 +21 -0
- package/dist/chunks/{address-state-CHKit8AW.js → address-state-OHeW8r8p.js} +1 -1
- package/dist/chunks/{api-BR2Gqy37.js → api-DlW6054X.js} +3 -1
- package/dist/chunks/{bpoint-GvYfyPjD.js → bpoint-BKRpTj1e.js} +1 -1
- package/dist/chunks/{combobox-CJh2DoSO.js → combobox-CTfq6v4y.js} +12 -5
- package/dist/chunks/date-picker-dp41TnRq.js +5351 -0
- package/dist/chunks/{eway-BZuTBAUW.js → eway-9ZTEmiod.js} +1 -1
- package/dist/chunks/{file-upload-vEUr_EuP.js → file-upload-Bhxg5QZe.js} +2 -0
- package/dist/chunks/{go-cardless-DWZeB0Bq.js → go-cardless-BN096eDZ.js} +1 -1
- package/dist/chunks/{hcaptcha-COilLmRT.js → hcaptcha-lseqzFTP.js} +14 -14
- package/dist/chunks/{mollie-8OMXIYa8.js → mollie-DCBzpCmt.js} +1 -1
- package/dist/chunks/{moneris-qYHJ9EFy.js → moneris-CeryRRRJ.js} +1 -1
- package/dist/chunks/{opayo-DlWPEnla.js → opayo-D5cbEqJy.js} +1 -1
- package/dist/chunks/{paddle-CArfWih0.js → paddle-CDiiBCJ8.js} +1 -1
- package/dist/chunks/{paypal-BcaMCMGY.js → paypal-CA-kRKlJ.js} +1 -1
- package/dist/chunks/{payway-vxC7_bfR.js → payway-K9eUUMvk.js} +1 -1
- package/dist/chunks/phone-country-BMyw-Qcz.js +2647 -0
- package/dist/chunks/{square-Dyz0p_GU.js → square-Bn6y1M0R.js} +1 -1
- package/dist/chunks/{stripe-Bfd_jp_k.js → stripe-CmzSSdMg.js} +1 -1
- package/dist/chunks/{upload-manager-Ccg3d_4I.js → upload-manager-cGKWwGhu.js} +196 -192
- package/dist/css/formie-base.css +26 -26
- package/dist/css/theme-base/_primitives.css +9 -8
- package/dist/index.js +481 -452
- package/dist/js/core/client-rendered-modules.d.ts +6 -6
- package/dist/js/core/client-rendered-modules.d.ts.map +1 -1
- package/dist/js/core/create-formie-client.d.ts.map +1 -1
- package/dist/js/core/submit-result-state.d.ts.map +1 -1
- package/dist/js/core/submit-result-ui.d.ts.map +1 -1
- package/dist/js/core/validation-focus.d.ts +1 -0
- package/dist/js/core/validation-focus.d.ts.map +1 -1
- package/dist/js/modules/captchas/hcaptcha.d.ts.map +1 -1
- package/dist/js/modules/fields/combobox.d.ts.map +1 -1
- package/dist/js/modules/fields/file-upload.d.ts.map +1 -1
- package/dist/js/modules/fields/phone-country.d.ts.map +1 -1
- package/dist/js/modules/fields/upload-manager.d.ts.map +1 -1
- package/dist/js/modules/loader.d.ts.map +1 -1
- package/dist/js/theme/message-attributes.d.ts +4 -0
- package/dist/js/theme/message-attributes.d.ts.map +1 -0
- package/dist/js/transport/forms-api.d.ts +1 -1
- package/dist/js/transport/forms-api.d.ts.map +1 -1
- package/dist/js/validation/validator.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/css/formie-base.css +26 -26
- package/src/css/theme-base/_primitives.css +9 -8
- package/src/js/core/client-rendered-modules.ts +1 -1
- package/src/js/core/create-formie-client.ts +54 -33
- package/src/js/core/submit-flow.ts +2 -2
- package/src/js/core/submit-result-state.ts +5 -0
- package/src/js/core/submit-result-ui.ts +10 -2
- package/src/js/core/validation-focus.ts +40 -15
- package/src/js/modules/captchas/hcaptcha.ts +3 -2
- package/src/js/modules/fields/combobox.ts +27 -2
- package/src/js/modules/fields/date-picker.ts +3 -3
- package/src/js/modules/fields/file-upload.ts +7 -0
- package/src/js/modules/fields/phone-country.ts +25 -17
- package/src/js/modules/fields/upload-manager.ts +30 -14
- package/src/js/modules/loader.ts +7 -0
- package/src/js/theme/message-attributes.ts +54 -0
- package/src/js/transport/forms-api.ts +6 -1
- package/src/js/utils/country-from-ip.ts +1 -1
- package/src/js/validation/validator.ts +3 -2
- package/src/vendor.d.ts +2 -3
- package/dist/chunks/date-picker-BVJxJVYT.js +0 -5321
- package/dist/chunks/phone-country-Bx9EG50h.js +0 -2645
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
### Changed
|
|
6
|
+
- 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
|
+
|
|
5
8
|
### Fixed
|
|
9
|
+
- Fixed base reset selectors overriding the default theme when styles are compiled without CSS layers.
|
|
10
|
+
- Fixed File Upload fields retaining completed attachments after AJAX form resets, and duplicate advanced upload rows after Back navigation.
|
|
11
|
+
- Fixed TypeScript errors in projects using NodeNext module resolution.
|
|
12
|
+
- Fixed a server-rendered error on a field inside a Group or Repeater marking every other field around it as invalid.
|
|
13
|
+
- Fixed focus not moving to Checkboxes, Agree, searchable Dropdown and Rich Text fields after a validation error.
|
|
14
|
+
- Fixed searchable dropdown selections being cleared during AJAX page navigation. ([#3088](https://github.com/verbb/formie/issues/3088))
|
|
15
|
+
- 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.
|
|
16
|
+
- 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))
|
|
17
|
+
- Fixed upload manager file order and move button states becoming inconsistent after reordering files. ([#3070](https://github.com/verbb/formie/issues/3070))
|
|
18
|
+
- Fixed searchable dropdown placeholders not appearing until a form field is focused. ([#3072](https://github.com/verbb/formie/issues/3072))
|
|
19
|
+
- Fixed Date pickers displaying calendar labels in English on non-English sites. ([#3076](https://github.com/verbb/formie/issues/3076))
|
|
20
|
+
- Fixed required advanced Date pickers being skipped by client-side validation. ([#3077](https://github.com/verbb/formie/issues/3077))
|
|
21
|
+
- Fixed Phone country dropdowns selecting the first allowed country when the default is None, and not restoring None when forms reset. ([#3071](https://github.com/verbb/formie/issues/3071))
|
|
22
|
+
- Fixed invisible hCaptcha challenges timing out before they could be completed, requiring a second submit click. ([#3067](https://github.com/verbb/formie/issues/3067))
|
|
23
|
+
- Fixed token refreshes losing the form's site on multisite installations with path-based URLs. ([#3064](https://github.com/verbb/formie/issues/3064))
|
|
24
|
+
- Fixed theme attributes not being applied to AJAX success and error messages. ([#3061](https://github.com/verbb/formie/issues/3061))
|
|
25
|
+
- Fixed nested alert roles in form error messages that could cause duplicate screen reader announcements. ([#3062](https://github.com/verbb/formie/issues/3062))
|
|
26
|
+
- Fixed AJAX submissions showing the form error message when Error Message Position is set to None.
|
|
6
27
|
- 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
28
|
|
|
8
29
|
## 1.0.16 - 2026-10-28
|
|
@@ -4,7 +4,7 @@ import { t as n } from "./debug-rhzqP1j2.js";
|
|
|
4
4
|
import { a as r, n as i } from "./theme-classes-DAQuEqdP.js";
|
|
5
5
|
import { n as a } from "./constants-DVcJAvc5.js";
|
|
6
6
|
import { i as o, n as s } from "./shared-CJ1LIEh3.js";
|
|
7
|
-
import { initFormieCombobox as c } from "./combobox-
|
|
7
|
+
import { initFormieCombobox as c } from "./combobox-CTfq6v4y.js";
|
|
8
8
|
//#region src/js/modules/fields/address-state.ts
|
|
9
9
|
var l = "[data-formie-address-state-dynamic]", u = "[data-formie-address-state-input]", d = "[data-formie-address-state-autofill-anchor]", f = "formie-address-autofill-start", p = a.country, m = "address-state", h = "formie/address/subdivisions", g = ["formie-select", "formie-dropdown-input"], _ = [
|
|
10
10
|
0,
|
|
@@ -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()),
|
|
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;
|
|
@@ -1854,10 +1854,17 @@ function Gt(e, t) {
|
|
|
1854
1854
|
return t?.trim() || e.querySelector("option[value=\"\"]")?.textContent?.trim() || null;
|
|
1855
1855
|
}
|
|
1856
1856
|
function Kt(e) {
|
|
1857
|
-
e.options[""] && e.removeOption("", !0);
|
|
1857
|
+
e.options[""] && (e.removeOption("", !0), e.inputState());
|
|
1858
|
+
}
|
|
1859
|
+
function qt(e, t) {
|
|
1860
|
+
let n = Array.from(e.selectedOptions, (e) => e.cloneNode(!0));
|
|
1861
|
+
t.destroy(), e.selectedIndex = -1, n.forEach((t) => {
|
|
1862
|
+
let n = Array.from(e.options).find((e) => e.value === t.value);
|
|
1863
|
+
n || (n = t, e.add(n)), n.selected = !0;
|
|
1864
|
+
});
|
|
1858
1865
|
}
|
|
1859
1866
|
function $(e, t = {}) {
|
|
1860
|
-
e._formieTomSelect
|
|
1867
|
+
e._formieTomSelect && qt(e, e._formieTomSelect);
|
|
1861
1868
|
let i = Array.from(e.selectedOptions, (e) => e.value).filter(Boolean), a = e.form, s = t.multiple === !0, c = Ht(e), l = Gt(e, t.placeholder), u = {
|
|
1862
1869
|
create: !1,
|
|
1863
1870
|
maxOptions: t.maxOptions === void 0 ? 100 : t.maxOptions,
|
|
@@ -1896,10 +1903,10 @@ function $(e, t = {}) {
|
|
|
1896
1903
|
combobox: d,
|
|
1897
1904
|
options: u
|
|
1898
1905
|
}), () => {
|
|
1899
|
-
a?.removeEventListener("reset", f), d
|
|
1906
|
+
a?.removeEventListener("reset", f), qt(e, d), e.style.removeProperty("display"), Ut(e, c), delete e._formieTomSelect, Q.log("Destroyed.", { inputName: e.name });
|
|
1900
1907
|
};
|
|
1901
1908
|
}
|
|
1902
|
-
var
|
|
1909
|
+
var Jt = {
|
|
1903
1910
|
moduleId: `formie:${Z}`,
|
|
1904
1911
|
version: 2,
|
|
1905
1912
|
surfaces: [
|
|
@@ -1922,4 +1929,4 @@ var qt = {
|
|
|
1922
1929
|
}
|
|
1923
1930
|
};
|
|
1924
1931
|
//#endregion
|
|
1925
|
-
export {
|
|
1932
|
+
export { Jt as comboboxModule, $ as initFormieCombobox };
|