@incodetech/web 2.0.0-alpha.6 → 2.0.0-alpha.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.
@@ -1,8 +1,8 @@
1
- import { u as e, S as g, a as h, B as v } from "../preact-custom-element.esm-BGQkPkOv.js";
2
- import { createEmailManager as O } from "@incodetech/core/email";
3
- import { d as f, y as b, k as y } from "../vendor-preact-CK0WeTOR.js";
4
- import { r as V, I as P, P as E } from "../incodeModule-BuCBWati.js";
5
- import { O as k } from "../otpInput-cq1THeRd.js";
1
+ import { u as e, S as g, r as h, a as v, B as O } from "../incodeModule-Dv8Qllrv.js";
2
+ import { createEmailManager as y } from "@incodetech/core/email";
3
+ import { d as f, y as b, k as V } from "../vendor-preact-CK0WeTOR.js";
4
+ import { I as P, P as E } from "../page-CSoG4tGT.js";
5
+ import { O as k } from "../otpInput-BtoZe0Wz.js";
6
6
  const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
7
7
  prefilledEmail: i,
8
8
  emailError: s,
@@ -50,7 +50,7 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
50
50
  ]
51
51
  }
52
52
  ),
53
- s && /* @__PURE__ */ e(y, { children: [
53
+ s && /* @__PURE__ */ e(V, { children: [
54
54
  /* @__PURE__ */ e(g, { size: 8 }),
55
55
  /* @__PURE__ */ e(
56
56
  "p",
@@ -65,10 +65,10 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
65
65
  ] })
66
66
  ] }) });
67
67
  }, C = ({ config: i, onFinish: s, onError: r }) => {
68
- const [t, n] = h(() => {
68
+ const [t, n] = v(() => {
69
69
  if (!i)
70
70
  throw new Error("Email config is required");
71
- return O({ config: i });
71
+ return y({ config: i });
72
72
  }), [o, m] = f(!1);
73
73
  if (b(() => {
74
74
  if (t.status === "idle" && n.load)
@@ -101,7 +101,7 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
101
101
  ),
102
102
  /* @__PURE__ */ e(g, {}),
103
103
  /* @__PURE__ */ e(
104
- v,
104
+ O,
105
105
  {
106
106
  onClick: () => n.submit(),
107
107
  disabled: !o,
@@ -139,7 +139,7 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
139
139
  }
140
140
  return t.status === "success" ? (s?.(), null) : (t.status === "error" && r?.(t.error), null);
141
141
  }, L = ({ config: i, onFinish: s, onError: r }) => /* @__PURE__ */ e(P, { children: i ? /* @__PURE__ */ e(C, { config: i, onFinish: s, onError: r }) : null });
142
- V(L, "incode-email");
142
+ h(L, "incode-email");
143
143
  export {
144
144
  L as Email
145
145
  };