@streamlayer/react 1.14.6 → 1.14.7
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/app/event.d.ts +3 -1
- package/lib/app/masters.d.ts +2 -0
- package/lib/cjs/advertisement.js +30 -30
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/masters2.js +9 -5
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/provider.js +16 -16
- package/lib/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/app/event.d.ts +3 -1
- package/lib/classic/app/masters.d.ts +2 -0
- package/lib/classic/cjs/advertisement.js +30 -30
- package/lib/classic/cjs/gamification-feature2.js +1 -1
- package/lib/classic/cjs/masters2.js +9 -5
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/provider.js +16 -16
- package/lib/classic/cjs/useStreamLayerApp2.js +2 -2
- package/lib/classic/es/advertisement.js +2584 -2561
- package/lib/classic/es/gamification-feature2.js +1 -1
- package/lib/classic/es/masters2.js +363 -337
- package/lib/classic/es/notification.js +19 -19
- package/lib/classic/es/provider.js +1928 -1909
- package/lib/classic/es/useStreamLayerApp2.js +4 -4
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +32 -28
- package/lib/dist/es/gamification-feature.js +1 -1
- package/lib/dist/es/gamification-feature2.js +1 -1
- package/lib/dist/es/masters.js +5933 -5894
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +2584 -2561
- package/lib/es/gamification-feature2.js +1 -1
- package/lib/es/masters2.js +363 -337
- package/lib/es/notification.js +19 -19
- package/lib/es/provider.js +1925 -1906
- package/lib/es/useStreamLayerApp2.js +4 -4
- package/lib/style.css +1 -1
- package/package.json +14 -14
package/lib/es/notification.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { k as u, s, X as L,
|
|
2
|
-
import { j as m, Q as A, k as
|
|
1
|
+
import { k as u, s, X as L, Y as O, _ as R, E as B, $ as P, V as Q, d as V, a as U, e as F, N as k, u as W, b as Y, W as _, h as G } from "./provider.js";
|
|
2
|
+
import { j as m, Q as A, k as K, S as X } from "./useStreamLayerApp2.js";
|
|
3
3
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import { useState as y, useCallback as
|
|
4
|
+
import { useState as y, useCallback as H, useMemo as E, useEffect as x } from "react";
|
|
5
5
|
const $ = /* @__PURE__ */ s("div")({
|
|
6
6
|
name: "Media",
|
|
7
7
|
class: "m1bcvojl",
|
|
8
8
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
9
|
+
}), J = () => $, Z = /* @__PURE__ */ s(J())({
|
|
10
10
|
name: "MediaImgBottom",
|
|
11
11
|
class: "m58gin0",
|
|
12
12
|
propsAsIs: !0
|
|
@@ -35,7 +35,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
35
35
|
[m.NONE]: N,
|
|
36
36
|
[m.ROUNDED]: ne,
|
|
37
37
|
[m.CENTERED]: oe,
|
|
38
|
-
[m.TRANSPARENT]:
|
|
38
|
+
[m.TRANSPARENT]: Z
|
|
39
39
|
}, b = ({
|
|
40
40
|
src: t,
|
|
41
41
|
imageMode: o = m.UNSET,
|
|
@@ -117,7 +117,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
117
117
|
{
|
|
118
118
|
questionTypeData: i,
|
|
119
119
|
questionType: o,
|
|
120
|
-
questionStatus:
|
|
120
|
+
questionStatus: K.UNSET
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
t && /* @__PURE__ */ e(pe, { children: t })
|
|
@@ -257,7 +257,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
257
257
|
var I, v;
|
|
258
258
|
d((v = (I = p == null ? void 0 : p[0]) == null ? void 0 : I.contentRect) == null ? void 0 : v.width);
|
|
259
259
|
});
|
|
260
|
-
})), r =
|
|
260
|
+
})), r = H((p) => {
|
|
261
261
|
p || l.disconnect(), l.observe(p);
|
|
262
262
|
}, [l]);
|
|
263
263
|
return E(() => () => {
|
|
@@ -292,35 +292,35 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
292
292
|
name: "Line",
|
|
293
293
|
class: "l16t1zr7",
|
|
294
294
|
propsAsIs: !1
|
|
295
|
-
}), We = () => g,
|
|
295
|
+
}), We = () => g, Ye = /* @__PURE__ */ s(We())({
|
|
296
296
|
name: "Line1",
|
|
297
297
|
class: "le78kvg",
|
|
298
298
|
propsAsIs: !0
|
|
299
|
-
}),
|
|
299
|
+
}), _e = () => g, Ge = /* @__PURE__ */ s(_e())({
|
|
300
300
|
name: "Line2",
|
|
301
301
|
class: "l1o7966d",
|
|
302
302
|
propsAsIs: !0
|
|
303
|
-
}),
|
|
303
|
+
}), Ke = () => g, Xe = /* @__PURE__ */ s(Ke())({
|
|
304
304
|
name: "Line3",
|
|
305
305
|
class: "lu9lyxq",
|
|
306
306
|
propsAsIs: !0
|
|
307
|
-
}),
|
|
308
|
-
children: [/* @__PURE__ */ e(
|
|
307
|
+
}), He = () => /* @__PURE__ */ c(Fe, {
|
|
308
|
+
children: [/* @__PURE__ */ e(Ye, {
|
|
309
309
|
children: /* @__PURE__ */ e("div", {})
|
|
310
|
-
}), /* @__PURE__ */ e(
|
|
310
|
+
}), /* @__PURE__ */ e(Ge, {
|
|
311
311
|
children: /* @__PURE__ */ e("div", {})
|
|
312
312
|
}), /* @__PURE__ */ e(Xe, {
|
|
313
313
|
children: /* @__PURE__ */ e("div", {})
|
|
314
314
|
})]
|
|
315
|
-
}),
|
|
315
|
+
}), Je = /* @__PURE__ */ s("div")({
|
|
316
316
|
name: "Container",
|
|
317
317
|
class: "c10jy6zf",
|
|
318
318
|
propsAsIs: !1
|
|
319
|
-
}),
|
|
319
|
+
}), Ze = () => u, es = /* @__PURE__ */ s(Ze())({
|
|
320
320
|
name: "CheckIcon",
|
|
321
321
|
class: "c1c7scay",
|
|
322
322
|
propsAsIs: !0
|
|
323
|
-
}), ss = () => /* @__PURE__ */ c(
|
|
323
|
+
}), ss = () => /* @__PURE__ */ c(Je, {
|
|
324
324
|
children: [/* @__PURE__ */ e(es, {
|
|
325
325
|
name: "icon-check"
|
|
326
326
|
}), " Prediction results are in!"]
|
|
@@ -428,7 +428,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
428
428
|
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ss, {}) }) });
|
|
429
429
|
let p = "pending";
|
|
430
430
|
return (r === 3 || r === 4) && (p = n ? "correct" : "incorrect"), /* @__PURE__ */ e(w, { onClick: () => o == null ? void 0 : o(), children: /* @__PURE__ */ c(q, { children: [
|
|
431
|
-
r !== 1 && /* @__PURE__ */ e(
|
|
431
|
+
r !== 1 && /* @__PURE__ */ e(He, {}, r),
|
|
432
432
|
/* @__PURE__ */ c(Ue, { state: p, step: r, answer: (a == null ? void 0 : a.title) || "unknown", children: [
|
|
433
433
|
r === 2 && /* @__PURE__ */ e(is, { title: l || "unknown" }),
|
|
434
434
|
r === 3 && n && /* @__PURE__ */ e(ls, {}),
|
|
@@ -475,8 +475,8 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
475
475
|
}
|
|
476
476
|
) : null : n && n.type === k.ONBOARDING ? n.data.onboarding ? /* @__PURE__ */ e(je, { open: a == null ? void 0 : a.openFeature, close: n.close, ...n.data.onboarding }) : null : n && /* @__PURE__ */ e(Te, { ...n.data, action: n.action });
|
|
477
477
|
}, bs = ({ theme: t }) => {
|
|
478
|
-
const o = W(), i =
|
|
479
|
-
return o && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(
|
|
478
|
+
const o = W(), i = Y(), a = _();
|
|
479
|
+
return o && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(G, { customTheme: t ?? i.theme, themeMode: i.themeMode, children: /* @__PURE__ */ e(fs, { sdk: o }) }) }) : null;
|
|
480
480
|
};
|
|
481
481
|
export {
|
|
482
482
|
bs as StreamLayerSDKNotification,
|