@wix/interact 2.5.0 → 2.5.1
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/cjs/index.js +1 -1
- package/dist/cjs/react.js +6 -6
- package/dist/cjs/react.js.map +1 -1
- package/dist/cjs/web.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/react.js +117 -126
- package/dist/es/react.js.map +1 -1
- package/dist/es/web.js +2 -2
- package/dist/{index-C79XXItl.mjs → index-C2yYG3we.mjs} +2 -2
- package/dist/{index-C79XXItl.mjs.map → index-C2yYG3we.mjs.map} +1 -1
- package/dist/{index-CVJ6Iq9s.js → index-D84f3ylM.js} +2 -2
- package/dist/{index-CVJ6Iq9s.js.map → index-D84f3ylM.js.map} +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/core/cssUtils.d.ts.map +1 -1
- package/dist/types/react/Interaction.d.ts +0 -1
- package/dist/types/react/Interaction.d.ts.map +1 -1
- package/docs/api/functions.md +3 -8
- package/docs/examples/entrance-animations.md +3 -3
- package/docs/integration/react.md +7 -8
- package/package.json +1 -1
- package/rules/full-lean.md +4 -33
- package/rules/integration.md +2 -29
- package/rules/viewenter.md +6 -35
- package/rules/viewprogress.md +1 -1
package/dist/es/react.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import W from "react";
|
|
2
|
-
import { b as cr, r as Oe } from "../index-
|
|
3
|
-
import { a as mr, g as Tr } from "../index-
|
|
2
|
+
import { b as cr, r as Oe } from "../index-C2yYG3we.mjs";
|
|
3
|
+
import { a as mr, g as Tr } from "../index-C2yYG3we.mjs";
|
|
4
4
|
var N = { exports: {} }, I = {};
|
|
5
5
|
var Ce;
|
|
6
6
|
function vr() {
|
|
7
7
|
if (Ce) return I;
|
|
8
8
|
Ce = 1;
|
|
9
|
-
var y = W, E = /* @__PURE__ */ Symbol.for("react.element"),
|
|
10
|
-
function
|
|
11
|
-
var c,
|
|
12
|
-
|
|
13
|
-
for (c in l) m.call(l, c) && !
|
|
14
|
-
if (
|
|
15
|
-
return { $$typeof: E, type:
|
|
9
|
+
var y = W, E = /* @__PURE__ */ Symbol.for("react.element"), w = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, x = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10
|
+
function O(b, l, h) {
|
|
11
|
+
var c, R = {}, C = null, Y = null;
|
|
12
|
+
h !== void 0 && (C = "" + h), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (Y = l.ref);
|
|
13
|
+
for (c in l) m.call(l, c) && !_.hasOwnProperty(c) && (R[c] = l[c]);
|
|
14
|
+
if (b && b.defaultProps) for (c in l = b.defaultProps, l) R[c] === void 0 && (R[c] = l[c]);
|
|
15
|
+
return { $$typeof: E, type: b, key: C, ref: Y, props: R, _owner: x.current };
|
|
16
16
|
}
|
|
17
|
-
return I.Fragment =
|
|
17
|
+
return I.Fragment = w, I.jsx = O, I.jsxs = O, I;
|
|
18
18
|
}
|
|
19
19
|
var $ = {};
|
|
20
20
|
var Se;
|
|
21
21
|
function dr() {
|
|
22
22
|
return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
-
var y = W, E = /* @__PURE__ */ Symbol.for("react.element"),
|
|
23
|
+
var y = W, E = /* @__PURE__ */ Symbol.for("react.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), O = /* @__PURE__ */ Symbol.for("react.provider"), b = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), C = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.offscreen"), Z = Symbol.iterator, we = "@@iterator";
|
|
24
24
|
function xe(e) {
|
|
25
25
|
if (e === null || typeof e != "object")
|
|
26
26
|
return null;
|
|
@@ -37,10 +37,10 @@ function dr() {
|
|
|
37
37
|
}
|
|
38
38
|
function je(e, r, t) {
|
|
39
39
|
{
|
|
40
|
-
var n = j.ReactDebugCurrentFrame,
|
|
41
|
-
|
|
42
|
-
var u = t.map(function(
|
|
43
|
-
return String(
|
|
40
|
+
var n = j.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
41
|
+
i !== "" && (r += "%s", t = t.concat([i]));
|
|
42
|
+
var u = t.map(function(o) {
|
|
43
|
+
return String(o);
|
|
44
44
|
});
|
|
45
45
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@ function dr() {
|
|
|
48
48
|
var ke = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Q;
|
|
49
49
|
Q = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
50
50
|
function $e(e) {
|
|
51
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e ===
|
|
51
|
+
return !!(typeof e == "string" || typeof e == "function" || e === m || e === _ || Ie || e === x || e === h || e === c || Ae || e === Y || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === O || e.$$typeof === b || e.$$typeof === l || // This needs to include all possible module reference object
|
|
52
52
|
// types supported by any Flight configuration anywhere since
|
|
53
53
|
// we don't know which Flight build this will end up being used
|
|
54
54
|
// with.
|
|
@@ -58,13 +58,13 @@ function dr() {
|
|
|
58
58
|
var n = e.displayName;
|
|
59
59
|
if (n)
|
|
60
60
|
return n;
|
|
61
|
-
var
|
|
62
|
-
return
|
|
61
|
+
var i = r.displayName || r.name || "";
|
|
62
|
+
return i !== "" ? t + "(" + i + ")" : t;
|
|
63
63
|
}
|
|
64
64
|
function ee(e) {
|
|
65
65
|
return e.displayName || "Context";
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function T(e) {
|
|
68
68
|
if (e == null)
|
|
69
69
|
return null;
|
|
70
70
|
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -74,34 +74,34 @@ function dr() {
|
|
|
74
74
|
switch (e) {
|
|
75
75
|
case m:
|
|
76
76
|
return "Fragment";
|
|
77
|
-
case
|
|
77
|
+
case w:
|
|
78
78
|
return "Portal";
|
|
79
|
-
case
|
|
79
|
+
case _:
|
|
80
80
|
return "Profiler";
|
|
81
|
-
case
|
|
81
|
+
case x:
|
|
82
82
|
return "StrictMode";
|
|
83
|
-
case
|
|
83
|
+
case h:
|
|
84
84
|
return "Suspense";
|
|
85
85
|
case c:
|
|
86
86
|
return "SuspenseList";
|
|
87
87
|
}
|
|
88
88
|
if (typeof e == "object")
|
|
89
89
|
switch (e.$$typeof) {
|
|
90
|
-
case
|
|
90
|
+
case b:
|
|
91
91
|
var r = e;
|
|
92
92
|
return ee(r) + ".Consumer";
|
|
93
|
-
case
|
|
93
|
+
case O:
|
|
94
94
|
var t = e;
|
|
95
95
|
return ee(t._context) + ".Provider";
|
|
96
96
|
case l:
|
|
97
97
|
return We(e, e.render, "ForwardRef");
|
|
98
|
-
case
|
|
98
|
+
case R:
|
|
99
99
|
var n = e.displayName || null;
|
|
100
|
-
return n !== null ? n :
|
|
101
|
-
case
|
|
102
|
-
var
|
|
100
|
+
return n !== null ? n : T(e.type) || "Memo";
|
|
101
|
+
case C: {
|
|
102
|
+
var i = e, u = i._payload, o = i._init;
|
|
103
103
|
try {
|
|
104
|
-
return
|
|
104
|
+
return T(o(u));
|
|
105
105
|
} catch {
|
|
106
106
|
return null;
|
|
107
107
|
}
|
|
@@ -109,14 +109,14 @@ function dr() {
|
|
|
109
109
|
}
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var S = Object.assign, F = 0, re, te, ne, ae, oe, ie, ue;
|
|
113
113
|
function se() {
|
|
114
114
|
}
|
|
115
115
|
se.__reactDisabledLog = !0;
|
|
116
116
|
function Ye() {
|
|
117
117
|
{
|
|
118
118
|
if (F === 0) {
|
|
119
|
-
re = console.log, te = console.info, ne = console.warn, ae = console.error,
|
|
119
|
+
re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
|
|
120
120
|
var e = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
@@ -145,25 +145,25 @@ function dr() {
|
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
148
|
-
log:
|
|
148
|
+
log: S({}, e, {
|
|
149
149
|
value: re
|
|
150
150
|
}),
|
|
151
|
-
info:
|
|
151
|
+
info: S({}, e, {
|
|
152
152
|
value: te
|
|
153
153
|
}),
|
|
154
|
-
warn:
|
|
154
|
+
warn: S({}, e, {
|
|
155
155
|
value: ne
|
|
156
156
|
}),
|
|
157
|
-
error:
|
|
157
|
+
error: S({}, e, {
|
|
158
158
|
value: ae
|
|
159
159
|
}),
|
|
160
|
-
group:
|
|
161
|
-
value: ie
|
|
162
|
-
}),
|
|
163
|
-
groupCollapsed: C({}, e, {
|
|
160
|
+
group: S({}, e, {
|
|
164
161
|
value: oe
|
|
165
162
|
}),
|
|
166
|
-
|
|
163
|
+
groupCollapsed: S({}, e, {
|
|
164
|
+
value: ie
|
|
165
|
+
}),
|
|
166
|
+
groupEnd: S({}, e, {
|
|
167
167
|
value: ue
|
|
168
168
|
})
|
|
169
169
|
});
|
|
@@ -177,8 +177,8 @@ function dr() {
|
|
|
177
177
|
if (q === void 0)
|
|
178
178
|
try {
|
|
179
179
|
throw Error();
|
|
180
|
-
} catch (
|
|
181
|
-
var n =
|
|
180
|
+
} catch (i) {
|
|
181
|
+
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
182
182
|
q = n && n[1] || "";
|
|
183
183
|
}
|
|
184
184
|
return `
|
|
@@ -200,33 +200,33 @@ function dr() {
|
|
|
200
200
|
}
|
|
201
201
|
var n;
|
|
202
202
|
B = !0;
|
|
203
|
-
var
|
|
203
|
+
var i = Error.prepareStackTrace;
|
|
204
204
|
Error.prepareStackTrace = void 0;
|
|
205
205
|
var u;
|
|
206
206
|
u = J.current, J.current = null, Ye();
|
|
207
207
|
try {
|
|
208
208
|
if (r) {
|
|
209
|
-
var
|
|
209
|
+
var o = function() {
|
|
210
210
|
throw Error();
|
|
211
211
|
};
|
|
212
|
-
if (Object.defineProperty(
|
|
212
|
+
if (Object.defineProperty(o.prototype, "props", {
|
|
213
213
|
set: function() {
|
|
214
214
|
throw Error();
|
|
215
215
|
}
|
|
216
216
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
217
217
|
try {
|
|
218
|
-
Reflect.construct(
|
|
218
|
+
Reflect.construct(o, []);
|
|
219
219
|
} catch (p) {
|
|
220
220
|
n = p;
|
|
221
221
|
}
|
|
222
|
-
Reflect.construct(e, [],
|
|
222
|
+
Reflect.construct(e, [], o);
|
|
223
223
|
} else {
|
|
224
224
|
try {
|
|
225
|
-
|
|
225
|
+
o.call();
|
|
226
226
|
} catch (p) {
|
|
227
227
|
n = p;
|
|
228
228
|
}
|
|
229
|
-
e.call(
|
|
229
|
+
e.call(o.prototype);
|
|
230
230
|
}
|
|
231
231
|
} else {
|
|
232
232
|
try {
|
|
@@ -247,19 +247,19 @@ function dr() {
|
|
|
247
247
|
if (s !== 1 || f !== 1)
|
|
248
248
|
do
|
|
249
249
|
if (s--, f--, f < 0 || a[s] !== d[f]) {
|
|
250
|
-
var
|
|
250
|
+
var g = `
|
|
251
251
|
` + a[s].replace(" at new ", " at ");
|
|
252
|
-
return e.displayName &&
|
|
252
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, g), g;
|
|
253
253
|
}
|
|
254
254
|
while (s >= 1 && f >= 0);
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
} finally {
|
|
259
|
-
B = !1, J.current = u, Le(), Error.prepareStackTrace =
|
|
259
|
+
B = !1, J.current = u, Le(), Error.prepareStackTrace = i;
|
|
260
260
|
}
|
|
261
|
-
var D = e ? e.displayName || e.name : "",
|
|
262
|
-
return typeof e == "function" && V.set(e,
|
|
261
|
+
var D = e ? e.displayName || e.name : "", P = D ? L(D) : "";
|
|
262
|
+
return typeof e == "function" && V.set(e, P), P;
|
|
263
263
|
}
|
|
264
264
|
function Me(e, r, t) {
|
|
265
265
|
return fe(e, !1);
|
|
@@ -276,7 +276,7 @@ function dr() {
|
|
|
276
276
|
if (typeof e == "string")
|
|
277
277
|
return L(e);
|
|
278
278
|
switch (e) {
|
|
279
|
-
case
|
|
279
|
+
case h:
|
|
280
280
|
return L("Suspense");
|
|
281
281
|
case c:
|
|
282
282
|
return L("SuspenseList");
|
|
@@ -285,12 +285,12 @@ function dr() {
|
|
|
285
285
|
switch (e.$$typeof) {
|
|
286
286
|
case l:
|
|
287
287
|
return Me(e.render);
|
|
288
|
-
case
|
|
288
|
+
case R:
|
|
289
289
|
return M(e.type, r, t);
|
|
290
|
-
case
|
|
291
|
-
var n = e,
|
|
290
|
+
case C: {
|
|
291
|
+
var n = e, i = n._payload, u = n._init;
|
|
292
292
|
try {
|
|
293
|
-
return M(u(
|
|
293
|
+
return M(u(i), r, t);
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
}
|
|
@@ -305,22 +305,22 @@ function dr() {
|
|
|
305
305
|
} else
|
|
306
306
|
ce.setExtraStackFrame(null);
|
|
307
307
|
}
|
|
308
|
-
function Ne(e, r, t, n,
|
|
308
|
+
function Ne(e, r, t, n, i) {
|
|
309
309
|
{
|
|
310
310
|
var u = Function.call.bind(A);
|
|
311
|
-
for (var
|
|
312
|
-
if (u(e,
|
|
311
|
+
for (var o in e)
|
|
312
|
+
if (u(e, o)) {
|
|
313
313
|
var a = void 0;
|
|
314
314
|
try {
|
|
315
|
-
if (typeof e[
|
|
316
|
-
var d = Error((n || "React class") + ": " + t + " type `" +
|
|
315
|
+
if (typeof e[o] != "function") {
|
|
316
|
+
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
317
317
|
throw d.name = "Invariant Violation", d;
|
|
318
318
|
}
|
|
319
|
-
a = e[
|
|
319
|
+
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
320
320
|
} catch (s) {
|
|
321
321
|
a = s;
|
|
322
322
|
}
|
|
323
|
-
a && !(a instanceof Error) && (U(
|
|
323
|
+
a && !(a instanceof Error) && (U(i), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), U(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, U(i), v("Failed %s type: %s", t, a.message), U(null));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -395,7 +395,7 @@ function dr() {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var Qe = function(e, r, t, n,
|
|
398
|
+
var Qe = function(e, r, t, n, i, u, o) {
|
|
399
399
|
var a = {
|
|
400
400
|
// This tag allows us to uniquely identify this as a React Element
|
|
401
401
|
$$typeof: E,
|
|
@@ -403,7 +403,7 @@ function dr() {
|
|
|
403
403
|
type: e,
|
|
404
404
|
key: r,
|
|
405
405
|
ref: t,
|
|
406
|
-
props:
|
|
406
|
+
props: o,
|
|
407
407
|
// Record the component responsible for creating this element.
|
|
408
408
|
_owner: u
|
|
409
409
|
};
|
|
@@ -421,25 +421,25 @@ function dr() {
|
|
|
421
421
|
configurable: !1,
|
|
422
422
|
enumerable: !1,
|
|
423
423
|
writable: !1,
|
|
424
|
-
value:
|
|
424
|
+
value: i
|
|
425
425
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
426
426
|
};
|
|
427
|
-
function er(e, r, t, n,
|
|
427
|
+
function er(e, r, t, n, i) {
|
|
428
428
|
{
|
|
429
|
-
var u,
|
|
430
|
-
t !== void 0 && (de(t), a = "" + t), Ke(r) && (de(r.key), a = "" + r.key), ze(r) && (d = r.ref, Xe(r,
|
|
429
|
+
var u, o = {}, a = null, d = null;
|
|
430
|
+
t !== void 0 && (de(t), a = "" + t), Ke(r) && (de(r.key), a = "" + r.key), ze(r) && (d = r.ref, Xe(r, i));
|
|
431
431
|
for (u in r)
|
|
432
|
-
A.call(r, u) && !Ge.hasOwnProperty(u) && (
|
|
432
|
+
A.call(r, u) && !Ge.hasOwnProperty(u) && (o[u] = r[u]);
|
|
433
433
|
if (e && e.defaultProps) {
|
|
434
434
|
var s = e.defaultProps;
|
|
435
435
|
for (u in s)
|
|
436
|
-
|
|
436
|
+
o[u] === void 0 && (o[u] = s[u]);
|
|
437
437
|
}
|
|
438
438
|
if (a || d) {
|
|
439
439
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
440
|
-
a && He(
|
|
440
|
+
a && He(o, f), d && Ze(o, f);
|
|
441
441
|
}
|
|
442
|
-
return Qe(e, a, d,
|
|
442
|
+
return Qe(e, a, d, i, n, pe.current, o);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
var z = j.ReactCurrentOwner, be = j.ReactDebugCurrentFrame;
|
|
@@ -458,7 +458,7 @@ function dr() {
|
|
|
458
458
|
function Ee() {
|
|
459
459
|
{
|
|
460
460
|
if (z.current) {
|
|
461
|
-
var e =
|
|
461
|
+
var e = T(z.current.type);
|
|
462
462
|
if (e)
|
|
463
463
|
return `
|
|
464
464
|
|
|
@@ -493,7 +493,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
493
493
|
return;
|
|
494
494
|
_e[t] = !0;
|
|
495
495
|
var n = "";
|
|
496
|
-
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " +
|
|
496
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), k(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
function ye(e, r) {
|
|
@@ -508,10 +508,10 @@ Check the top-level render call using <` + t + ">.");
|
|
|
508
508
|
else if (X(e))
|
|
509
509
|
e._store && (e._store.validated = !0);
|
|
510
510
|
else if (e) {
|
|
511
|
-
var
|
|
512
|
-
if (typeof
|
|
513
|
-
for (var u =
|
|
514
|
-
X(
|
|
511
|
+
var i = xe(e);
|
|
512
|
+
if (typeof i == "function" && i !== e.entries)
|
|
513
|
+
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
514
|
+
X(o.value) && he(o.value, r);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -525,17 +525,17 @@ Check the top-level render call using <` + t + ">.");
|
|
|
525
525
|
t = r.propTypes;
|
|
526
526
|
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
|
|
527
527
|
// Inner props are checked in the reconciler.
|
|
528
|
-
r.$$typeof ===
|
|
528
|
+
r.$$typeof === R))
|
|
529
529
|
t = r.propTypes;
|
|
530
530
|
else
|
|
531
531
|
return;
|
|
532
532
|
if (t) {
|
|
533
|
-
var n =
|
|
533
|
+
var n = T(r);
|
|
534
534
|
Ne(t, e.props, "prop", n, e);
|
|
535
535
|
} else if (r.PropTypes !== void 0 && !K) {
|
|
536
536
|
K = !0;
|
|
537
|
-
var
|
|
538
|
-
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
537
|
+
var i = T(r);
|
|
538
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
539
539
|
}
|
|
540
540
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
541
541
|
}
|
|
@@ -553,57 +553,57 @@ Check the top-level render call using <` + t + ">.");
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
var me = {};
|
|
556
|
-
function Te(e, r, t, n,
|
|
556
|
+
function Te(e, r, t, n, i, u) {
|
|
557
557
|
{
|
|
558
|
-
var
|
|
559
|
-
if (!
|
|
558
|
+
var o = $e(e);
|
|
559
|
+
if (!o) {
|
|
560
560
|
var a = "";
|
|
561
561
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
562
562
|
var d = rr();
|
|
563
563
|
d ? a += d : a += Ee();
|
|
564
564
|
var s;
|
|
565
|
-
e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (
|
|
565
|
+
e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
566
566
|
}
|
|
567
|
-
var f = er(e, r, t,
|
|
567
|
+
var f = er(e, r, t, i, u);
|
|
568
568
|
if (f == null)
|
|
569
569
|
return f;
|
|
570
|
-
if (
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
570
|
+
if (o) {
|
|
571
|
+
var g = r.children;
|
|
572
|
+
if (g !== void 0)
|
|
573
573
|
if (n)
|
|
574
|
-
if (G(
|
|
575
|
-
for (var D = 0; D <
|
|
576
|
-
ye(
|
|
577
|
-
Object.freeze && Object.freeze(
|
|
574
|
+
if (G(g)) {
|
|
575
|
+
for (var D = 0; D < g.length; D++)
|
|
576
|
+
ye(g[D], e);
|
|
577
|
+
Object.freeze && Object.freeze(g);
|
|
578
578
|
} else
|
|
579
579
|
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
580
580
|
else
|
|
581
|
-
ye(
|
|
581
|
+
ye(g, e);
|
|
582
582
|
}
|
|
583
583
|
if (A.call(r, "key")) {
|
|
584
|
-
var
|
|
584
|
+
var P = T(e), p = Object.keys(r).filter(function(lr) {
|
|
585
585
|
return lr !== "key";
|
|
586
586
|
}), H = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
587
|
-
if (!me[
|
|
587
|
+
if (!me[P + H]) {
|
|
588
588
|
var fr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
|
589
589
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
590
590
|
let props = %s;
|
|
591
591
|
<%s {...props} />
|
|
592
592
|
React keys must be passed directly to JSX without using spread:
|
|
593
593
|
let props = %s;
|
|
594
|
-
<%s key={someKey} {...props} />`, H,
|
|
594
|
+
<%s key={someKey} {...props} />`, H, P, fr, P), me[P + H] = !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
return e === m ? ar(f) : nr(f), f;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function or(e, r, t) {
|
|
601
601
|
return Te(e, r, t, !0);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function ir(e, r, t) {
|
|
604
604
|
return Te(e, r, t, !1);
|
|
605
605
|
}
|
|
606
|
-
var ur =
|
|
606
|
+
var ur = ir, sr = or;
|
|
607
607
|
$.Fragment = m, $.jsx = ur, $.jsxs = sr;
|
|
608
608
|
})()), $;
|
|
609
609
|
}
|
|
@@ -619,29 +619,20 @@ function gr(y) {
|
|
|
619
619
|
};
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
const _r = W.forwardRef(function({ tagName: E, interactKey:
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
const
|
|
626
|
-
(
|
|
627
|
-
const
|
|
628
|
-
let
|
|
629
|
-
return
|
|
630
|
-
|
|
622
|
+
const _r = W.forwardRef(function({ tagName: E, interactKey: w, children: m, ...x }, _) {
|
|
623
|
+
const O = E, b = W.useRef(null);
|
|
624
|
+
b.current == null && (b.current = gr(w));
|
|
625
|
+
const l = W.useCallback(
|
|
626
|
+
(h) => {
|
|
627
|
+
const c = b.current?.(h);
|
|
628
|
+
let R;
|
|
629
|
+
return _ && (typeof _ == "function" ? R = _(h) : _.current = h), () => {
|
|
630
|
+
c?.(), R?.();
|
|
631
631
|
};
|
|
632
632
|
},
|
|
633
|
-
[
|
|
634
|
-
);
|
|
635
|
-
return /* @__PURE__ */ Rr.jsx(
|
|
636
|
-
h,
|
|
637
|
-
{
|
|
638
|
-
"data-interact-key": P,
|
|
639
|
-
"data-interact-initial": m ? "true" : void 0,
|
|
640
|
-
...x,
|
|
641
|
-
ref: T,
|
|
642
|
-
children: w
|
|
643
|
-
}
|
|
633
|
+
[_]
|
|
644
634
|
);
|
|
635
|
+
return /* @__PURE__ */ Rr.jsx(O, { "data-interact-key": w, ...x, ref: l, children: m });
|
|
645
636
|
});
|
|
646
637
|
export {
|
|
647
638
|
mr as Interact,
|