@streamlayer/react 1.24.6 → 1.24.8

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 (155) hide show
  1. package/lib/cjs/advertisement.js +19606 -203
  2. package/lib/cjs/auth.js +4459 -1
  3. package/lib/cjs/bet-pack.js +15690 -1
  4. package/lib/cjs/index.js +19410 -1
  5. package/lib/cjs/insight.js +13508 -1
  6. package/lib/cjs/masters.js +20695 -1
  7. package/lib/cjs/notification.js +13086 -1
  8. package/lib/cjs/package.json +1 -0
  9. package/lib/cjs/pause-ad.js +8390 -1
  10. package/lib/cjs/points.js +7188 -1
  11. package/lib/cjs/polyfills.js +69 -0
  12. package/lib/cjs/polymarket.js +16394 -14
  13. package/lib/cjs/style.css +1 -0
  14. package/lib/cjs/useStreamLayerApp.js +4711 -1
  15. package/lib/dist/cjs/index.js +20695 -1
  16. package/lib/dist/es/index.js +20668 -10
  17. package/lib/dist/es/polyfills.js +92 -0
  18. package/lib/es/advertisement.js +2821 -2746
  19. package/lib/es/analytics.js +1 -1
  20. package/lib/es/feature.js +60 -56
  21. package/lib/es/index10.js +181 -7
  22. package/lib/es/index11.js +371 -181
  23. package/lib/es/index12.js +19 -19
  24. package/lib/es/index13.js +44 -44
  25. package/lib/es/index14.js +30 -30
  26. package/lib/es/index15.js +384 -414
  27. package/lib/es/index16.js +66 -67
  28. package/lib/es/index2.js +35 -38
  29. package/lib/es/index3.js +34 -4
  30. package/lib/es/index4.js +3 -3
  31. package/lib/es/index5.js +270 -16
  32. package/lib/es/index6.js +0 -1
  33. package/lib/es/index8.js +236 -281
  34. package/lib/es/index9.js +8 -179
  35. package/lib/es/masters2.js +33 -34
  36. package/lib/es/notification.js +25 -25
  37. package/lib/es/points.js +10 -10
  38. package/lib/es/storage.js +14 -14
  39. package/lib/es/style.css +1 -0
  40. package/lib/es/useStreamLayerApp2.js +5654 -4604
  41. package/lib/source.css +1 -120
  42. package/package.json +99 -83
  43. package/lib/cjs/Question.js +0 -1
  44. package/lib/cjs/analytics.js +0 -1
  45. package/lib/cjs/feature.js +0 -1
  46. package/lib/cjs/gamification-feature.js +0 -1
  47. package/lib/cjs/gamification-feature2.js +0 -1
  48. package/lib/cjs/hooks-n9ax4LRT.js +0 -1
  49. package/lib/cjs/index-CfSdnrfA.js +0 -5
  50. package/lib/cjs/index10.js +0 -1
  51. package/lib/cjs/index11.js +0 -1
  52. package/lib/cjs/index12.js +0 -1
  53. package/lib/cjs/index13.js +0 -4
  54. package/lib/cjs/index14.js +0 -1
  55. package/lib/cjs/index15.js +0 -1
  56. package/lib/cjs/index16.js +0 -5
  57. package/lib/cjs/index2.js +0 -1
  58. package/lib/cjs/index3.js +0 -1
  59. package/lib/cjs/index4.js +0 -5
  60. package/lib/cjs/index5.js +0 -1
  61. package/lib/cjs/index6.js +0 -1
  62. package/lib/cjs/index7.js +0 -1
  63. package/lib/cjs/index8.js +0 -1
  64. package/lib/cjs/index9.js +0 -7
  65. package/lib/cjs/masters2.js +0 -8
  66. package/lib/cjs/storage.js +0 -1
  67. package/lib/cjs/theme.js +0 -1
  68. package/lib/cjs/useStreamLayerApp2.js +0 -17
  69. package/lib/cjs/utils.js +0 -47
  70. package/lib/classic/app/advertisement.d.ts +0 -19
  71. package/lib/classic/app/app.d.ts +0 -23
  72. package/lib/classic/app/auth.d.ts +0 -4
  73. package/lib/classic/app/bet-pack.d.ts +0 -10
  74. package/lib/classic/app/insight.d.ts +0 -13
  75. package/lib/classic/app/masters.d.ts +0 -19
  76. package/lib/classic/app/notification.d.ts +0 -5
  77. package/lib/classic/app/pause-ad.d.ts +0 -27
  78. package/lib/classic/app/points.d.ts +0 -3
  79. package/lib/classic/app/polymarket.d.ts +0 -7
  80. package/lib/classic/app/useStreamLayerApp.d.ts +0 -1
  81. package/lib/classic/cjs/Question.js +0 -1
  82. package/lib/classic/cjs/advertisement.js +0 -203
  83. package/lib/classic/cjs/analytics.js +0 -1
  84. package/lib/classic/cjs/auth.js +0 -1
  85. package/lib/classic/cjs/bet-pack.js +0 -5
  86. package/lib/classic/cjs/feature.js +0 -1
  87. package/lib/classic/cjs/gamification-feature.js +0 -1
  88. package/lib/classic/cjs/hooks-n9ax4LRT.js +0 -1
  89. package/lib/classic/cjs/index-CfSdnrfA.js +0 -5
  90. package/lib/classic/cjs/index.js +0 -1
  91. package/lib/classic/cjs/index10.js +0 -1
  92. package/lib/classic/cjs/index11.js +0 -1
  93. package/lib/classic/cjs/index12.js +0 -1
  94. package/lib/classic/cjs/index13.js +0 -4
  95. package/lib/classic/cjs/index2.js +0 -5
  96. package/lib/classic/cjs/index3.js +0 -1
  97. package/lib/classic/cjs/index4.js +0 -1
  98. package/lib/classic/cjs/index5.js +0 -1
  99. package/lib/classic/cjs/index6.js +0 -1
  100. package/lib/classic/cjs/index7.js +0 -7
  101. package/lib/classic/cjs/index8.js +0 -1
  102. package/lib/classic/cjs/index9.js +0 -1
  103. package/lib/classic/cjs/insight.js +0 -1
  104. package/lib/classic/cjs/notification.js +0 -1
  105. package/lib/classic/cjs/notification2.js +0 -1
  106. package/lib/classic/cjs/pause-ad.js +0 -1
  107. package/lib/classic/cjs/points.js +0 -1
  108. package/lib/classic/cjs/polymarket.js +0 -14
  109. package/lib/classic/cjs/useStreamLayerApp.js +0 -1
  110. package/lib/classic/cjs/useStreamLayerApp2.js +0 -17
  111. package/lib/classic/cjs/utils.js +0 -47
  112. package/lib/classic/es/Question.js +0 -503
  113. package/lib/classic/es/advertisement.js +0 -38792
  114. package/lib/classic/es/analytics.js +0 -84
  115. package/lib/classic/es/auth.js +0 -11
  116. package/lib/classic/es/bet-pack.js +0 -3418
  117. package/lib/classic/es/feature.js +0 -210
  118. package/lib/classic/es/gamification-feature.js +0 -4
  119. package/lib/classic/es/hooks-n9ax4LRT.js +0 -97
  120. package/lib/classic/es/index.js +0 -15
  121. package/lib/classic/es/index10.js +0 -321
  122. package/lib/classic/es/index11.js +0 -2592
  123. package/lib/classic/es/index12.js +0 -185
  124. package/lib/classic/es/index13.js +0 -820
  125. package/lib/classic/es/index2.js +0 -2605
  126. package/lib/classic/es/index3.js +0 -19
  127. package/lib/classic/es/index4.js +0 -6
  128. package/lib/classic/es/index5.js +0 -4
  129. package/lib/classic/es/index6.js +0 -285
  130. package/lib/classic/es/index7.js +0 -181
  131. package/lib/classic/es/index8.js +0 -7
  132. package/lib/classic/es/index9.js +0 -11
  133. package/lib/classic/es/insight.js +0 -79
  134. package/lib/classic/es/notification.js +0 -9
  135. package/lib/classic/es/notification2.js +0 -1126
  136. package/lib/classic/es/pause-ad.js +0 -232
  137. package/lib/classic/es/points.js +0 -76
  138. package/lib/classic/es/polymarket.js +0 -6617
  139. package/lib/classic/es/useStreamLayerApp.js +0 -4
  140. package/lib/classic/es/useStreamLayerApp2.js +0 -11627
  141. package/lib/classic/es/utils.js +0 -76
  142. package/lib/classic/index.d.ts +0 -6
  143. package/lib/classic/masters.d.ts +0 -8
  144. package/lib/classic/source.css +0 -110
  145. package/lib/dist/cjs/gamification-feature.js +0 -1
  146. package/lib/dist/cjs/index-CfSdnrfA.js +0 -5
  147. package/lib/dist/cjs/masters.js +0 -69
  148. package/lib/dist/es/gamification-feature.js +0 -4
  149. package/lib/dist/es/index-CfSdnrfA.js +0 -3775
  150. package/lib/dist/es/masters.js +0 -22387
  151. package/lib/dist/index.d.ts +0 -1357
  152. package/lib/dist/source.css +0 -64
  153. package/lib/es/index-CfSdnrfA.js +0 -3775
  154. package/lib/style.css +0 -1
  155. /package/lib/{classic/es/index-CfSdnrfA.js → es/index-D8wyDNJD.js} +0 -0
package/lib/es/index2.js CHANGED
@@ -2,21 +2,18 @@ import { h as ye } from "./index7.js";
2
2
  import { jsx as o, jsxs as v, Fragment as R } from "react/jsx-runtime";
3
3
  import { u as f, F as Ne, s as p, b as Se, c as w, a as T, N as M } from "./feature.js";
4
4
  import { l as we, S as $e, m as Ae, d as Ce, n as Ee, C as Re, y as xe, a as Le, f as V, p as De, c as Te } from "./index13.js";
5
- import { M as Oe, b as _e, Q as Me, z as me, c as he, T as fe, I as Be, n as Ue, f as Pe, w as Q, a as Fe, p as ze } from "./index16.js";
5
+ import { M as Oe, b as _e, Q as Me, z as me, c as he, T as fe, I as Ue, n as Be, f as Pe, w as Q, a as Fe, p as ze } from "./index16.js";
6
6
  import F from "lodash.throttle";
7
- import { useState as N, useEffect as I, useRef as E, PureComponent as Ve, useCallback as z, useMemo as $, Suspense as qe, lazy as je, forwardRef as ve, useLayoutEffect as Qe, useContext as K } from "react";
8
- import { A as L } from "./index9.js";
9
- import { f as ge, u as Ke, A as He, a as We } from "./analytics.js";
7
+ import { useState as N, useEffect as I, useRef as E, PureComponent as Ve, useCallback as z, useMemo as $, Suspense as qe, lazy as je, forwardRef as ve, useLayoutEffect as Qe, useContext as H } from "react";
8
+ import { A as L } from "./index8.js";
9
+ import { f as ge, u as He, A as Ke, a as We } from "./analytics.js";
10
10
  import { m as O } from "./theme.js";
11
- import "nanostores";
12
11
  import { p as q, _ as Ge, e as Je } from "./Question.js";
13
12
  import { O as Ze } from "./index12.js";
14
- import { B as x } from "./index8.js";
15
- import { I as Xe, S as y, f as C, h as H, Q as U } from "./useStreamLayerApp2.js";
13
+ import { H as x } from "./index5.js";
14
+ import { I as Xe, S as y, g as C, j as K, Q as B } from "./useStreamLayerApp2.js";
16
15
  import Ye from "react-infinite-scroller";
17
- import { I as et, s as tt, e as st } from "./index11.js";
18
- import "uuid";
19
- import "@nanostores/query";
16
+ import { I as et, s as tt, e as st } from "./index10.js";
20
17
  import "./storage.js";
21
18
  import "./index6.js";
22
19
  import { createPortal as nt } from "react-dom";
@@ -37,18 +34,18 @@ const J = Object.keys(L), Z = () => {
37
34
  name: t,
38
35
  size: L[t]
39
36
  };
40
- }, X = (e) => (e.current?.getBoundingClientRect().y || 0) < -68, B = () => window.matchMedia("(orientation: landscape)").matches, it = (e) => {
37
+ }, X = (e) => (e.current?.getBoundingClientRect().y || 0) < -68, U = () => window.matchMedia("(orientation: landscape)").matches, it = (e) => {
41
38
  const [t] = N(() => ge({
42
39
  screen: Z(),
43
40
  sdkInView: X(e),
44
- sdkInDesktopView: B()
41
+ sdkInDesktopView: U()
45
42
  }));
46
43
  return I(() => {
47
44
  const s = F(() => {
48
45
  t.setKey("sdkInView", X(e));
49
46
  }, 200), a = F(() => {
50
47
  const n = Z();
51
- t.setKey("screen", n), t.setKey("sdkInDesktopView", B());
48
+ t.setKey("screen", n), t.setKey("sdkInDesktopView", U());
52
49
  }, 200);
53
50
  return window.addEventListener("scroll", s), window.addEventListener("resize", a), () => {
54
51
  window.removeEventListener("scroll", s), window.removeEventListener("resize", a);
@@ -69,7 +66,7 @@ const J = Object.keys(L), Z = () => {
69
66
  })
70
67
  ), r = f(t);
71
68
  return I(() => {
72
- const d = B() ? s.current : window;
69
+ const d = U() ? s.current : window;
73
70
  if (!d)
74
71
  return () => {
75
72
  };
@@ -78,7 +75,7 @@ const J = Object.keys(L), Z = () => {
78
75
  if (!c)
79
76
  return;
80
77
  let u = 0;
81
- B() ? u = c.scrollTop : u = e.current?.getBoundingClientRect().y || 0;
78
+ U() ? u = c.scrollTop : u = e.current?.getBoundingClientRect().y || 0;
82
79
  const m = a.current - u;
83
80
  if (lt > Math.abs(m))
84
81
  return;
@@ -182,7 +179,7 @@ const Y = ({ title: e, active: t, onClick: s }) => /* @__PURE__ */ o(mt, { "data
182
179
  class: "awohrz6",
183
180
  propsAsIs: !0
184
181
  }), wt = ({ title: e, description: t, onClick: s, className: a }) => {
185
- const [n] = Ke({
182
+ const [n] = He({
186
183
  type: "invitation",
187
184
  action: "sent",
188
185
  payload: {
@@ -348,7 +345,7 @@ const xt = /* @__PURE__ */ p("div")({
348
345
  name: "Name",
349
346
  class: "njsrqgr",
350
347
  propsAsIs: !1
351
- }), Bt = () => x, Ut = /* @__PURE__ */ p(Bt())({
348
+ }), Ut = () => x, Bt = /* @__PURE__ */ p(Ut())({
352
349
  name: "CurrentUserBadge",
353
350
  class: "c17uc4zr",
354
351
  propsAsIs: !0
@@ -366,7 +363,7 @@ const xt = /* @__PURE__ */ p("div")({
366
363
  t ? /* @__PURE__ */ o(Dt, { alt: "leaderboard-item-avatar", src: t }) : /* @__PURE__ */ o(Tt, { children: et(s || "") }),
367
364
  /* @__PURE__ */ v(_t, { children: [
368
365
  /* @__PURE__ */ o(Mt, { children: s || "" }),
369
- r && /* @__PURE__ */ o(Ut, { name: "icon-star" })
366
+ r && /* @__PURE__ */ o(Bt, { name: "icon-star" })
370
367
  ] })
371
368
  ] }),
372
369
  /* @__PURE__ */ o("div", { children: tt(n) })
@@ -452,7 +449,7 @@ const xt = /* @__PURE__ */ p("div")({
452
449
  })
453
450
  }), m]
454
451
  });
455
- }, Kt = ({
452
+ }, Ht = ({
456
453
  gamification: e,
457
454
  scrollNode: t,
458
455
  scrollStore: s
@@ -461,7 +458,7 @@ const xt = /* @__PURE__ */ p("div")({
461
458
  gamification: e,
462
459
  scrollNode: t,
463
460
  scrollStore: s
464
- }) : null, Ht = ({ store: e, openQuestion: t, withPickHistory: s }) => {
461
+ }) : null, Kt = ({ store: e, openQuestion: t, withPickHistory: s }) => {
465
462
  const { sdk: a } = q(), n = f(e);
466
463
  return I(() => {
467
464
  s.set(!0);
@@ -505,7 +502,7 @@ const xt = /* @__PURE__ */ p("div")({
505
502
  c === D.HOME && /* @__PURE__ */ v(R, { children: [
506
503
  /* @__PURE__ */ o(Ae, { children: /* @__PURE__ */ o(Ce, { children: /* @__PURE__ */ o(Wt, { userSummary: e.userSummary }) }) }),
507
504
  /* @__PURE__ */ o(Ee, { style: { flex: 1 }, children: /* @__PURE__ */ o(
508
- Ht,
505
+ Kt,
509
506
  {
510
507
  openQuestion: e.openQuestion,
511
508
  store: e.feedList.getStore(),
@@ -513,7 +510,7 @@ const xt = /* @__PURE__ */ p("div")({
513
510
  }
514
511
  ) })
515
512
  ] }),
516
- c === D.LEADERBOARD && /* @__PURE__ */ o(Re, { children: /* @__PURE__ */ o(Kt, { scrollStore: s, scrollNode: a, gamification: e }) })
513
+ c === D.LEADERBOARD && /* @__PURE__ */ o(Re, { children: /* @__PURE__ */ o(Ht, { scrollStore: s, scrollNode: a, gamification: e }) })
517
514
  ] });
518
515
  }, Jt = () => V, te = /* @__PURE__ */ p(Jt())({
519
516
  name: "OpenedContainer",
@@ -529,7 +526,7 @@ const xt = /* @__PURE__ */ p("div")({
529
526
  }) => {
530
527
  const s = e + t;
531
528
  return s === 0 ? 0 : Math.round(e / s * 100);
532
- }, Dn = ({
529
+ }, Rn = ({
533
530
  gamification: e,
534
531
  scrollStore: t,
535
532
  className: s,
@@ -667,7 +664,7 @@ var ne;
667
664
  T("grpc:stream");
668
665
  C.Unknown, C.Internal, C.DeadlineExceeded, C.ResourceExhausted, C.FailedPrecondition, C.Unavailable, C.DataLoss;
669
666
  T("grpc:retry");
670
- H(10, { description: "Number of attempts to retry" }), H(3e4, { description: "Max delay between retries in milliseconds" });
667
+ K(10, { description: "Number of attempts to retry" }), K(3e4, { description: "Max delay between retries in milliseconds" });
671
668
  var S;
672
669
  (function(e) {
673
670
  e.SCHEMA = "schema", e.EXTERNAL_TOKEN = "eToken", e.TOKEN = "token";
@@ -723,7 +720,7 @@ var de;
723
720
  (function(e) {
724
721
  e.Unset = "unset", e.Required = "required", e.Optional = "optional", e.Completed = "completed", e.Disabled = "disabled", e.Unavailable = "unavailable";
725
722
  })(de || (de = {}));
726
- U.POLL, U.PREDICTION, U.TRIVIA;
723
+ B.POLL, B.PREDICTION, B.TRIVIA;
727
724
  const rs = {
728
725
  [y.GAMES]: !0
729
726
  }, is = /* @__PURE__ */ p("div")({
@@ -908,7 +905,7 @@ const rs = {
908
905
  name: "Description",
909
906
  class: "d8uezec",
910
907
  propsAsIs: !1
911
- }), Bs = /* @__PURE__ */ p("button")({
908
+ }), Us = /* @__PURE__ */ p("button")({
912
909
  name: "ActionButton",
913
910
  class: "a1h1bk90",
914
911
  propsAsIs: !1
@@ -920,7 +917,7 @@ const rs = {
920
917
  ] }),
921
918
  s?.titleCard?.title && /* @__PURE__ */ o(_s, { children: s?.titleCard?.title }),
922
919
  s?.titleCard?.subtitle && /* @__PURE__ */ o(Ms, { children: s?.titleCard?.subtitle }),
923
- /* @__PURE__ */ o(Bs, { "data-a": "intr", onClick: t, children: "Play Now" })
920
+ /* @__PURE__ */ o(Us, { "data-a": "intr", onClick: t, children: "Play Now" })
924
921
  ] }), ke = [{
925
922
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",
926
923
  tagline: "",
@@ -933,7 +930,7 @@ const rs = {
933
930
  }, {
934
931
  graphicSrc: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",
935
932
  headline: "Win points and play against friends."
936
- }], Us = /* @__PURE__ */ p("div")({
933
+ }], Bs = /* @__PURE__ */ p("div")({
937
934
  name: "OnboardingContainer",
938
935
  class: "o1xni1kr",
939
936
  propsAsIs: !1
@@ -973,8 +970,8 @@ const rs = {
973
970
  return () => {
974
971
  m();
975
972
  };
976
- }, [e.$store]), /* @__PURE__ */ v(Us, {
977
- children: [/* @__PURE__ */ o(Ue, {
973
+ }, [e.$store]), /* @__PURE__ */ v(Bs, {
974
+ children: [/* @__PURE__ */ o(Be, {
978
975
  loading: n,
979
976
  rules: [{
980
977
  label: "Answer as many questions as you like.",
@@ -1026,7 +1023,7 @@ const rs = {
1026
1023
  const {
1027
1024
  loading: k,
1028
1025
  throttled: A
1029
- } = Be(h);
1026
+ } = Ue(h);
1030
1027
  return c && m && i && n.current ? /* @__PURE__ */ o(fe, {
1031
1028
  container: n,
1032
1029
  useContainer: !r,
@@ -1079,7 +1076,7 @@ const rs = {
1079
1076
  name: "InnerContainer",
1080
1077
  class: "iqfywam",
1081
1078
  propsAsIs: !1
1082
- }), Ks = () => be, Hs = /* @__PURE__ */ p(Ks())({
1079
+ }), Hs = () => be, Ks = /* @__PURE__ */ p(Hs())({
1083
1080
  name: "HiddenContainer",
1084
1081
  class: "hokmtod",
1085
1082
  propsAsIs: !0
@@ -1132,7 +1129,7 @@ const rs = {
1132
1129
  } = q(), [l, i, c] = Zs(t.id);
1133
1130
  let u = i;
1134
1131
  return n || (u = "auto"), t.type === M.QUESTION ? /* @__PURE__ */ v(R, {
1135
- children: [/* @__PURE__ */ o(Hs, {
1132
+ children: [/* @__PURE__ */ o(Ks, {
1136
1133
  ref: l,
1137
1134
  children: /* @__PURE__ */ o(Q, {
1138
1135
  ...t
@@ -1312,7 +1309,7 @@ const rs = {
1312
1309
  activeFeature: h,
1313
1310
  isLogged: g
1314
1311
  } = sn(e), k = !!m;
1315
- He(r, {
1312
+ Ke(r, {
1316
1313
  enabled: k,
1317
1314
  event: "click",
1318
1315
  listener: We
@@ -1376,13 +1373,13 @@ const rs = {
1376
1373
  })]
1377
1374
  })
1378
1375
  });
1379
- }, Tn = ({ event: e, topNavigation: t, theme: s, muted: a, withSidebarNotification: n = !0 }) => {
1380
- const { sdk: r, status: d } = K(W), l = at(), i = rt(), { event: c } = K(W);
1376
+ }, xn = ({ event: e, topNavigation: t, theme: s, muted: a, withSidebarNotification: n = !0 }) => {
1377
+ const { sdk: r, status: d } = H(W), l = at(), i = rt(), { event: c } = H(W);
1381
1378
  if (d === G.UNSET)
1382
1379
  throw new Error("Wrap app in `StreamLayerProvider`");
1383
1380
  return d === G.CONNECTED ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: "wait" }) : r === null ? /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : !l.app && !l.appNotification && !l.appSidebar || !l.app && !l.appSidebar && l.appNotification && !n ? null : /* @__PURE__ */ o("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ o(ye, { customTheme: s ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ o(an, { sdk: r, muted: a, event: c?.current || e, topNavigation: t }) }) });
1384
1381
  };
1385
1382
  export {
1386
- Dn as B,
1387
- Tn as D
1383
+ Rn as B,
1384
+ xn as D
1388
1385
  };
package/lib/es/index3.js CHANGED
@@ -1,6 +1,36 @@
1
- import { E as e } from "./feature.js";
2
- import "nanostores";
3
- const s = new e();
1
+ import { E as s } from "./feature.js";
2
+ var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function f(e) {
4
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
+ }
6
+ function c(e) {
7
+ if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
8
+ var n = e.default;
9
+ if (typeof n == "function") {
10
+ var t = function o() {
11
+ var r = !1;
12
+ try {
13
+ r = this instanceof o;
14
+ } catch {
15
+ }
16
+ return r ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
17
+ };
18
+ t.prototype = n.prototype;
19
+ } else t = {};
20
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
21
+ var r = Object.getOwnPropertyDescriptor(e, o);
22
+ Object.defineProperty(t, o, r.get ? r : {
23
+ enumerable: !0,
24
+ get: function() {
25
+ return e[o];
26
+ }
27
+ });
28
+ }), t;
29
+ }
30
+ const l = new s();
4
31
  export {
5
- s as e
32
+ f as a,
33
+ a as c,
34
+ l as e,
35
+ c as g
6
36
  };
package/lib/es/index4.js CHANGED
@@ -2,10 +2,10 @@ import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
2
  import { s as _, u as Se, a as mt, c as Ee } from "./feature.js";
3
3
  import $, { forwardRef as Ae, useRef as D, useState as W, useEffect as X, useLayoutEffect as ht, createContext as je, useMemo as He, useCallback as Re, memo as gt } from "react";
4
4
  import vt from "lodash.throttle";
5
- import { B as te } from "./index8.js";
6
- import { d as wt } from "./index9.js";
5
+ import { H as te } from "./index5.js";
6
+ import { d as wt } from "./index8.js";
7
7
  import { Q as yt } from "./index13.js";
8
- import { e as bt, f as St, S as qe } from "./useStreamLayerApp2.js";
8
+ import { f as bt, g as St, S as qe } from "./useStreamLayerApp2.js";
9
9
  function _e(t) {
10
10
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
11
11
  }