@streamlayer/react 0.37.1 → 0.38.0

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/lib/es/index2.js CHANGED
@@ -1,24 +1,25 @@
1
1
  import { jsx as N } from "react/jsx-runtime";
2
- import { createContext as s, useMemo as i } from "react";
3
- import { useStreamLayerApp as S } from "./useStreamLayerApp.js";
4
- var G = /* @__PURE__ */ ((R) => (R[R.UNSET = 0] = "UNSET", R[R.CONNECTED = 1] = "CONNECTED", R[R.READY = 2] = "READY", R))(G || {});
5
- const d = s({
2
+ import { createContext as i, useMemo as S } from "react";
3
+ import { useStreamLayerApp as G } from "./useStreamLayerApp.js";
4
+ var d = /* @__PURE__ */ ((R) => (R[R.UNSET = 0] = "UNSET", R[R.CONNECTED = 1] = "CONNECTED", R[R.READY = 2] = "READY", R))(d || {});
5
+ const O = i({
6
6
  status: 0,
7
7
  sdk: null
8
8
  }), I = ({
9
9
  sdkKey: R,
10
10
  plugins: E,
11
11
  children: e,
12
- production: r = !0,
13
- autoEnable: o = !0
12
+ production: _ = !0,
13
+ autoEnable: T = !0,
14
+ onDeepLinkHandled: a
14
15
  }) => {
15
- const _ = S(R, E, r, o), T = i(() => _ ? {
16
- sdk: _,
16
+ const t = G(R, E, _, T), s = S(() => t ? (a && t.onDeepLinkHandled(a), {
17
+ sdk: t,
17
18
  status: 2
18
19
  /* READY */
19
- } : { status: 1, sdk: null }, [_]);
20
- return /* @__PURE__ */ N(d.Provider, { value: T, children: e });
21
- }, O = {
20
+ }) : { status: 1, sdk: null }, [t]);
21
+ return /* @__PURE__ */ N(O.Provider, { value: s, children: e });
22
+ }, D = {
22
23
  BG_TRANSPARENT: "rgba(0,0,0, .8)",
23
24
  BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
24
25
  BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
@@ -47,7 +48,7 @@ const d = s({
47
48
  GREY_PRIMARY: "#909395",
48
49
  DIVIDER_COLOR_SECONDARY: "#53565a",
49
50
  GREEN_PRIMARY_BTN: "#009B77"
50
- }, D = {
51
+ }, c = {
51
52
  PRIMARY_GREEN1: "#107D57",
52
53
  PRIMARY_GREEN2: "#006747",
53
54
  PRIMARY_GREEN3: "#1C4932",
@@ -69,22 +70,22 @@ const d = s({
69
70
  NEUTRALS_GRAY8: "#53565A",
70
71
  NEUTRALS_GRAY9: "#25282A",
71
72
  NEUTRALS_BLACK: "#000000"
72
- }, a = Object.assign({}, O, D), A = {
73
+ }, o = Object.assign({}, D, c), A = {
73
74
  REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
74
75
  SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
75
76
  COLOR: "#fff",
76
77
  WEIGHT_DEFAULT: "500"
77
- }, t = {
78
+ }, r = {
78
79
  sm: 576,
79
80
  md: 768,
80
81
  lg: 992,
81
82
  xl: 1200,
82
83
  xxl: 1400
83
- }, c = {
84
+ }, B = {
84
85
  landscape: "landscape",
85
86
  portrait: "portrait"
86
- }, B = Object.keys(a).reduce((R, E) => {
87
- const e = a[E];
87
+ }, Y = Object.keys(o).reduce((R, E) => {
88
+ const e = o[E];
88
89
  return `
89
90
  ${R}
90
91
  --color-${E.toLowerCase().replaceAll("_", "-")}: ${e};
@@ -93,38 +94,38 @@ const d = s({
93
94
  @media only screen and (${R}) {
94
95
  ${E}
95
96
  }
96
- `, Y = (R, E) => (e) => `
97
+ `, l = (R, E) => (e) => `
97
98
  @media only screen and (${R}) and (${E}) {
98
99
  ${e}
99
100
  }
100
- `, l = {
101
+ `, C = {
101
102
  up: (R) => {
102
- const E = t[R];
103
+ const E = r[R];
103
104
  return n(`min-width: ${E}px`);
104
105
  },
105
106
  down: (R) => {
106
- const E = t[R] - 1;
107
+ const E = r[R] - 1;
107
108
  return n(`max-width: ${E}px`);
108
109
  },
109
110
  intermediate: (R, E) => {
110
- const e = t[R] - 1, r = t[E];
111
- return Y(`max-width: ${e}px`, `min-width: ${r}px`);
111
+ const e = r[R] - 1, _ = r[E];
112
+ return l(`max-width: ${e}px`, `min-width: ${_}px`);
112
113
  },
113
114
  orientation: (R) => {
114
- const E = c[R];
115
+ const E = B[R];
115
116
  return n(`orientation: ${E}`);
116
117
  }
117
118
  };
118
- `${B}${A.REGULAR}${A.REGULAR}${A.COLOR}${A.SERIF}${A.WEIGHT_DEFAULT}${l.down("xl")`
119
+ `${Y}${A.REGULAR}${A.REGULAR}${A.COLOR}${A.SERIF}${A.WEIGHT_DEFAULT}${C.down("xl")`
119
120
  --header-offset: 56px;
120
121
  `}`;
121
- const f = "StreamLayerCSSReset", C = "ttkj0ah", L = ({ children: R, style: E }) => /* @__PURE__ */ N("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ N("div", { className: C, style: E, children: R }) });
122
+ const L = "StreamLayerCSSReset", m = "ttkj0ah", P = ({ children: R, style: E }) => /* @__PURE__ */ N("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ N("div", { className: m, style: E, children: R }) });
122
123
  export {
123
- a as E,
124
- t as O,
124
+ o as E,
125
+ r as O,
125
126
  I as S,
126
- d as a,
127
- G as b,
128
- f as m,
129
- L as p
127
+ O as a,
128
+ d as b,
129
+ L as m,
130
+ P as p
130
131
  };
package/lib/es/masters.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./index2.js";
3
- import { M as d, e as f } from "./masters2.js";
3
+ import { M as c, f as d } from "./masters2.js";
4
4
  import "react";
5
5
  import "./useStreamLayerApp.js";
6
6
  import "@streamlayer/sdk-web";
@@ -12,6 +12,6 @@ import "react-countup";
12
12
  import "@streamlayer/sdk-web-notifications";
13
13
  import "lodash.throttle";
14
14
  export {
15
- d as MastersStreamLayerProvider,
16
- f as MastersStreamLayerSDKReact
15
+ c as MastersStreamLayerProvider,
16
+ d as MastersStreamLayerSDKReact
17
17
  };