@encatch/ws-react 0.0.2 → 0.0.3

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.
@@ -13,8 +13,8 @@ var $;
13
13
  function te() {
14
14
  if ($) return p;
15
15
  $ = 1;
16
- var a = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
17
- function m(d, s, c) {
16
+ var a = Symbol.for("react.transitional.element"), f = Symbol.for("react.fragment");
17
+ function l(d, s, c) {
18
18
  var E = null;
19
19
  if (c !== void 0 && (E = "" + c), s.key !== void 0 && (E = "" + s.key), "key" in s) {
20
20
  c = {};
@@ -29,7 +29,7 @@ function te() {
29
29
  props: c
30
30
  };
31
31
  }
32
- return p.Fragment = l, p.jsx = m, p.jsxs = m, p;
32
+ return p.Fragment = f, p.jsx = l, p.jsxs = l, p;
33
33
  }
34
34
  var R = {};
35
35
  /**
@@ -87,12 +87,12 @@ function ne() {
87
87
  }
88
88
  return null;
89
89
  }
90
- function l(e) {
90
+ function f(e) {
91
91
  return "" + e;
92
92
  }
93
- function m(e) {
93
+ function l(e) {
94
94
  try {
95
- l(e);
95
+ f(e);
96
96
  var r = !1;
97
97
  } catch {
98
98
  r = !0;
@@ -104,7 +104,7 @@ function ne() {
104
104
  r,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  n
107
- ), l(e);
107
+ ), f(e);
108
108
  }
109
109
  }
110
110
  function d(e) {
@@ -197,10 +197,10 @@ function ne() {
197
197
  else S(o);
198
198
  if (g.call(r, "key")) {
199
199
  o = a(e);
200
- var f = Object.keys(r).filter(function(K) {
200
+ var m = Object.keys(r).filter(function(K) {
201
201
  return K !== "key";
202
202
  });
203
- n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
203
+ n = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error(
204
204
  `A props object containing a "key" prop is being spread into JSX:
205
205
  let props = %s;
206
206
  <%s {...props} />
@@ -209,11 +209,11 @@ React keys must be passed directly to JSX without using spread:
209
209
  <%s key={someKey} {...props} />`,
210
210
  n,
211
211
  o,
212
- f,
212
+ m,
213
213
  o
214
214
  ), I[o + n] = !0);
215
215
  }
216
- if (o = null, t !== void 0 && (m(t), o = "" + t), E(r) && (m(r.key), o = "" + r.key), "key" in r) {
216
+ if (o = null, t !== void 0 && (l(t), o = "" + t), E(r) && (l(r.key), o = "" + r.key), "key" in r) {
217
217
  t = {};
218
218
  for (var A in r)
219
219
  A !== "key" && (t[A] = r[A]);
@@ -279,14 +279,17 @@ function oe() {
279
279
  return D || (D = 1, process.env.NODE_ENV === "production" ? v.exports = te() : v.exports = ne()), v.exports;
280
280
  }
281
281
  var ae = oe();
282
- typeof window < "u" && !customElements.get("encatch-app") && import("./web-form-engine-core.umd-BORBTLip.js").then((a) => a.w).then(({ EncatchAppElement: a }) => {
282
+ typeof window < "u" && !customElements.get("encatch-app") && import("./web-form-engine-core.umd-BsgK5u9q.js").then((a) => a.w).then(({ EncatchAppElement: a }) => {
283
283
  customElements.define("encatch-app", a);
284
284
  });
285
- const ce = (a) => (re(() => {
286
- typeof window < "u" && !customElements.get("encatch-app") && import("./web-form-engine-core.umd-BORBTLip.js").then((l) => l.w).then(({ EncatchAppElement: l }) => {
285
+ const ce = ({
286
+ formData: a,
287
+ cssLink: f
288
+ }) => (re(() => {
289
+ typeof window < "u" && !customElements.get("encatch-app") && import("./web-form-engine-core.umd-BsgK5u9q.js").then((l) => l.w).then(({ EncatchAppElement: l }) => {
287
290
  customElements.define("encatch-app", l);
288
291
  });
289
- }, []), /* @__PURE__ */ ae.jsx("encatch-app", { ...a }));
292
+ }, []), /* @__PURE__ */ ae.jsx("encatch-app", { ...a, cssLink: f }));
290
293
  export {
291
294
  ce as EncatchPreview
292
295
  };