@encatch/ws-react 0.0.4 → 0.0.5
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/ws-react.es.js +69 -69
- package/dist/ws-react.umd.js +10 -10
- package/package.json +1 -1
package/dist/ws-react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ee
|
|
2
|
-
var v = { exports: {} },
|
|
1
|
+
import ee from "react";
|
|
2
|
+
var v = { exports: {} }, R = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -10,28 +10,28 @@ var v = { exports: {} }, p = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var $;
|
|
13
|
-
function
|
|
14
|
-
if ($) return
|
|
13
|
+
function re() {
|
|
14
|
+
if ($) return R;
|
|
15
15
|
$ = 1;
|
|
16
|
-
var a = Symbol.for("react.transitional.element"),
|
|
17
|
-
function
|
|
16
|
+
var a = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
|
|
17
|
+
function m(d, s, u) {
|
|
18
18
|
var E = null;
|
|
19
|
-
if (
|
|
20
|
-
|
|
19
|
+
if (u !== void 0 && (E = "" + u), s.key !== void 0 && (E = "" + s.key), "key" in s) {
|
|
20
|
+
u = {};
|
|
21
21
|
for (var _ in s)
|
|
22
|
-
_ !== "key" && (
|
|
23
|
-
} else
|
|
24
|
-
return s =
|
|
22
|
+
_ !== "key" && (u[_] = s[_]);
|
|
23
|
+
} else u = s;
|
|
24
|
+
return s = u.ref, {
|
|
25
25
|
$$typeof: a,
|
|
26
26
|
type: d,
|
|
27
27
|
key: E,
|
|
28
28
|
ref: s !== void 0 ? s : null,
|
|
29
|
-
props:
|
|
29
|
+
props: u
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return R.Fragment = l, R.jsx = m, R.jsxs = m, R;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var b = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -42,7 +42,7 @@ var R = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var F;
|
|
45
|
-
function
|
|
45
|
+
function te() {
|
|
46
46
|
return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
47
|
function a(e) {
|
|
48
48
|
if (e == null) return null;
|
|
@@ -78,7 +78,7 @@ function ne() {
|
|
|
78
78
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
79
79
|
case B:
|
|
80
80
|
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
81
|
-
case
|
|
81
|
+
case j:
|
|
82
82
|
r = e._payload, e = e._init;
|
|
83
83
|
try {
|
|
84
84
|
return a(e(r));
|
|
@@ -87,12 +87,12 @@ function ne() {
|
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function l(e) {
|
|
91
91
|
return "" + e;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function m(e) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
l(e);
|
|
96
96
|
var r = !1;
|
|
97
97
|
} catch {
|
|
98
98
|
r = !0;
|
|
@@ -104,12 +104,12 @@ 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
|
-
),
|
|
107
|
+
), l(e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function d(e) {
|
|
111
111
|
if (e === T) return "<>";
|
|
112
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
112
|
+
if (typeof e == "object" && e !== null && e.$$typeof === j)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
115
115
|
var r = a(e);
|
|
@@ -122,11 +122,11 @@ function ne() {
|
|
|
122
122
|
var e = k.A;
|
|
123
123
|
return e === null ? null : e.getOwner();
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function u() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
128
|
function E(e) {
|
|
129
|
-
if (
|
|
129
|
+
if (x.call(e, "key")) {
|
|
130
130
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
131
|
if (r && r.isReactWarning) return !1;
|
|
132
132
|
}
|
|
@@ -150,12 +150,12 @@ function ne() {
|
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
151
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
152
|
}
|
|
153
|
-
function M(e, r, t, n, i,
|
|
154
|
-
return t =
|
|
155
|
-
$$typeof:
|
|
153
|
+
function M(e, r, t, n, i, c, w, A) {
|
|
154
|
+
return t = c.ref, e = {
|
|
155
|
+
$$typeof: g,
|
|
156
156
|
type: e,
|
|
157
157
|
key: r,
|
|
158
|
-
props:
|
|
158
|
+
props: c,
|
|
159
159
|
_owner: i
|
|
160
160
|
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
161
161
|
enumerable: !1,
|
|
@@ -174,15 +174,15 @@ function ne() {
|
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
|
-
value:
|
|
177
|
+
value: w
|
|
178
178
|
}), Object.defineProperty(e, "_debugTask", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: A
|
|
183
183
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
184
184
|
}
|
|
185
|
-
function P(e, r, t, n, i,
|
|
185
|
+
function P(e, r, t, n, i, c, w, A) {
|
|
186
186
|
var o = r.children;
|
|
187
187
|
if (o !== void 0)
|
|
188
188
|
if (n)
|
|
@@ -195,12 +195,12 @@ function ne() {
|
|
|
195
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
196
|
);
|
|
197
197
|
else S(o);
|
|
198
|
-
if (
|
|
198
|
+
if (x.call(r, "key")) {
|
|
199
199
|
o = a(e);
|
|
200
|
-
var
|
|
200
|
+
var f = Object.keys(r).filter(function(K) {
|
|
201
201
|
return K !== "key";
|
|
202
202
|
});
|
|
203
|
-
n = 0 <
|
|
203
|
+
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (f = 0 < f.length ? "{" + f.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,14 +209,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
209
209
|
<%s key={someKey} {...props} />`,
|
|
210
210
|
n,
|
|
211
211
|
o,
|
|
212
|
-
|
|
212
|
+
f,
|
|
213
213
|
o
|
|
214
214
|
), I[o + n] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (o = null, t !== void 0 && (
|
|
216
|
+
if (o = null, t !== void 0 && (m(t), o = "" + t), E(r) && (m(r.key), o = "" + r.key), "key" in r) {
|
|
217
217
|
t = {};
|
|
218
|
-
for (var
|
|
219
|
-
|
|
218
|
+
for (var h in r)
|
|
219
|
+
h !== "key" && (t[h] = r[h]);
|
|
220
220
|
} else t = r;
|
|
221
221
|
return o && _(
|
|
222
222
|
t,
|
|
@@ -224,31 +224,31 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
), M(
|
|
225
225
|
e,
|
|
226
226
|
o,
|
|
227
|
-
|
|
227
|
+
c,
|
|
228
228
|
i,
|
|
229
229
|
s(),
|
|
230
230
|
t,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
w,
|
|
232
|
+
A
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
function S(e) {
|
|
236
|
-
typeof e == "object" && e !== null && e.$$typeof ===
|
|
236
|
+
typeof e == "object" && e !== null && e.$$typeof === g && e._store && (e._store.validated = 1);
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var p = ee, g = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
239
239
|
return null;
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
p = {
|
|
242
242
|
react_stack_bottom_frame: function(e) {
|
|
243
243
|
return e();
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
var y, N = {}, C =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
)(), Y =
|
|
250
|
-
|
|
251
|
-
var
|
|
246
|
+
var y, N = {}, C = p.react_stack_bottom_frame.bind(
|
|
247
|
+
p,
|
|
248
|
+
u
|
|
249
|
+
)(), Y = O(d(u)), I = {};
|
|
250
|
+
b.Fragment = T, b.jsx = function(e, r, t, n, i) {
|
|
251
|
+
var c = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
252
252
|
return P(
|
|
253
253
|
e,
|
|
254
254
|
r,
|
|
@@ -256,11 +256,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
256
256
|
!1,
|
|
257
257
|
n,
|
|
258
258
|
i,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
c ? Error("react-stack-top-frame") : C,
|
|
260
|
+
c ? O(d(e)) : Y
|
|
261
261
|
);
|
|
262
|
-
},
|
|
263
|
-
var
|
|
262
|
+
}, b.jsxs = function(e, r, t, n, i) {
|
|
263
|
+
var c = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
264
|
return P(
|
|
265
265
|
e,
|
|
266
266
|
r,
|
|
@@ -268,28 +268,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
268
268
|
!0,
|
|
269
269
|
n,
|
|
270
270
|
i,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
c ? Error("react-stack-top-frame") : C,
|
|
272
|
+
c ? O(d(e)) : Y
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
|
-
})()),
|
|
275
|
+
})()), b;
|
|
276
276
|
}
|
|
277
277
|
var D;
|
|
278
|
-
function
|
|
279
|
-
return D || (D = 1, process.env.NODE_ENV === "production" ? v.exports =
|
|
278
|
+
function ne() {
|
|
279
|
+
return D || (D = 1, process.env.NODE_ENV === "production" ? v.exports = re() : v.exports = te()), v.exports;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
typeof window < "u" &&
|
|
283
|
-
|
|
281
|
+
var oe = ne();
|
|
282
|
+
typeof window < "u" && import("./web-form-engine-core.umd-BsgK5u9q.js").then((a) => a.w).then(({ EncatchAppElement: a }) => {
|
|
283
|
+
try {
|
|
284
|
+
customElements.get("encatch-app") || customElements.define("encatch-app", a);
|
|
285
|
+
} catch (l) {
|
|
286
|
+
console.debug("Custom element registration:", l);
|
|
287
|
+
}
|
|
284
288
|
});
|
|
285
|
-
const
|
|
289
|
+
const se = ({
|
|
286
290
|
formData: a,
|
|
287
|
-
cssLink:
|
|
288
|
-
}) => (
|
|
289
|
-
typeof window < "u" && !customElements.get("encatch-app") && import("./web-form-engine-core.umd-BsgK5u9q.js").then((l) => l.w).then(({ EncatchAppElement: l }) => {
|
|
290
|
-
customElements.define("encatch-app", l);
|
|
291
|
-
});
|
|
292
|
-
}, []), /* @__PURE__ */ ae.jsx("encatch-app", { ...a, cssLink: f }));
|
|
291
|
+
cssLink: l
|
|
292
|
+
}) => /* @__PURE__ */ oe.jsx("encatch-app", { ...a, cssLink: l });
|
|
293
293
|
export {
|
|
294
|
-
|
|
294
|
+
se as EncatchPreview
|
|
295
295
|
};
|