@levo-so/react 0.1.28 → 0.1.30
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-Bug2FXpG.js → CheckboxWidget-Dedx-7Wy.js} +6 -6
- package/dist/{CollectionFormBuilder-DxViQE0w.js → CollectionFormBuilder-BPzVyGLq.js} +36 -36
- package/dist/{CurrencyWidget-BtjxmXgj.js → CurrencyWidget-CW3cMoYn.js} +1 -1
- package/dist/{DateTimeWidget-Ds8g90-j.js → DateTimeWidget-eKbj2Q86.js} +5 -5
- package/dist/{DefaultFormVariant-ChnisPj2.js → DefaultFormVariant-DGecA_SF.js} +6 -6
- package/dist/{DropdownWidget-B2o6wz-C.js → DropdownWidget-DJ6rBFE0.js} +2 -2
- package/dist/{EmailWidget-Cfyfy5OH.js → EmailWidget-Bx3LTBSb.js} +4 -4
- package/dist/{FormCaptcha-BOjVusbv.js → FormCaptcha-BVawlT6h.js} +1 -1
- package/dist/{GeocoderWidget-B5TnEwp-.js → GeocoderWidget-C_8wJijA.js} +6 -6
- package/dist/{Input-2CvZ90f8.js → Input-Vv7mKQFt.js} +4 -4
- package/dist/{MultiGeocoderWidget-CF4HGkCg.js → MultiGeocoderWidget-0uUFNNoH.js} +6 -6
- package/dist/{MultiTextWidget-fnzlopnN.js → MultiTextWidget-BluGgZVP.js} +2 -2
- package/dist/{PhoneWidget-BVk5mhOm.js → PhoneWidget-Mm6DmCsK.js} +2 -2
- package/dist/{RadioWidget-CouCg5aG.js → RadioWidget-BkYAbg4o.js} +7 -7
- package/dist/{RichTextWidget-dqN--eKc.js → RichTextWidget-CbyT-y1E.js} +10 -10
- package/dist/{Spinner-CDMNP44S.js → Spinner-BcBoT-J5.js} +3 -3
- package/dist/{StepsFormVariant-Buw3v2UB.js → StepsFormVariant-Bk_rc3R7.js} +8 -8
- package/dist/{SwitchWidget-BkBgr_nQ.js → SwitchWidget-DeCIh2Vm.js} +2 -2
- package/dist/{TextWidget-I9pwxamg.js → TextWidget-Di_db2UE.js} +2 -2
- package/dist/{TextareaWidget-takl2qqW.js → TextareaWidget-CZqLQQAK.js} +1 -1
- package/dist/{ToggleCheckboxWidget-B8hL0ZhV.js → ToggleCheckboxWidget-Dynr-C0Y.js} +2 -2
- package/dist/{URLWidget-C1S_yZ9J.js → URLWidget-BvQvn0aZ.js} +3 -3
- package/dist/{UploadWidget-D7USwx7q.js → UploadWidget-mRgEWRVS.js} +29 -29
- package/dist/audience/hooks/useTrackClicks.d.ts.map +1 -1
- package/dist/audience/index.js +1 -1
- package/dist/audience/utils/autocapture.d.ts +1 -1
- package/dist/audience/utils/autocapture.d.ts.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +3 -3
- package/dist/membership/components/Container.d.ts.map +1 -1
- package/dist/membership/index.js +73 -57
- package/dist/{page-Bgl12goV.js → page-CgK_Cgps.js} +40 -36
- package/package.json +4 -4
|
@@ -201,7 +201,7 @@ function We(e) {
|
|
|
201
201
|
n = e.className;
|
|
202
202
|
break;
|
|
203
203
|
case "object":
|
|
204
|
-
n = (e.className && "baseVal" in e.className ? e.className.baseVal : null) || e.getAttribute("class") || "";
|
|
204
|
+
n = (e.className && "baseVal" in e.className ? e.className.baseVal : null) || (e == null ? void 0 : e.getAttribute("class")) || "";
|
|
205
205
|
break;
|
|
206
206
|
default:
|
|
207
207
|
n = "";
|
|
@@ -252,7 +252,7 @@ function Ve(e) {
|
|
|
252
252
|
}
|
|
253
253
|
const z = (e) => {
|
|
254
254
|
const n = ["button", "checkbox", "submit", "reset"];
|
|
255
|
-
return !!(v(e, "input") && !n.includes(e.type) || v(e, "select") || v(e, "textarea") || e.getAttribute("contenteditable") === "true");
|
|
255
|
+
return !!(v(e, "input") && !n.includes(e.type) || v(e, "select") || v(e, "textarea") || (e == null ? void 0 : e.getAttribute("contenteditable")) === "true");
|
|
256
256
|
}, Z = "(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})", Ye = new RegExp(`^(?:${Z})$`), Je = new RegExp(Z), q = "\\d{3}-?\\d{2}-?\\d{4}", Xe = new RegExp(`^(${q})$`), ze = new RegExp(`(${q})`), j = (e, n = !0) => !(Y(e) || L(e) && (e = N(e), (n ? Ye : Je).test((e || "").replace(/[- ]/g, "")) || (n ? Xe : ze).test(e))), Ze = (e) => L(e) ? e.substring(0, 10) === "_ngcontent" || e.substring(0, 7) === "_nghost" : !1, W = (e) => {
|
|
257
257
|
let n = C(e);
|
|
258
258
|
return n = `${n} ${Q(e)}`.trim(), j(n) ? n : "";
|
|
@@ -307,9 +307,7 @@ const qe = ["input", "textarea", "select"], ee = (e) => {
|
|
|
307
307
|
const i = ee(t);
|
|
308
308
|
if (r) {
|
|
309
309
|
const c = X((o = window == null ? void 0 : window.getSelection()) == null ? void 0 : o.toString()), s = e.type || "clipboard";
|
|
310
|
-
|
|
311
|
-
return !1;
|
|
312
|
-
i.copy_text = c, i.copy_type = s;
|
|
310
|
+
i.copy_text = c ?? "", i.copy_type = s ?? "";
|
|
313
311
|
}
|
|
314
312
|
return i;
|
|
315
313
|
}
|
|
@@ -334,41 +332,47 @@ const R = new rt(), ot = () => {
|
|
|
334
332
|
const { audience: e } = x();
|
|
335
333
|
f(() => {
|
|
336
334
|
const n = (t) => {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
if (t.target instanceof HTMLElement) {
|
|
347
|
-
const o = t.target;
|
|
348
|
-
r.rage_click = R == null ? void 0 : R.isRageClick(
|
|
349
|
-
t.clientX,
|
|
350
|
-
t.clientY,
|
|
351
|
-
(/* @__PURE__ */ new Date()).getTime()
|
|
352
|
-
), r = {
|
|
353
|
-
...r,
|
|
354
|
-
...ee(o)
|
|
335
|
+
try {
|
|
336
|
+
let r = {
|
|
337
|
+
hostname: window.location.hostname,
|
|
338
|
+
pathname: window.location.pathname,
|
|
339
|
+
page_title: document.title,
|
|
340
|
+
url: window.location.href,
|
|
341
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
342
|
+
event_type: t.type,
|
|
343
|
+
button_type: t.button
|
|
355
344
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
345
|
+
if (t.target instanceof HTMLElement) {
|
|
346
|
+
const o = t.target;
|
|
347
|
+
r.rage_click = R == null ? void 0 : R.isRageClick(
|
|
348
|
+
t.clientX,
|
|
349
|
+
t.clientY,
|
|
350
|
+
(/* @__PURE__ */ new Date()).getTime()
|
|
351
|
+
), r = {
|
|
352
|
+
...r,
|
|
353
|
+
...ee(o)
|
|
354
|
+
};
|
|
355
|
+
let i = o == null ? void 0 : o.getAttribute("href");
|
|
356
|
+
if (!i) {
|
|
357
|
+
let c = o.parentNode, s = 0;
|
|
358
|
+
for (; c && s < 8; ) {
|
|
359
|
+
const a = c == null ? void 0 : c.getAttribute(
|
|
360
|
+
"href"
|
|
361
|
+
);
|
|
362
|
+
if (a) {
|
|
363
|
+
i = a;
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
c = c.parentNode, s++;
|
|
364
367
|
}
|
|
365
|
-
c = c.parentNode, s++;
|
|
366
368
|
}
|
|
369
|
+
e == null || e.track("page.click", {
|
|
370
|
+
...r,
|
|
371
|
+
href: i || void 0
|
|
372
|
+
});
|
|
367
373
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
href: i || void 0
|
|
371
|
-
});
|
|
374
|
+
} catch (r) {
|
|
375
|
+
console.error(r);
|
|
372
376
|
}
|
|
373
377
|
};
|
|
374
378
|
return document.addEventListener("click", n), () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo suite for React based applications",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": ">=18",
|
|
18
18
|
"react-dom": ">=18",
|
|
19
|
-
"@levo-so/core": "0.1.
|
|
19
|
+
"@levo-so/core": "0.1.30"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"typescript": "5.5.4",
|
|
91
91
|
"vite": "5.4.3",
|
|
92
92
|
"vite-plugin-dts": "4.1.0",
|
|
93
|
-
"@levo/
|
|
93
|
+
"@levo/tw-config": "0.0.0",
|
|
94
94
|
"@levo/ts-config": "0.0.0",
|
|
95
|
-
"@levo/
|
|
95
|
+
"@levo/eslint-config": "0.0.0"
|
|
96
96
|
},
|
|
97
97
|
"main": "./dist/index.js",
|
|
98
98
|
"module": "./dist/index.js",
|