@verbb/formie-browser 1.0.5 → 1.0.6
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 +14 -0
- package/dist/chunks/{calculations-CgVJcQ2P.js → calculations-CeDgB9jt.js} +13 -13
- package/dist/chunks/{conditions-CZ3FU5QO.js → conditions-DjZOtHfS.js} +3 -3
- package/dist/chunks/dist-BQ4a9hmy.js +2659 -0
- package/dist/chunks/rich-text-D0sb8bmX.js +349 -0
- package/dist/chunks/{signature-CpgqHCEx.js → signature-xz4QO7CR.js} +107 -34
- package/dist/chunks/{text-limit-B09elPDB.js → text-limit-DbgEFHLO.js} +1 -1
- package/dist/chunks/upload-manager-BpqWSHmU.js +2558 -0
- package/dist/css/theme/_buttons.css +16 -0
- package/dist/css/theme/_tokens.css +2 -0
- package/dist/css/theme/fields/_signature.css +19 -0
- package/dist/css/theme/fields/_upload-manager.css +279 -0
- package/dist/index.js +6 -5
- package/dist/js/modules/fields/index.d.ts.map +1 -1
- package/dist/js/modules/fields/signature.d.ts.map +1 -1
- package/dist/js/modules/fields/upload-manager.d.ts +3 -0
- package/dist/js/modules/fields/upload-manager.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/css/theme/_buttons.css +16 -0
- package/src/css/theme/_tokens.css +2 -0
- package/src/css/theme/fields/_signature.css +19 -0
- package/src/css/theme/fields/_upload-manager.css +279 -0
- package/src/js/modules/fields/index.ts +1 -0
- package/src/js/modules/fields/signature.ts +199 -15
- package/src/js/modules/fields/upload-manager.ts +1277 -0
- package/src/vendor.d.ts +1 -1
- package/dist/chunks/dist-BF5GU3_9.js +0 -2674
- package/dist/chunks/rich-text-Cv8ADyk-.js +0 -349
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.0.6 - 2026-06-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Add the `upload-manager` field module for File Upload **Upload Manager (Advanced)** fields, powered by Uppy (`@uppy/core` + `@uppy/xhr-upload`). Supports drag-and-drop, async staged uploads to Formie upload endpoints, transfer progress with server-processing feedback, remove, hidden asset ID sync, hydration for saved submissions and drafts, up/down reorder controls, and repeater row binding.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Run stale pending File Upload cleanup during Craft garbage collection.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Fix Signature field initialization on multi-page forms, conditional fields, and late layout by retrying canvas sizing, watching visibility changes, and surfacing accurate status messages when canvas support or init fails. ([#2708](https://github.com/verbb/formie/issues/2708))
|
|
18
|
+
|
|
5
19
|
## 1.0.5 - 2026-06-12
|
|
6
20
|
|
|
7
21
|
### Added
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./debug-BV0DvdHx.js";
|
|
|
2
2
|
import { r as t, t as n } from "./field-references.keys-58ZSTrCW.js";
|
|
3
3
|
import { n as r, r as i } from "./field-references.resolver-CHwn0G0L.js";
|
|
4
4
|
import { r as a, t as o } from "./shared-Bx9s0i0P.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as s, n as c, r as l, s as u, t as d } from "./dist-BQ4a9hmy.js";
|
|
6
6
|
//#region src/js/utils/field-references.row-scope.ts
|
|
7
7
|
var f = new Set([
|
|
8
8
|
"first",
|
|
@@ -159,11 +159,11 @@ function w(e, t, n) {
|
|
|
159
159
|
return t.forEach(([e, t]) => {
|
|
160
160
|
let n = x(t);
|
|
161
161
|
if (String(n.scope || "").trim()) {
|
|
162
|
-
o[e] =
|
|
162
|
+
o[e] = c(t, y(t.sourceKey || "", n, a).value);
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
|
-
o[e] =
|
|
166
|
-
}),
|
|
165
|
+
o[e] = c(t, r(t.sourceKey || "", a).value);
|
|
166
|
+
}), d(o, n.formatting);
|
|
167
167
|
}
|
|
168
168
|
function T(e, r) {
|
|
169
169
|
let a = i(e), o = /* @__PURE__ */ new Set();
|
|
@@ -187,12 +187,12 @@ function T(e, r) {
|
|
|
187
187
|
}), o;
|
|
188
188
|
}
|
|
189
189
|
function E(e, t, n, r) {
|
|
190
|
-
let i =
|
|
191
|
-
|
|
190
|
+
let i = s(r), a = l(r), c = /* @__PURE__ */ new Map(), d = null, f = !1, p = !1, m = !1, h = () => {
|
|
191
|
+
c.forEach((e, t) => {
|
|
192
192
|
e.forEach((e, n) => {
|
|
193
193
|
t.removeEventListener(n, e);
|
|
194
194
|
});
|
|
195
|
-
}),
|
|
195
|
+
}), c.clear();
|
|
196
196
|
}, g = (e) => {
|
|
197
197
|
!e || f || queueMicrotask(() => {
|
|
198
198
|
f || (n.dispatchEvent(new Event("input", { bubbles: !0 })), n.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
@@ -215,7 +215,7 @@ function E(e, t, n, r) {
|
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
try {
|
|
218
|
-
let e =
|
|
218
|
+
let e = u(l.formula, l.variables, r), i = {
|
|
219
219
|
calculations: n,
|
|
220
220
|
init: s,
|
|
221
221
|
formula: l.formula,
|
|
@@ -257,21 +257,21 @@ function E(e, t, n, r) {
|
|
|
257
257
|
};
|
|
258
258
|
["input", "change"].forEach((t) => {
|
|
259
259
|
e.addEventListener(t, r);
|
|
260
|
-
let n =
|
|
261
|
-
n.set(t, r),
|
|
260
|
+
let n = c.get(e) || /* @__PURE__ */ new Map();
|
|
261
|
+
n.set(t, r), c.set(e, n);
|
|
262
262
|
});
|
|
263
263
|
}, b = () => {
|
|
264
264
|
m || f || (m = !0, queueMicrotask(() => {
|
|
265
265
|
m = !1, y(), v(!1);
|
|
266
266
|
}));
|
|
267
267
|
};
|
|
268
|
-
return y(),
|
|
268
|
+
return y(), d = new MutationObserver(() => {
|
|
269
269
|
b();
|
|
270
|
-
}),
|
|
270
|
+
}), d.observe(e, {
|
|
271
271
|
childList: !0,
|
|
272
272
|
subtree: !0
|
|
273
273
|
}), _(!0), () => {
|
|
274
|
-
f = !0,
|
|
274
|
+
f = !0, d?.disconnect(), h();
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
var D = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./debug-BV0DvdHx.js";
|
|
2
2
|
import { t } from "./field-references.keys-58ZSTrCW.js";
|
|
3
3
|
import { n } from "./shared-Bx9s0i0P.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as r, o as i } from "./dist-BQ4a9hmy.js";
|
|
5
5
|
//#region src/js/modules/fields/conditions/config.ts
|
|
6
6
|
var a = "[data-formie-conditions]";
|
|
7
7
|
function o(e) {
|
|
@@ -298,9 +298,9 @@ function X(e) {
|
|
|
298
298
|
return e.length ? e.some((e) => le(e)) : null;
|
|
299
299
|
}
|
|
300
300
|
function ue(e, t) {
|
|
301
|
-
return
|
|
301
|
+
return r(e, e.conditions.map((e) => {
|
|
302
302
|
let n = t(e);
|
|
303
|
-
return
|
|
303
|
+
return i(e, ce(n, L(e)), { visibility: X(n) });
|
|
304
304
|
}));
|
|
305
305
|
}
|
|
306
306
|
//#endregion
|