@streamlayer/react-ui 1.14.3 → 1.15.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/app/app/Features/Gamification/Leaderboard.js +9 -8
- package/lib/app/app/InApp/index.d.ts +4 -0
- package/lib/app/app/InApp/index.js +31 -0
- package/lib/app/app/Notifications/Onboarding/index.js +78 -72
- package/lib/app/app/story/index.d.ts +0 -1
- package/lib/app/app/story/index.js +39 -50
- package/lib/app/app/story/styles.d.ts +1 -0
- package/lib/app/app/story/styles.js +9 -4
- package/lib/app/app/story/video.js +28 -25
- package/lib/app/masters/Features/Gamification/Leaderboard.js +3 -2
- package/lib/assets/style.css +1 -1
- package/lib/ui/close-btn/index.d.ts +1 -1
- package/lib/ui/gamification/constants.d.ts +1 -0
- package/lib/ui/gamification/constants.js +11 -2
- package/lib/ui/gamification/points/index.js +7 -7
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.js +61 -0
- package/lib/ui/gamification/question/inapp/notification/index.d.ts +6 -0
- package/lib/ui/gamification/question/inapp/notification/index.js +38 -0
- package/lib/ui/gamification/question/inapp/notification/styles.d.ts +7 -0
- package/lib/ui/gamification/question/inapp/notification/styles.js +40 -0
- package/lib/ui/gamification/question/inapp/notification/tweet/index.d.ts +2 -0
- package/lib/ui/gamification/question/inapp/notification/tweet/index.js +24 -0
- package/lib/ui/gamification/question/inapp/notification/tweet/styles.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/notification/tweet/styles.js +24 -0
- package/lib/ui/gamification/question/inapp/onboarding/index.d.ts +5 -0
- package/lib/ui/gamification/question/inapp/onboarding/index.js +50 -0
- package/lib/ui/gamification/question/inapp/onboarding/styles.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/onboarding/styles.js +51 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.d.ts +6 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/content.js +57 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/index.d.ts +12 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/index.js +59 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/lines.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/lines.js +34 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step1.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step1.js +19 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step2.d.ts +3 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step2.js +26 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step3.d.ts +4 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step3.js +38 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step4.d.ts +3 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/step4.js +33 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.d.ts +3 -0
- package/lib/ui/gamification/question/inapp/prediction-result/frames/styles.js +20 -0
- package/lib/ui/gamification/question/inapp/prediction-result/index.d.ts +9 -0
- package/lib/ui/gamification/question/inapp/prediction-result/index.js +7 -0
- package/lib/ui/gamification/question/inapp/prediction-result/styles.d.ts +1 -0
- package/lib/ui/gamification/question/inapp/prediction-result/styles.js +9 -0
- package/lib/ui/gamification/question/index.d.ts +10 -1
- package/lib/ui/gamification/question/index.js +45 -36
- package/lib/ui/icons/index.d.ts +2 -3
- package/lib/ui/icons/index.js +72 -63
- package/lib/ui/questions/twitter/account/index.js +17 -17
- package/lib/ui/questions/twitter/index.d.ts +1 -0
- package/lib/ui/questions/twitter/index.js +2 -1
- package/lib/ui/theme/constants.d.ts +6 -0
- package/lib/ui/theme/constants.js +20 -14
- package/lib/ui/theme/index.d.ts +1 -0
- package/lib/ui/theme/index.js +4 -4
- package/lib/ui/theme/theme.js +2 -2
- package/lib/utils/decorators/container.js +10 -6
- package/lib/utils/decorators/styles.js +7 -2
- package/package.json +19 -14
|
@@ -55,6 +55,12 @@ export declare const COLORS: {
|
|
|
55
55
|
VOTE_BTN_NOT_SELECTED_BG_UNSET: string;
|
|
56
56
|
VOTED_ANSWER_BG: string;
|
|
57
57
|
VOTED_BTN_RCT_BG: string;
|
|
58
|
+
IN_APP_BG: string;
|
|
59
|
+
IN_APP_QUESTION_TYPE_ICON: string;
|
|
60
|
+
IN_APP_QUESTION_TYPE_LABEL: string;
|
|
61
|
+
IN_APP_QUESTION_QUOTE: string;
|
|
62
|
+
IN_APP_QUESTION_RESULT_SUBTITLE_BG: string;
|
|
63
|
+
IN_APP_QUESTION_RESULT_LINE: string;
|
|
58
64
|
};
|
|
59
65
|
export declare const COLORS_ADVERTISEMENT: {
|
|
60
66
|
BG_PRIMARY: string;
|
|
@@ -9,7 +9,7 @@ const R = {
|
|
|
9
9
|
PRIMARY_2: "#095CD1",
|
|
10
10
|
// hover, active, ...etc (darken 10%)
|
|
11
11
|
PRIMARY_TEXT: "#090E13",
|
|
12
|
-
SECONDARY_TEXT: "
|
|
12
|
+
SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
|
|
13
13
|
QUESTION_TYPE_ICON: "#1D7BFF",
|
|
14
14
|
SUCCESS: "#107D57",
|
|
15
15
|
UNSUCCESS: "#DF2F3B",
|
|
@@ -56,7 +56,13 @@ const R = {
|
|
|
56
56
|
VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
|
|
57
57
|
VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
|
|
58
58
|
VOTED_ANSWER_BG: "#FFFFFF",
|
|
59
|
-
VOTED_BTN_RCT_BG: "#2d5694"
|
|
59
|
+
VOTED_BTN_RCT_BG: "#2d5694",
|
|
60
|
+
IN_APP_BG: "rgba(255, 255, 255, 0.90)",
|
|
61
|
+
IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
|
|
62
|
+
IN_APP_QUESTION_TYPE_LABEL: "#82899E",
|
|
63
|
+
IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
|
|
64
|
+
IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
|
|
65
|
+
IN_APP_QUESTION_RESULT_LINE: "#babfc5"
|
|
60
66
|
}, F = {
|
|
61
67
|
BG_PRIMARY: "#13212b",
|
|
62
68
|
BG_SECONDARY: "#152430",
|
|
@@ -67,7 +73,7 @@ const R = {
|
|
|
67
73
|
TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
|
|
68
74
|
TEXT_SECONDARY1: "#878787",
|
|
69
75
|
WHITE: "#fff"
|
|
70
|
-
},
|
|
76
|
+
}, I = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], N = "#cee5de", O = "#f9d6d8", S = "#E8E8E8", D = {
|
|
71
77
|
REGULAR: "'SF Pro Text', Arial, Helvetica, sans-serif",
|
|
72
78
|
SERIF: "'SF Pro Display', Arial, Helvetica, sans-serif",
|
|
73
79
|
COLOR: "#fff",
|
|
@@ -80,17 +86,17 @@ const R = {
|
|
|
80
86
|
SIZE_DEFAULT2: "12px",
|
|
81
87
|
LINE_HEIGHT: "24px",
|
|
82
88
|
MARGIN_TITLE_DEFAULT: "24px 0px"
|
|
83
|
-
},
|
|
89
|
+
}, A = {
|
|
84
90
|
xs: 324,
|
|
85
91
|
sm: 576,
|
|
86
92
|
md: 768,
|
|
87
93
|
lg: 992,
|
|
88
94
|
xl: 1200,
|
|
89
95
|
xxl: 1440
|
|
90
|
-
},
|
|
96
|
+
}, B = {
|
|
91
97
|
landscape: "landscape",
|
|
92
98
|
portrait: "portrait"
|
|
93
|
-
},
|
|
99
|
+
}, C = Object.entries(R).reduce((E, [_, T]) => `
|
|
94
100
|
${E}
|
|
95
101
|
--color-${_.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
96
102
|
`, ""), L = Object.entries(F).reduce((E, [_, T]) => `
|
|
@@ -98,15 +104,15 @@ const R = {
|
|
|
98
104
|
--color-adv-${_.toLowerCase().replaceAll("_", "-")}: ${T};
|
|
99
105
|
`, "");
|
|
100
106
|
export {
|
|
101
|
-
|
|
107
|
+
A as BREAKPOINTS,
|
|
102
108
|
R as COLORS,
|
|
103
109
|
F as COLORS_ADVERTISEMENT,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
D as FONT,
|
|
111
|
+
B as ORIENTATION,
|
|
112
|
+
I as TIMER_COLORS,
|
|
113
|
+
S as TIMER_GRAY,
|
|
114
|
+
N as TIMER_GREEN,
|
|
115
|
+
O as TIMER_RED,
|
|
116
|
+
C as colors,
|
|
111
117
|
L as colorsAdvertisement
|
|
112
118
|
};
|
package/lib/ui/theme/index.d.ts
CHANGED
package/lib/ui/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { cx as
|
|
3
|
-
import { theme as
|
|
4
|
-
const
|
|
2
|
+
import { cx as t } from "@linaria/core";
|
|
3
|
+
import { theme as i } from "./theme.js";
|
|
4
|
+
const h = ({ children: r, customTheme: m, themeMode: o, style: a }) => /* @__PURE__ */ e("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ e("div", { className: t(i, o, m), style: a, children: r }) });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
h as StreamLayerThemeProvider
|
|
7
7
|
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -65,7 +65,7 @@ const l = `
|
|
|
65
65
|
--insight-image-ratio: 16/9;
|
|
66
66
|
|
|
67
67
|
--adv-side-indents: 16px;
|
|
68
|
-
--adv-top-indent:
|
|
68
|
+
--adv-top-indent: 12px;
|
|
69
69
|
--adv-header-height: 52px;
|
|
70
70
|
--adv-media-row-gap: 24px;
|
|
71
71
|
--adv-media-padding: 0 26.5px;
|
|
@@ -73,7 +73,7 @@ const l = `
|
|
|
73
73
|
--adv-sponsor-font-size: 16px;
|
|
74
74
|
--adv-header-border: 1px solid var(--color-adv-border-primary);
|
|
75
75
|
--adv-header-shift: 0;
|
|
76
|
-
--adv-media-shift:
|
|
76
|
+
--adv-media-shift: 24px;
|
|
77
77
|
--adv-hide-on-mobile: unset;
|
|
78
78
|
--adv-title-font-size: 24px;
|
|
79
79
|
--adv-description-font-size: 16px;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { StreamLayerThemeProvider as
|
|
3
|
-
import { AppContainer as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { StreamLayerThemeProvider as t } from "../../ui/theme/index.js";
|
|
3
|
+
import { BGContainer as i, AppContainer as m } from "./styles.js";
|
|
4
|
+
const l = (r, n) => {
|
|
5
|
+
const o = n.globals.theme || "light";
|
|
6
|
+
return /* @__PURE__ */ e(t, { themeMode: o, children: /* @__PURE__ */ e(r, {}) });
|
|
7
|
+
}, a = (r) => /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r, {}) }), s = (r) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(r, {}) }) }) });
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
a as bgContainer,
|
|
10
|
+
s as container,
|
|
11
|
+
l as theme
|
|
8
12
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { styled as s } from "@linaria/react";
|
|
2
|
-
const
|
|
2
|
+
const a = /* @__PURE__ */ s("div")({
|
|
3
3
|
name: "AppContainer",
|
|
4
4
|
class: "azqfrs3",
|
|
5
5
|
propsAsIs: !1
|
|
6
|
+
}), o = /* @__PURE__ */ s("div")({
|
|
7
|
+
name: "BGContainer",
|
|
8
|
+
class: "b1t42us",
|
|
9
|
+
propsAsIs: !1
|
|
6
10
|
});
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
a as AppContainer,
|
|
13
|
+
o as BGContainer
|
|
9
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"default": "./lib/app/app/Insight/index.js",
|
|
36
36
|
"types": "./lib/app/app/Insight/index.d.ts"
|
|
37
37
|
},
|
|
38
|
+
"./notification": {
|
|
39
|
+
"import": "./lib/app/app/InApp/index.js",
|
|
40
|
+
"default": "./lib/app/app/InApp/index.js",
|
|
41
|
+
"types": "./lib/app/app/InApp/index.d.ts"
|
|
42
|
+
},
|
|
38
43
|
"./*": {
|
|
39
44
|
"import": "./lib/*/index.js",
|
|
40
45
|
"default": "./lib/*/index.js",
|
|
@@ -59,18 +64,18 @@
|
|
|
59
64
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
60
65
|
"react-window": "^1.8.10",
|
|
61
66
|
"react-window-infinite-loader": "^1.0.9",
|
|
62
|
-
"@streamlayer/feature-gamification": "^1.
|
|
63
|
-
"@streamlayer/sdk-web": "^1.
|
|
64
|
-
"@streamlayer/sdk-web-analytics": "^1.5.
|
|
65
|
-
"@streamlayer/sdk-web-anonymous-auth": "^1.1.
|
|
66
|
-
"@streamlayer/sdk-web-api": "^1.6.
|
|
67
|
-
"@streamlayer/sdk-web-core": "^1.
|
|
68
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
69
|
-
"@streamlayer/sdk-web-interfaces": "^1.4.
|
|
70
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
71
|
-
"@streamlayer/sdk-web-notifications": "^1.
|
|
72
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
73
|
-
"@streamlayer/sdk-web-types": "^1.
|
|
67
|
+
"@streamlayer/feature-gamification": "^1.13.0",
|
|
68
|
+
"@streamlayer/sdk-web": "^1.7.0",
|
|
69
|
+
"@streamlayer/sdk-web-analytics": "^1.5.4",
|
|
70
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.1.17",
|
|
71
|
+
"@streamlayer/sdk-web-api": "^1.6.17",
|
|
72
|
+
"@streamlayer/sdk-web-core": "^1.9.0",
|
|
73
|
+
"@streamlayer/sdk-web-features": "^1.0.38",
|
|
74
|
+
"@streamlayer/sdk-web-interfaces": "^1.4.4",
|
|
75
|
+
"@streamlayer/sdk-web-logger": "^1.0.38",
|
|
76
|
+
"@streamlayer/sdk-web-notifications": "^1.3.0",
|
|
77
|
+
"@streamlayer/sdk-web-storage": "^1.0.38",
|
|
78
|
+
"@streamlayer/sdk-web-types": "^1.9.0"
|
|
74
79
|
},
|
|
75
80
|
"nx": {
|
|
76
81
|
"implicitDependencies": [
|
|
@@ -111,6 +116,6 @@
|
|
|
111
116
|
"vite-plugin-svgr": "^4.2.0",
|
|
112
117
|
"vite-svg-loader": "^5.1.0",
|
|
113
118
|
"vite-tsconfig-paths": "^5.0.1",
|
|
114
|
-
"@streamlayer/react": "^1.
|
|
119
|
+
"@streamlayer/react": "^1.10.0"
|
|
115
120
|
}
|
|
116
121
|
}
|