@wix/interact 2.4.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.
Files changed (47) hide show
  1. package/README.md +3 -0
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/react.js +6 -6
  4. package/dist/cjs/react.js.map +1 -1
  5. package/dist/cjs/web.js +1 -1
  6. package/dist/es/index.js +1 -1
  7. package/dist/es/react.js +117 -126
  8. package/dist/es/react.js.map +1 -1
  9. package/dist/es/web.js +2 -2
  10. package/dist/{index-C6u4q815.mjs → index-C2yYG3we.mjs} +232 -219
  11. package/dist/index-C2yYG3we.mjs.map +1 -0
  12. package/dist/{index-Qg46rn0Y.js → index-D84f3ylM.js} +8 -8
  13. package/dist/index-D84f3ylM.js.map +1 -0
  14. package/dist/tsconfig.build.tsbuildinfo +1 -1
  15. package/dist/types/core/css.d.ts.map +1 -1
  16. package/dist/types/core/cssUtils.d.ts.map +1 -1
  17. package/dist/types/core/resolvers.d.ts.map +1 -1
  18. package/dist/types/handlers/index.d.ts.map +1 -1
  19. package/dist/types/react/Interaction.d.ts +0 -1
  20. package/dist/types/react/Interaction.d.ts.map +1 -1
  21. package/dist/types/types/config.d.ts +1 -1
  22. package/dist/types/types/config.d.ts.map +1 -1
  23. package/dist/types/types/css.d.ts +1 -1
  24. package/dist/types/types/css.d.ts.map +1 -1
  25. package/dist/types/types/external.d.ts +1 -1
  26. package/dist/types/types/external.d.ts.map +1 -1
  27. package/dist/types/types/handlers.d.ts +0 -1
  28. package/dist/types/types/handlers.d.ts.map +1 -1
  29. package/dist/types/types/triggers.d.ts +1 -1
  30. package/dist/types/types/triggers.d.ts.map +1 -1
  31. package/docs/README.md +1 -0
  32. package/docs/api/README.md +7 -0
  33. package/docs/api/functions.md +3 -8
  34. package/docs/api/types.md +2 -3
  35. package/docs/examples/entrance-animations.md +3 -3
  36. package/docs/guides/README.md +1 -1
  37. package/docs/guides/configuration-structure.md +1 -1
  38. package/docs/guides/state-management.md +0 -41
  39. package/docs/integration/react.md +7 -8
  40. package/package.json +1 -1
  41. package/rules/full-lean.md +7 -36
  42. package/rules/integration.md +4 -31
  43. package/rules/validate.md +271 -0
  44. package/rules/viewenter.md +6 -35
  45. package/rules/viewprogress.md +1 -1
  46. package/dist/index-C6u4q815.mjs.map +0 -1
  47. package/dist/index-Qg46rn0Y.js.map +0 -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-C6u4q815.mjs";
3
- import { a as mr, g as Tr } from "../index-C6u4q815.mjs";
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"), P = /* @__PURE__ */ Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, w = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
10
- function g(h, l, T) {
11
- var c, b = {}, _ = null, Y = null;
12
- T !== void 0 && (_ = "" + T), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (Y = l.ref);
13
- for (c in l) m.call(l, c) && !x.hasOwnProperty(c) && (b[c] = l[c]);
14
- if (h && h.defaultProps) for (c in l = h.defaultProps, l) b[c] === void 0 && (b[c] = l[c]);
15
- return { $$typeof: E, type: h, key: _, ref: Y, props: b, _owner: w.current };
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 = P, I.jsx = g, I.jsxs = g, I;
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"), P = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), _ = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.offscreen"), Z = Symbol.iterator, we = "@@iterator";
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, o = n.getStackAddendum();
41
- o !== "" && (r += "%s", t = t.concat([o]));
42
- var u = t.map(function(i) {
43
- return String(i);
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 === x || Ie || e === w || e === T || e === c || Ae || e === Y || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === g || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
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 o = r.displayName || r.name || "";
62
- return o !== "" ? t + "(" + o + ")" : t;
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 O(e) {
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 P:
77
+ case w:
78
78
  return "Portal";
79
- case x:
79
+ case _:
80
80
  return "Profiler";
81
- case w:
81
+ case x:
82
82
  return "StrictMode";
83
- case T:
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 h:
90
+ case b:
91
91
  var r = e;
92
92
  return ee(r) + ".Consumer";
93
- case g:
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 b:
98
+ case R:
99
99
  var n = e.displayName || null;
100
- return n !== null ? n : O(e.type) || "Memo";
101
- case _: {
102
- var o = e, u = o._payload, i = o._init;
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 O(i(u));
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 C = Object.assign, F = 0, re, te, ne, ae, ie, oe, ue;
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, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
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: C({}, e, {
148
+ log: S({}, e, {
149
149
  value: re
150
150
  }),
151
- info: C({}, e, {
151
+ info: S({}, e, {
152
152
  value: te
153
153
  }),
154
- warn: C({}, e, {
154
+ warn: S({}, e, {
155
155
  value: ne
156
156
  }),
157
- error: C({}, e, {
157
+ error: S({}, e, {
158
158
  value: ae
159
159
  }),
160
- group: C({}, e, {
161
- value: ie
162
- }),
163
- groupCollapsed: C({}, e, {
160
+ group: S({}, e, {
164
161
  value: oe
165
162
  }),
166
- groupEnd: C({}, e, {
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 (o) {
181
- var n = o.stack.trim().match(/\n( *(at )?)/);
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 o = Error.prepareStackTrace;
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 i = function() {
209
+ var o = function() {
210
210
  throw Error();
211
211
  };
212
- if (Object.defineProperty(i.prototype, "props", {
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(i, []);
218
+ Reflect.construct(o, []);
219
219
  } catch (p) {
220
220
  n = p;
221
221
  }
222
- Reflect.construct(e, [], i);
222
+ Reflect.construct(e, [], o);
223
223
  } else {
224
224
  try {
225
- i.call();
225
+ o.call();
226
226
  } catch (p) {
227
227
  n = p;
228
228
  }
229
- e.call(i.prototype);
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 R = `
250
+ var g = `
251
251
  ` + a[s].replace(" at new ", " at ");
252
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, R), R;
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 = o;
259
+ B = !1, J.current = u, Le(), Error.prepareStackTrace = i;
260
260
  }
261
- var D = e ? e.displayName || e.name : "", S = D ? L(D) : "";
262
- return typeof e == "function" && V.set(e, S), S;
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 T:
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 b:
288
+ case R:
289
289
  return M(e.type, r, t);
290
- case _: {
291
- var n = e, o = n._payload, u = n._init;
290
+ case C: {
291
+ var n = e, i = n._payload, u = n._init;
292
292
  try {
293
- return M(u(o), r, t);
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, o) {
308
+ function Ne(e, r, t, n, i) {
309
309
  {
310
310
  var u = Function.call.bind(A);
311
- for (var i in e)
312
- if (u(e, i)) {
311
+ for (var o in e)
312
+ if (u(e, o)) {
313
313
  var a = void 0;
314
314
  try {
315
- if (typeof e[i] != "function") {
316
- var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
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[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
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(o), 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, i, typeof a), U(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, U(o), v("Failed %s type: %s", t, a.message), U(null));
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, o, u, i) {
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: i,
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: o
424
+ value: i
425
425
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
426
426
  };
427
- function er(e, r, t, n, o) {
427
+ function er(e, r, t, n, i) {
428
428
  {
429
- var u, i = {}, 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, o));
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) && (i[u] = r[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
- i[u] === void 0 && (i[u] = s[u]);
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(i, f), d && Ze(i, f);
440
+ a && He(o, f), d && Ze(o, f);
441
441
  }
442
- return Qe(e, a, d, o, n, pe.current, i);
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 = O(z.current.type);
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 " + O(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);
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 o = xe(e);
512
- if (typeof o == "function" && o !== e.entries)
513
- for (var u = o.call(e), i; !(i = u.next()).done; )
514
- X(i.value) && he(i.value, r);
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 === b))
528
+ r.$$typeof === R))
529
529
  t = r.propTypes;
530
530
  else
531
531
  return;
532
532
  if (t) {
533
- var n = O(r);
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 o = O(r);
538
- v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
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, o, u) {
556
+ function Te(e, r, t, n, i, u) {
557
557
  {
558
- var i = $e(e);
559
- if (!i) {
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 = "<" + (O(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);
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, o, u);
567
+ var f = er(e, r, t, i, u);
568
568
  if (f == null)
569
569
  return f;
570
- if (i) {
571
- var R = r.children;
572
- if (R !== void 0)
570
+ if (o) {
571
+ var g = r.children;
572
+ if (g !== void 0)
573
573
  if (n)
574
- if (G(R)) {
575
- for (var D = 0; D < R.length; D++)
576
- ye(R[D], e);
577
- Object.freeze && Object.freeze(R);
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(R, e);
581
+ ye(g, e);
582
582
  }
583
583
  if (A.call(r, "key")) {
584
- var S = O(e), p = Object.keys(r).filter(function(lr) {
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[S + H]) {
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, S, fr, S), me[S + H] = !0;
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 ir(e, r, t) {
600
+ function or(e, r, t) {
601
601
  return Te(e, r, t, !0);
602
602
  }
603
- function or(e, r, t) {
603
+ function ir(e, r, t) {
604
604
  return Te(e, r, t, !1);
605
605
  }
606
- var ur = or, sr = ir;
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: P, initial: m, children: w, ...x }, g) {
623
- const h = E, l = W.useRef(null);
624
- l.current == null && (l.current = gr(P));
625
- const T = W.useCallback(
626
- (c) => {
627
- const b = l.current?.(c);
628
- let _;
629
- return g && (typeof g == "function" ? _ = g(c) : g.current = c), () => {
630
- b?.(), _?.();
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
- [g]
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,