@levo-so/react 0.1.11 → 0.1.13
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/{CheckboxWidget-Cfgvj7cn.js → CheckboxWidget-BctVOZiO.js} +1 -1
- package/dist/{CollectionFormBuilder-Cl75S4QY.js → CollectionFormBuilder-B6CAVKhg.js} +124 -99
- package/dist/{CurrencyWidget-CIrjUd7P.js → CurrencyWidget-COoMkfsA.js} +1 -1
- package/dist/{DateTimeWidget-C3ZjRkzt.js → DateTimeWidget-DcbQ3smI.js} +1 -1
- package/dist/{DefaultFormVariant-vMPY17-9.js → DefaultFormVariant-C6zbKgwB.js} +2 -2
- package/dist/{DropdownWidget-CK1trfBl.js → DropdownWidget-DszCTSWr.js} +1 -1
- package/dist/{EmailWidget-BO-vqkzR.js → EmailWidget-CG9oNUM5.js} +1 -1
- package/dist/{GeocoderWidget-B2YFZCYX.js → GeocoderWidget-CXu17A7y.js} +2 -2
- package/dist/{LevoProvider-Cp0CKrgY.js → LevoProvider-BI6g_T4E.js} +54 -54
- package/dist/{MultiGeocoderWidget-C_s8Zsij.js → MultiGeocoderWidget-D3Xmv8g4.js} +2 -2
- package/dist/MultiTextWidget-CyQRcWC8.js +33 -0
- package/dist/{PhoneWidget-DUaS-iYE.js → PhoneWidget-C1Jt7kXL.js} +1 -1
- package/dist/{RadioWidget-B6_ziyPx.js → RadioWidget-BrLNF-I2.js} +1 -1
- package/dist/{RichTextWidget-CgRsIwtY.js → RichTextWidget-BogYcPtS.js} +1 -1
- package/dist/{StepsFormVariant-BLoWPVj3.js → StepsFormVariant-Bx-jdciC.js} +2 -2
- package/dist/{SwitchWidget-DO-hypNx.js → SwitchWidget-BT0-waP9.js} +1 -1
- package/dist/{TextWidget-LJ-qBQ4d.js → TextWidget-Bvsz-hey.js} +1 -1
- package/dist/{TextareaWidget-D1baKIEx.js → TextareaWidget-8SLym--T.js} +1 -1
- package/dist/{ToggleCheckboxWidget-j7f_du6j.js → ToggleCheckboxWidget-VrCQBF5C.js} +1 -1
- package/dist/{URLWidget-5IJ9CYEQ.js → URLWidget-B99nKr6N.js} +2 -2
- package/dist/{UploadWidget-D9AcSa7N.js → UploadWidget-ZebPWZZZ.js} +2 -2
- package/dist/audience/components/page.d.ts.map +1 -1
- package/dist/audience/index.js +1 -1
- package/dist/collection/components/renderer/RenderCommonField.d.ts.map +1 -1
- package/dist/collection/components/widgets/multiTextWidget/MultiTextWidget.d.ts +7 -0
- package/dist/collection/components/widgets/multiTextWidget/MultiTextWidget.d.ts.map +1 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/formHelpers.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3 -3
- package/dist/libs.css +1 -1
- package/dist/membership/index.js +1 -1
- package/dist/{page-CtBwGrHq.js → page-BLCSp9NV.js} +65 -63
- package/dist/{useLevoForm-CMcusFAD.js → useLevoForm-DjvUas25.js} +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var j = Object.defineProperty;
|
|
3
3
|
var D = (r, l, o) => l in r ? j(r, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[l] = o;
|
|
4
|
-
var
|
|
4
|
+
var p = (r, l, o) => D(r, typeof l != "symbol" ? l + "" : l, o);
|
|
5
5
|
import { j as B } from "./jsx-runtime-B6kdoens.js";
|
|
6
6
|
import k from "wretch";
|
|
7
7
|
import { createContext as G, useContext as W } from "react";
|
|
@@ -11,7 +11,7 @@ function z(r) {
|
|
|
11
11
|
}
|
|
12
12
|
var T = class {
|
|
13
13
|
constructor(r) {
|
|
14
|
-
|
|
14
|
+
p(this, "client");
|
|
15
15
|
this.client = r;
|
|
16
16
|
}
|
|
17
17
|
}, F = { exports: {} };
|
|
@@ -20,15 +20,15 @@ var T = class {
|
|
|
20
20
|
r.exports ? r.exports = o() : l.log = o();
|
|
21
21
|
})(q, function() {
|
|
22
22
|
var l = function() {
|
|
23
|
-
}, o = "undefined",
|
|
23
|
+
}, o = "undefined", L = typeof window !== o && typeof window.navigator !== o && /Trident\/|MSIE /.test(window.navigator.userAgent), g = [
|
|
24
24
|
"trace",
|
|
25
25
|
"debug",
|
|
26
26
|
"info",
|
|
27
27
|
"warn",
|
|
28
28
|
"error"
|
|
29
|
-
], c = {},
|
|
30
|
-
function
|
|
31
|
-
var e = t[
|
|
29
|
+
], c = {}, a = null;
|
|
30
|
+
function b(t, i) {
|
|
31
|
+
var e = t[i];
|
|
32
32
|
if (typeof e.bind == "function")
|
|
33
33
|
return e.bind(t);
|
|
34
34
|
try {
|
|
@@ -43,37 +43,37 @@ var T = class {
|
|
|
43
43
|
console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
|
|
44
44
|
}
|
|
45
45
|
function U(t) {
|
|
46
|
-
return t === "debug" && (t = "log"), typeof console === o ? !1 : t === "trace" &&
|
|
46
|
+
return t === "debug" && (t = "log"), typeof console === o ? !1 : t === "trace" && L ? S : console[t] !== void 0 ? b(console, t) : console.log !== void 0 ? b(console, "log") : l;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
for (var t = this.getLevel(),
|
|
50
|
-
var e =
|
|
51
|
-
this[e] =
|
|
48
|
+
function d() {
|
|
49
|
+
for (var t = this.getLevel(), i = 0; i < g.length; i++) {
|
|
50
|
+
var e = g[i];
|
|
51
|
+
this[e] = i < t ? l : this.methodFactory(e, t, this.name);
|
|
52
52
|
}
|
|
53
53
|
if (this.log = this.debug, typeof console === o && t < this.levels.SILENT)
|
|
54
54
|
return "No console available for logging";
|
|
55
55
|
}
|
|
56
56
|
function A(t) {
|
|
57
57
|
return function() {
|
|
58
|
-
typeof console !== o && (
|
|
58
|
+
typeof console !== o && (d.call(this), this[t].apply(this, arguments));
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function M(t,
|
|
61
|
+
function M(t, i, e) {
|
|
62
62
|
return U(t) || A.apply(this, arguments);
|
|
63
63
|
}
|
|
64
|
-
function E(t,
|
|
65
|
-
var e = this,
|
|
64
|
+
function E(t, i) {
|
|
65
|
+
var e = this, w, m, f, u = "loglevel";
|
|
66
66
|
typeof t == "string" ? u += ":" + t : typeof t == "symbol" && (u = void 0);
|
|
67
67
|
function O(n) {
|
|
68
|
-
var
|
|
68
|
+
var s = (g[n] || "silent").toUpperCase();
|
|
69
69
|
if (!(typeof window === o || !u)) {
|
|
70
70
|
try {
|
|
71
|
-
window.localStorage[u] =
|
|
71
|
+
window.localStorage[u] = s;
|
|
72
72
|
return;
|
|
73
73
|
} catch {
|
|
74
74
|
}
|
|
75
75
|
try {
|
|
76
|
-
window.document.cookie = encodeURIComponent(u) + "=" +
|
|
76
|
+
window.document.cookie = encodeURIComponent(u) + "=" + s + ";";
|
|
77
77
|
} catch {
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -87,9 +87,9 @@ var T = class {
|
|
|
87
87
|
}
|
|
88
88
|
if (typeof n === o)
|
|
89
89
|
try {
|
|
90
|
-
var
|
|
90
|
+
var s = window.document.cookie, h = encodeURIComponent(u), I = s.indexOf(h + "=");
|
|
91
91
|
I !== -1 && (n = /^([^;]+)/.exec(
|
|
92
|
-
|
|
92
|
+
s.slice(I + h.length + 1)
|
|
93
93
|
)[1]);
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
@@ -108,10 +108,10 @@ var T = class {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
var
|
|
113
|
-
if (typeof
|
|
114
|
-
return
|
|
111
|
+
function v(n) {
|
|
112
|
+
var s = n;
|
|
113
|
+
if (typeof s == "string" && e.levels[s.toUpperCase()] !== void 0 && (s = e.levels[s.toUpperCase()]), typeof s == "number" && s >= 0 && s <= e.levels.SILENT)
|
|
114
|
+
return s;
|
|
115
115
|
throw new TypeError("log.setLevel() called with invalid level: " + n);
|
|
116
116
|
}
|
|
117
117
|
e.name = t, e.levels = {
|
|
@@ -121,67 +121,67 @@ var T = class {
|
|
|
121
121
|
WARN: 3,
|
|
122
122
|
ERROR: 4,
|
|
123
123
|
SILENT: 5
|
|
124
|
-
}, e.methodFactory =
|
|
125
|
-
return f ?? m ??
|
|
126
|
-
}, e.setLevel = function(n,
|
|
127
|
-
return f =
|
|
124
|
+
}, e.methodFactory = i || M, e.getLevel = function() {
|
|
125
|
+
return f ?? m ?? w;
|
|
126
|
+
}, e.setLevel = function(n, s) {
|
|
127
|
+
return f = v(n), s !== !1 && O(f), d.call(e);
|
|
128
128
|
}, e.setDefaultLevel = function(n) {
|
|
129
|
-
m =
|
|
129
|
+
m = v(n), C() || e.setLevel(n, !1);
|
|
130
130
|
}, e.resetLevel = function() {
|
|
131
|
-
f = null, P(),
|
|
131
|
+
f = null, P(), d.call(e);
|
|
132
132
|
}, e.enableAll = function(n) {
|
|
133
133
|
e.setLevel(e.levels.TRACE, n);
|
|
134
134
|
}, e.disableAll = function(n) {
|
|
135
135
|
e.setLevel(e.levels.SILENT, n);
|
|
136
136
|
}, e.rebuild = function() {
|
|
137
|
-
if (
|
|
137
|
+
if (a !== e && (w = v(a.getLevel())), d.call(e), a === e)
|
|
138
138
|
for (var n in c)
|
|
139
139
|
c[n].rebuild();
|
|
140
|
-
},
|
|
141
|
-
|
|
140
|
+
}, w = v(
|
|
141
|
+
a ? a.getLevel() : "WARN"
|
|
142
142
|
);
|
|
143
143
|
var x = C();
|
|
144
|
-
x != null && (f =
|
|
144
|
+
x != null && (f = v(x)), d.call(e);
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
if (typeof
|
|
146
|
+
a = new E(), a.getLogger = function(i) {
|
|
147
|
+
if (typeof i != "symbol" && typeof i != "string" || i === "")
|
|
148
148
|
throw new TypeError("You must supply a name when creating a logger.");
|
|
149
|
-
var e = c[
|
|
150
|
-
return e || (e = c[
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
var e = c[i];
|
|
150
|
+
return e || (e = c[i] = new E(
|
|
151
|
+
i,
|
|
152
|
+
a.methodFactory
|
|
153
153
|
)), e;
|
|
154
154
|
};
|
|
155
155
|
var N = typeof window !== o ? window.log : void 0;
|
|
156
|
-
return
|
|
157
|
-
return typeof window !== o && window.log ===
|
|
158
|
-
},
|
|
156
|
+
return a.noConflict = function() {
|
|
157
|
+
return typeof window !== o && window.log === a && (window.log = N), a;
|
|
158
|
+
}, a.getLoggers = function() {
|
|
159
159
|
return c;
|
|
160
|
-
},
|
|
160
|
+
}, a.default = a, a;
|
|
161
161
|
});
|
|
162
162
|
})(F);
|
|
163
163
|
var J = F.exports;
|
|
164
|
-
const
|
|
164
|
+
const y = /* @__PURE__ */ z(J);
|
|
165
165
|
var K = class extends T {
|
|
166
166
|
constructor(l) {
|
|
167
167
|
super(l);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
this.client.NODE_ENV === "production" ?
|
|
171
|
-
),
|
|
168
|
+
p(this, "logger", y);
|
|
169
|
+
y.setLevel(
|
|
170
|
+
this.client.NODE_ENV === "production" ? y.levels.INFO : y.levels.DEBUG
|
|
171
|
+
), y.methodFactory = (o) => (L, g = {}) => {
|
|
172
172
|
k().url(`${this.client.apiUrl}/v1/apm/logs/json`).post({
|
|
173
173
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
174
174
|
level: o,
|
|
175
|
-
message:
|
|
176
|
-
...
|
|
177
|
-
}).res().catch((
|
|
175
|
+
message: L,
|
|
176
|
+
...g
|
|
177
|
+
}).res().catch((c) => console.error(c));
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
}, V = class extends T {
|
|
181
181
|
constructor() {
|
|
182
182
|
super(...arguments);
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
p(this, "mediaBulkUpload", (l, o = {}) => this.client.fetch.url("/v1/assets/media/bulk").options(o).post(l).json());
|
|
184
|
+
p(this, "getAllMedia", async (l = {}) => await this.client.fetch.url("/v1/assets/media/query").post(l).json());
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
const R = G(null), X = ({
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { Plus as m } from "lucide-react";
|
|
4
4
|
import { useFieldArray as n } from "react-hook-form";
|
|
5
|
-
import { k as c } from "./CollectionFormBuilder-
|
|
6
|
-
import { GeocoderWidget as d } from "./GeocoderWidget-
|
|
5
|
+
import { k as c } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
6
|
+
import { GeocoderWidget as d } from "./GeocoderWidget-CXu17A7y.js";
|
|
7
7
|
import { B as p } from "./Spinner-DzGH5rKe.js";
|
|
8
8
|
const g = ({
|
|
9
9
|
field: l
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { useController as C } from "react-hook-form";
|
|
3
|
+
import { h as b, j as k, k as q } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
4
|
+
import { I as A } from "./Input-2CvZ90f8.js";
|
|
5
|
+
const W = ({ field: r }) => {
|
|
6
|
+
var l;
|
|
7
|
+
const { key: u = "", label: n = "", helper_text: c = "", readonly: x = !1 } = r, o = u, {
|
|
8
|
+
field: { value: e, onChange: h, ...d },
|
|
9
|
+
fieldState: s
|
|
10
|
+
} = C({
|
|
11
|
+
name: o,
|
|
12
|
+
rules: b(r)
|
|
13
|
+
}), j = !!(r != null && r.required), g = (l = s == null ? void 0 : s.error) == null ? void 0 : l.message, y = Array.isArray(e) ? e == null ? void 0 : e.join(",") : "";
|
|
14
|
+
return /* @__PURE__ */ a.jsxs(k, { error: g, helperText: c, children: [
|
|
15
|
+
n && /* @__PURE__ */ a.jsx(q, { htmlFor: o, isRequired: j, children: n }),
|
|
16
|
+
/* @__PURE__ */ a.jsx(
|
|
17
|
+
A,
|
|
18
|
+
{
|
|
19
|
+
id: o,
|
|
20
|
+
readOnly: x,
|
|
21
|
+
value: y,
|
|
22
|
+
onChange: (F) => {
|
|
23
|
+
var m, p, i;
|
|
24
|
+
h((i = (p = (m = F.target) == null ? void 0 : m.value) == null ? void 0 : p.split(",")) == null ? void 0 : i.map((t) => t == null ? void 0 : t.trim()));
|
|
25
|
+
},
|
|
26
|
+
...d
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] });
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
W as default
|
|
33
|
+
};
|
|
@@ -3,7 +3,7 @@ import { j as o } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import { useController as f } from "react-hook-form";
|
|
4
4
|
import { PhoneInput as g } from "react-international-phone";
|
|
5
5
|
import { c as l } from "./cn-C9QoOYNG.js";
|
|
6
|
-
import { h as x, j as v, k as j } from "./CollectionFormBuilder-
|
|
6
|
+
import { h as x, j as v, k as j } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
7
7
|
const k = ({ field: e }) => {
|
|
8
8
|
const { key: u = "", label: t = "", helper_text: c = "", readonly: n = !1 } = e, s = u, {
|
|
9
9
|
field: { value: d, onBlur: a, onChange: i, ...m },
|
|
@@ -5,7 +5,7 @@ import * as d from "react";
|
|
|
5
5
|
import { useController as F } from "react-hook-form";
|
|
6
6
|
import { G as E } from "./Spinner-DzGH5rKe.js";
|
|
7
7
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
8
|
-
import { h as G, j as V, k as f } from "./CollectionFormBuilder-
|
|
8
|
+
import { h as G, j as V, k as f } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
9
9
|
import { I as q } from "./Input-2CvZ90f8.js";
|
|
10
10
|
function B(s) {
|
|
11
11
|
return E({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(s);
|
|
@@ -19,7 +19,7 @@ import { useState as D, useEffect as G } from "react";
|
|
|
19
19
|
import { useController as q } from "react-hook-form";
|
|
20
20
|
import { G as p, e as J, f as V, g as W, h as Z, i as _, j as P, k as K, l as Q, m as X, n as Y, o as $, p as nn } from "./Spinner-DzGH5rKe.js";
|
|
21
21
|
import { c as j } from "./cn-C9QoOYNG.js";
|
|
22
|
-
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-
|
|
22
|
+
import { h as ln, j as en, k as sn } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
23
23
|
function an(n) {
|
|
24
24
|
return p({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }, child: [] }] })(n);
|
|
25
25
|
}
|
|
@@ -3,8 +3,8 @@ import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
|
3
3
|
import { useState as A, useMemo as v } from "react";
|
|
4
4
|
import { FormProvider as I } from "react-hook-form";
|
|
5
5
|
import { c as N } from "./cn-C9QoOYNG.js";
|
|
6
|
-
import { l as g, F as T } from "./CollectionFormBuilder-
|
|
7
|
-
import { u as H, S as M } from "./useLevoForm-
|
|
6
|
+
import { l as g, F as T } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
7
|
+
import { u as H, S as M } from "./useLevoForm-DjvUas25.js";
|
|
8
8
|
import { B as y } from "./Spinner-DzGH5rKe.js";
|
|
9
9
|
const X = () => {
|
|
10
10
|
const [n, l] = A(0), { containerStyles: m } = g(), a = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useController as k } from "react-hook-form";
|
|
4
|
-
import { h as w, j, k as v } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as w, j, k as v } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
5
5
|
import * as c from "@radix-ui/react-switch";
|
|
6
6
|
import * as y from "react";
|
|
7
7
|
import { c as d } from "./cn-C9QoOYNG.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useFormContext as h, get as j } from "react-hook-form";
|
|
3
3
|
import { c as g } from "./cn-C9QoOYNG.js";
|
|
4
|
-
import { j as F, k as b, h as y } from "./CollectionFormBuilder-
|
|
4
|
+
import { j as F, k as b, h as y } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
5
5
|
import { I as f } from "./Input-2CvZ90f8.js";
|
|
6
6
|
const W = ({
|
|
7
7
|
field: r,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { useFormContext as u, get as x } from "react-hook-form";
|
|
3
3
|
import { c as b } from "./cn-C9QoOYNG.js";
|
|
4
|
-
import { j as g, k as h, h as f } from "./CollectionFormBuilder-
|
|
4
|
+
import { j as g, k as h, h as f } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
5
5
|
const w = ({ field: e }) => {
|
|
6
6
|
var a;
|
|
7
7
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useController as p } from "react-hook-form";
|
|
4
|
-
import { h as u, j as g, k as j } from "./CollectionFormBuilder-
|
|
4
|
+
import { h as u, j as g, k as j } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
5
5
|
import { C } from "./Checbox-sq-atGlJ.js";
|
|
6
6
|
const y = ({
|
|
7
7
|
field: e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { H as s } from "./CollectionFormBuilder-
|
|
3
|
-
import r from "./TextWidget-
|
|
2
|
+
import { H as s } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
3
|
+
import r from "./TextWidget-Bvsz-hey.js";
|
|
4
4
|
const a = (t) => /* @__PURE__ */ e.jsx(
|
|
5
5
|
r,
|
|
6
6
|
{
|
|
@@ -6,9 +6,9 @@ import { useMemo as Q, useState as S, useRef as tr, useEffect as M } from "react
|
|
|
6
6
|
import { useController as sr } from "react-hook-form";
|
|
7
7
|
import { G as R, B as P, S as W, T as er, a as or, c as q, d as G } from "./Spinner-DzGH5rKe.js";
|
|
8
8
|
import { m as cr, g as K } from "./fileUploadPresets-2raQmHT0.js";
|
|
9
|
-
import { u as V } from "./LevoProvider-
|
|
9
|
+
import { u as V } from "./LevoProvider-BI6g_T4E.js";
|
|
10
10
|
import { e as X } from "./errorHandler-_34Yv8wA.js";
|
|
11
|
-
import { h as nr, j as lr, k as dr } from "./CollectionFormBuilder-
|
|
11
|
+
import { h as nr, j as lr, k as dr } from "./CollectionFormBuilder-B6CAVKhg.js";
|
|
12
12
|
import { I as J } from "./Input-2CvZ90f8.js";
|
|
13
13
|
import { l as ir, S as F, i as xr } from "./Tooltip-CI4i4mYr.js";
|
|
14
14
|
import { useDropzone as pr } from "react-dropzone";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAInD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/audience/components/page.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAInD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC;CACvC,CA2FA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/audience/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderCommonField.d.ts","sourceRoot":"","sources":["../../../../src/collection/components/renderer/RenderCommonField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"RenderCommonField.d.ts","sourceRoot":"","sources":["../../../../src/collection/components/renderer/RenderCommonField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAyCjE,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6H5D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiTextWidget.d.ts","sourceRoot":"","sources":["../../../../../src/collection/components/widgets/multiTextWidget/MultiTextWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAShD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoCpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/dist/collection/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-
|
|
1
|
+
import { C as s, F as r, e as t, g as l, b as i, d as o, c as d, i as u, a as f, p as m, f as n, s as F, u as V, v as c } from "../CollectionFormBuilder-B6CAVKhg.js";
|
|
2
2
|
import { default as p } from "validatorjs";
|
|
3
3
|
export {
|
|
4
4
|
s as CollectionFormBuilder,
|
|
@@ -23,7 +23,7 @@ export declare const updateFieldWInterface: (tempField: ILemaField, field_interf
|
|
|
23
23
|
key: string;
|
|
24
24
|
kind: typeof import('@levo-so/core').FieldKindList[number];
|
|
25
25
|
label: string;
|
|
26
|
-
field_interface: "ArrayWidget" | "RecordWidget" | "TextWidget" | "CurrencyWidget" | "TextareaWidget" | "GeocoderWidget" | "MultiGeocoderWidget" | "DropdownWidget" | "ToggleCheckboxWidget" | "RadioWidget" | "NumberWidget" | "EmailWidget" | "PhoneWidget" | "URLWidget" | "DateWidget" | "SwitchWidget" | "RichTextWidget" | "DateTimeWidget" | "CheckboxWidget" | "ImageUploadWidget" | "MultiImageUploadWidget" | "FileUploadWidget" | "MultiFileUploadWidget" | "MultiDropdownWidget" | "JSONWidget" | "CollectionWidget";
|
|
26
|
+
field_interface: "ArrayWidget" | "RecordWidget" | "TextWidget" | "CurrencyWidget" | "TextareaWidget" | "GeocoderWidget" | "MultiGeocoderWidget" | "DropdownWidget" | "ToggleCheckboxWidget" | "RadioWidget" | "NumberWidget" | "EmailWidget" | "PhoneWidget" | "URLWidget" | "DateWidget" | "SwitchWidget" | "RichTextWidget" | "DateTimeWidget" | "CheckboxWidget" | "ImageUploadWidget" | "MultiImageUploadWidget" | "FileUploadWidget" | "MultiFileUploadWidget" | "MultiDropdownWidget" | "JSONWidget" | "CollectionWidget" | "MultiTextWidget";
|
|
27
27
|
helper_text?: string | undefined;
|
|
28
28
|
placeholder?: string | undefined;
|
|
29
29
|
default_value?: any;
|