@streamlayer/react-ui 1.32.4 → 1.33.2
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/app/Advertisement/index.js +14 -15
- package/lib/app/app/Features/Gamification/Leaderboard.js +46 -36
- package/lib/app/app/Features/Gamification/Question.js +42 -42
- package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +19 -25
- package/lib/app/app/Features/Gamification/index.js +29 -28
- package/lib/app/app/Notifications/Onboarding/index.js +45 -42
- package/lib/app/app/story/index.js +24 -24
- package/lib/app/app/story/insight/index.js +14 -15
- package/lib/app/app/story/insight/video.js +3 -3
- package/lib/app/app/story/promotion/content.js +5 -5
- package/lib/app/app/story/promotion/index.d.ts +1 -0
- package/lib/app/app/story/promotion/index.js +24 -25
- package/lib/app/app/story/promotion/video.d.ts +0 -1
- package/lib/app/app/story/promotion/video.js +41 -43
- package/lib/app/app/story/promotion-notification/index.js +15 -16
- package/lib/app/app/story/promotion-notification/video.d.ts +0 -1
- package/lib/app/app/story/promotion-notification/video.js +22 -30
- package/lib/app/app/story/settings/index.js +6 -6
- package/lib/app/app/story/settings/login.js +1 -1
- package/lib/app/app/story/video.js +28 -28
- package/lib/app/login/demo.js +19 -18
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +17 -17
- package/lib/app/masters/Notifications/Onboarding/index.js +42 -39
- package/lib/app/masters/masters.d.ts +1 -0
- package/lib/app/masters/masters.js +34 -32
- package/lib/app/masters/provider.d.ts +4 -0
- package/lib/app/masters/provider.js +23 -0
- package/lib/app/masters/story/components.js +48 -52
- package/lib/app/masters/story/index.js +16 -15
- package/lib/app/tgl/index.d.ts +1 -0
- package/lib/app/tgl/index.js +19 -20
- package/lib/app/tgl/video.d.ts +0 -1
- package/lib/app/tgl/video.js +40 -42
- package/lib/app/webos/ExposedPauseAd/PauseAd.js +68 -68
- package/lib/app/webos/story.js +26 -26
- package/lib/app/webos/ui/Sidebar/styles.js +82 -888
- package/lib/assets/style.css +1 -1
- package/lib/core/app.d.ts +7 -0
- package/lib/core/app.js +14 -0
- package/lib/core/event.d.ts +6 -0
- package/lib/core/event.js +5 -0
- package/lib/core/hooks.d.ts +16 -0
- package/lib/core/hooks.js +8 -0
- package/lib/core/provider.d.ts +49 -0
- package/lib/core/provider.js +9 -0
- package/lib/hooks-B0Qttldg.js +99 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -4
- package/lib/ui/advertisement/banner/index.d.ts +2 -2
- package/lib/ui/advertisement/notification/lower-third/index.js +34 -30
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +100 -33212
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +13 -13
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +63 -204
- package/lib/ui/gamification/leaderboard/static.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +1 -1
- package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +1 -1
- package/lib/ui/icons/index.d.ts +198 -66
- package/lib/ui/video-player/index.js +26 -23
- package/lib/useStreamLayerApp.d.ts +23 -0
- package/lib/useStreamLayerApp.js +167 -0
- package/lib/utils/debug/index.js +8 -8
- package/package.json +42 -35
- package/lib/index-l-eyvmpL.js +0 -3758
- package/lib/utils/createDemo.d.ts +0 -12
- package/lib/utils/createDemo.js +0 -49
- package/lib/vast-client.min-B0NUra1B.js +0 -1060
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StoryObj, StoryFn } from '@storybook/react';
|
|
2
|
-
import { StreamLayerSDK } from '@streamlayer/sdk-web-interfaces';
|
|
3
|
-
type Props = {
|
|
4
|
-
SDK_KEY?: string;
|
|
5
|
-
production?: boolean;
|
|
6
|
-
};
|
|
7
|
-
type DemoStory = React.FC<Props>;
|
|
8
|
-
export declare function createDemo<T>(Component: React.FC<{
|
|
9
|
-
Story: StoryFn<T>;
|
|
10
|
-
sdk: StreamLayerSDK;
|
|
11
|
-
}>, autoEnable?: boolean): StoryObj<DemoStory>;
|
|
12
|
-
export {};
|
package/lib/utils/createDemo.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as g, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as p, useState as c, useEffect as E } from "react";
|
|
3
|
-
import { useStreamLayerApp as l } from "@streamlayer/react/useStreamLayerApp";
|
|
4
|
-
import { anonymous as D } from "@streamlayer/sdk-web-anonymous-auth";
|
|
5
|
-
import { Developer as w } from "./debug/components/developer.js";
|
|
6
|
-
import { DeveloperStorage as x } from "./storage.js";
|
|
7
|
-
function K({
|
|
8
|
-
Component: o,
|
|
9
|
-
Story: r,
|
|
10
|
-
args: n,
|
|
11
|
-
autoEnable: a
|
|
12
|
-
}) {
|
|
13
|
-
const s = p(() => new x(), []), [i, f] = c(s.getEnv()), [d, v] = c(s.getSdkKey() || "set-sdk-key"), [m, k] = c(s.getEvent() || ""), S = p(() => {
|
|
14
|
-
const u = /* @__PURE__ */ new Set();
|
|
15
|
-
return u.add(D), u;
|
|
16
|
-
}, []), e = l({
|
|
17
|
-
sdkKey: d,
|
|
18
|
-
plugins: S,
|
|
19
|
-
production: i === "production",
|
|
20
|
-
autoEnable: a
|
|
21
|
-
});
|
|
22
|
-
return E(() => {
|
|
23
|
-
m && e && e.createEventSession(m);
|
|
24
|
-
}, [e]), /* @__PURE__ */ g(y, { children: [
|
|
25
|
-
e ? /* @__PURE__ */ t(o, { Story: r, sdk: e, args: n }) : /* @__PURE__ */ t("div", { children: "wait sdk..." }),
|
|
26
|
-
/* @__PURE__ */ t(
|
|
27
|
-
w,
|
|
28
|
-
{
|
|
29
|
-
sdk: e,
|
|
30
|
-
sdkKey: d,
|
|
31
|
-
setSdkKey: v,
|
|
32
|
-
env: i,
|
|
33
|
-
setEnv: f,
|
|
34
|
-
event: m,
|
|
35
|
-
setEvent: k
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
] });
|
|
39
|
-
}
|
|
40
|
-
function b(o, r = !0) {
|
|
41
|
-
return {
|
|
42
|
-
decorators: [
|
|
43
|
-
(n) => /* @__PURE__ */ t(K, { Story: n, Component: o, autoEnable: r })
|
|
44
|
-
]
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
b as createDemo
|
|
49
|
-
};
|