@streamlayer/react-ui 0.100.4 → 1.0.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.
Files changed (101) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/index.d.ts +1 -4
  3. package/lib/index.js +4 -4
  4. package/lib/{ui/app/Notifications/Onboarding/index.js → mastersLogoSolid-B4Dz-vm1.js} +2 -169
  5. package/lib/ui/app/{Features → app/Features}/FeatureProvider.js +13 -13
  6. package/lib/ui/app/{Features → app/Features}/Gamification/Friends.js +2 -2
  7. package/lib/ui/app/{Features → app/Features}/Gamification/Leaderboard.d.ts +2 -2
  8. package/lib/ui/app/app/Features/Gamification/Leaderboard.js +55 -0
  9. package/lib/ui/app/app/Features/Gamification/Question.js +69 -0
  10. package/lib/ui/app/app/Features/Gamification/QuestionsList.js +11 -0
  11. package/lib/ui/app/{Features → app/Features}/Gamification/Tabs.d.ts +3 -3
  12. package/lib/ui/app/{Features → app/Features}/Gamification/Tabs.js +3 -3
  13. package/lib/ui/app/{Features → app/Features}/Gamification/UserSummary.js +1 -1
  14. package/lib/ui/app/{Features → app/Features}/Gamification/index.d.ts +3 -3
  15. package/lib/ui/app/app/Features/Gamification/index.js +88 -0
  16. package/lib/ui/app/{Features → app/Features}/index.d.ts +3 -3
  17. package/lib/ui/app/app/Navigation/index.d.ts +5 -0
  18. package/lib/ui/app/app/Navigation/index.js +42 -0
  19. package/lib/ui/app/app/Notifications/Onboarding/Notification/styles.js +50 -0
  20. package/lib/ui/app/{Notifications → app/Notifications}/Onboarding/index.d.ts +2 -2
  21. package/lib/ui/app/app/Notifications/Onboarding/index.js +172 -0
  22. package/lib/ui/app/{Notifications → app/Notifications}/index.d.ts +3 -3
  23. package/lib/ui/app/{Notifications → app/Notifications}/index.js +18 -18
  24. package/lib/ui/app/{Notifications → app/Notifications}/styles.js +9 -9
  25. package/lib/ui/app/{Points → app/Points}/index.js +1 -1
  26. package/lib/ui/app/app/index.d.ts +11 -0
  27. package/lib/ui/app/app/index.js +101 -0
  28. package/lib/ui/app/app/useApp.d.ts +19 -0
  29. package/lib/ui/app/app/useApp.js +45 -0
  30. package/lib/ui/app/app/useAppContext.d.ts +8 -0
  31. package/lib/ui/app/app/useAppContext.js +8 -0
  32. package/lib/ui/app/index.d.ts +7 -0
  33. package/lib/ui/app/index.js +1 -0
  34. package/lib/ui/app/masters/Features/FeatureProvider.d.ts +11 -0
  35. package/lib/ui/app/masters/Features/FeatureProvider.js +38 -0
  36. package/lib/ui/app/masters/Features/Gamification/Friends.d.ts +4 -0
  37. package/lib/ui/app/masters/Features/Gamification/Friends.js +19 -0
  38. package/lib/ui/app/masters/Features/Gamification/Leaderboard.d.ts +9 -0
  39. package/lib/ui/app/{Features → masters/Features}/Gamification/Leaderboard.js +7 -7
  40. package/lib/ui/app/masters/Features/Gamification/Question.d.ts +5 -0
  41. package/lib/ui/app/{Features → masters/Features}/Gamification/Question.js +10 -10
  42. package/lib/ui/app/masters/Features/Gamification/QuestionsList.d.ts +6 -0
  43. package/lib/ui/app/{Features → masters/Features}/Gamification/QuestionsList.js +1 -1
  44. package/lib/ui/app/masters/Features/Gamification/Tabs.d.ts +14 -0
  45. package/lib/ui/app/masters/Features/Gamification/Tabs.js +44 -0
  46. package/lib/ui/app/masters/Features/Gamification/UserSummary.d.ts +5 -0
  47. package/lib/ui/app/masters/Features/Gamification/UserSummary.js +18 -0
  48. package/lib/ui/app/masters/Features/Gamification/gamification-feature.d.ts +2 -0
  49. package/lib/ui/app/masters/Features/Gamification/gamification-feature.js +4 -0
  50. package/lib/ui/app/masters/Features/Gamification/index.d.ts +23 -0
  51. package/lib/ui/app/{Features → masters/Features}/Gamification/index.js +31 -31
  52. package/lib/ui/app/masters/Features/index.d.ts +24 -0
  53. package/lib/ui/app/masters/Features/index.js +37 -0
  54. package/lib/ui/app/{Navigation → masters/Navigation}/MastersNavigation/index.d.ts +4 -4
  55. package/lib/ui/app/{Navigation → masters/Navigation}/MastersNavigation/index.js +5 -5
  56. package/lib/ui/app/{Navigation → masters/Navigation}/index.d.ts +2 -2
  57. package/lib/ui/app/{Navigation → masters/Navigation}/index.js +2 -2
  58. package/lib/ui/app/masters/Notifications/Onboarding/Notification/index.d.ts +8 -0
  59. package/lib/ui/app/masters/Notifications/Onboarding/Notification/index.js +18 -0
  60. package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.d.ts +10 -0
  61. package/lib/ui/app/{Notifications → masters/Notifications}/Onboarding/Notification/styles.js +16 -16
  62. package/lib/ui/app/masters/Notifications/Onboarding/index.d.ts +14 -0
  63. package/lib/ui/app/masters/Notifications/Onboarding/index.js +172 -0
  64. package/lib/ui/app/masters/Notifications/index.d.ts +13 -0
  65. package/lib/ui/app/masters/Notifications/index.js +163 -0
  66. package/lib/ui/app/masters/Notifications/styles.d.ts +8 -0
  67. package/lib/ui/app/masters/Notifications/styles.js +31 -0
  68. package/lib/ui/app/masters/Points/index.d.ts +5 -0
  69. package/lib/ui/app/masters/Points/index.js +28 -0
  70. package/lib/ui/app/{masters.d.ts → masters/masters.d.ts} +1 -7
  71. package/lib/ui/app/{masters.js → masters/masters.js} +33 -31
  72. package/lib/ui/app/{useMastersApp.js → masters/useMastersApp.js} +2 -2
  73. package/lib/ui/app/useClipboardCopy.d.ts +1 -1
  74. package/lib/ui/app/useSdkScroll.d.ts +1 -1
  75. package/lib/ui/theme/MastersColors.d.ts +1 -0
  76. package/lib/ui/theme/MastersColors.js +15 -0
  77. package/lib/ui/theme/ThemeColors.js +1 -1
  78. package/lib/ui/theme/constants.d.ts +1 -1
  79. package/lib/ui/theme/constants.js +5 -5
  80. package/lib/ui/theme/masters-theme.d.ts +25 -0
  81. package/lib/ui/theme/masters-theme.js +96 -0
  82. package/lib/ui/theme/masters.d.ts +5 -0
  83. package/lib/ui/theme/masters.js +6 -0
  84. package/lib/ui/theme/theme.js +1 -1
  85. package/package.json +25 -20
  86. /package/lib/ui/app/{Features → app/Features}/FeatureProvider.d.ts +0 -0
  87. /package/lib/ui/app/{Features → app/Features}/Gamification/Friends.d.ts +0 -0
  88. /package/lib/ui/app/{Features → app/Features}/Gamification/Question.d.ts +0 -0
  89. /package/lib/ui/app/{Features → app/Features}/Gamification/QuestionsList.d.ts +0 -0
  90. /package/lib/ui/app/{Features → app/Features}/Gamification/UserSummary.d.ts +0 -0
  91. /package/lib/ui/app/{Features → app/Features}/Gamification/gamification-feature.d.ts +0 -0
  92. /package/lib/ui/app/{Features → app/Features}/Gamification/gamification-feature.js +0 -0
  93. /package/lib/ui/app/{Features → app/Features}/index.js +0 -0
  94. /package/lib/ui/app/{Notifications → app/Notifications}/Onboarding/Notification/index.d.ts +0 -0
  95. /package/lib/ui/app/{Notifications → app/Notifications}/Onboarding/Notification/index.js +0 -0
  96. /package/lib/ui/app/{Notifications → app/Notifications}/Onboarding/Notification/styles.d.ts +0 -0
  97. /package/lib/ui/app/{Notifications → app/Notifications}/styles.d.ts +0 -0
  98. /package/lib/ui/app/{Points → app/Points}/index.d.ts +0 -0
  99. /package/lib/ui/app/{useMastersApp.d.ts → masters/useMastersApp.d.ts} +0 -0
  100. /package/lib/ui/app/{useMastersContext.d.ts → masters/useMastersContext.d.ts} +0 -0
  101. /package/lib/ui/app/{useMastersContext.js → masters/useMastersContext.js} +0 -0
@@ -0,0 +1,25 @@
1
+ export declare const MASTERS_COLORS: {
2
+ PRIMARY_GREEN1: string;
3
+ PRIMARY_GREEN2: string;
4
+ PRIMARY_GREEN3: string;
5
+ PRIMARY_GREEN4: string;
6
+ SECONDARY_RED1: string;
7
+ SECONDARY_RED2: string;
8
+ SECONDARY_RED3: string;
9
+ SECONDARY_YELLOW: string;
10
+ SECONDARY_GREEN5: string;
11
+ SECONDARY_GREEN6: string;
12
+ NEUTRALS_WHITE: string;
13
+ NEUTRALS_GRAY1: string;
14
+ NEUTRALS_GRAY2: string;
15
+ NEUTRALS_GRAY3: string;
16
+ NEUTRALS_GRAY4: string;
17
+ NEUTRALS_GRAY5: string;
18
+ NEUTRALS_GRAY6: string;
19
+ NEUTRALS_GRAY7: string;
20
+ NEUTRALS_GRAY8: string;
21
+ NEUTRALS_GRAY9: string;
22
+ NEUTRALS_BLACK: string;
23
+ };
24
+ export declare const mastersThemeStr: string;
25
+ export declare const mastersTheme: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,96 @@
1
+ import { breakpoints as A } from "./breakpoints.js";
2
+ const T = {
3
+ BG_TRANSPARENT: "rgba(0,0,0, .8)",
4
+ BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
5
+ BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
6
+ BG_TRANSPARENT_ITEM_VOTE: "rgba(255, 255, 255, 0.1)",
7
+ BG_TRANSPARENT_ITEM_SUCCESS: "rgba(0, 139, 251, 0.2)",
8
+ BG_TRANSPARENT_ITEM_ERROR: "rgba(205, 37, 37, 0.2)",
9
+ BG_TRANSPARENT_VOTE_PROGRESS: "rgba(255, 255, 255, 0.2)",
10
+ BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS: "rgba(60, 139, 251, 0.5)",
11
+ BG_TRANSPARENT_VOTE_PROGRESS_ERROR: "rgba(205, 37, 37, 0.5)",
12
+ BG_TRANSPARENT_ONBOARDING_INAPP: "rgba(138, 159, 182, 0.2)",
13
+ LEADERBOARD_UNIT: "rgba(255, 255, 255, 0.5)",
14
+ BLUE_PRIMARY: "#1589EE",
15
+ RED_PRIMARY: "#CD2525",
16
+ RED_SECONDARY: "#EB5757",
17
+ BLUE_QUESTION_ACTION_BTN: "#1589ee",
18
+ WHITE: "#FFFFFF",
19
+ GREY_1: "#909395",
20
+ GREY_2: "#22262b",
21
+ GREY_3: "#2d3135",
22
+ GREY_4: "#53565a",
23
+ GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
24
+ BLACK_1: "#161a1f",
25
+ GREEN_1: "#F7B801",
26
+ RED_1: "#A30000",
27
+ RED_2: "#FF4170",
28
+ GREY_PRIMARY: "#909395",
29
+ DIVIDER_COLOR_SECONDARY: "#53565a",
30
+ GREEN_PRIMARY_BTN: "#009B77"
31
+ }, S = {
32
+ PRIMARY_GREEN1: "#107D57",
33
+ PRIMARY_GREEN2: "#006747",
34
+ PRIMARY_GREEN3: "#1C4932",
35
+ PRIMARY_GREEN4: "#193526",
36
+ SECONDARY_RED1: "#DF2F3B",
37
+ SECONDARY_RED2: "#BA0C2F",
38
+ SECONDARY_RED3: "#f9d6d8",
39
+ SECONDARY_YELLOW: "#fce300",
40
+ SECONDARY_GREEN5: "#C0DC8F",
41
+ SECONDARY_GREEN6: "#cee5de",
42
+ NEUTRALS_WHITE: "#FFFFFF",
43
+ NEUTRALS_GRAY1: "#F7F7F7",
44
+ NEUTRALS_GRAY2: "#F2F2F1",
45
+ NEUTRALS_GRAY3: "#E8E8E8",
46
+ NEUTRALS_GRAY4: "#D9D9D6",
47
+ NEUTRALS_GRAY5: "#B1B3B3",
48
+ NEUTRALS_GRAY6: "#888B8D",
49
+ NEUTRALS_GRAY7: "#6B6F73",
50
+ NEUTRALS_GRAY8: "#53565A",
51
+ NEUTRALS_GRAY9: "#25282A",
52
+ NEUTRALS_BLACK: "#000000"
53
+ }, _ = Object.assign({}, T, S), R = {
54
+ REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
55
+ SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
56
+ COLOR: "#fff",
57
+ WEIGHT_DEFAULT: "500"
58
+ }, a = Object.keys(_).reduce((e, E) => {
59
+ const N = _[E];
60
+ return `
61
+ ${e}
62
+ --color-${E.toLowerCase().replaceAll("_", "-")}: ${N};
63
+ `;
64
+ }, ""), r = `
65
+ ${a}
66
+ --font-family: ${R.REGULAR};
67
+ --font-regular: ${R.REGULAR};
68
+ --font-color: ${R.COLOR};
69
+ --font-serif: ${R.SERIF};
70
+ --font-weight-default: ${R.WEIGHT_DEFAULT};
71
+
72
+ --header-offset: 0px;
73
+ --header-height: 68px;
74
+ --watch-live-header: 0px;
75
+ --animation-duration: 0.5s;
76
+ --animation-function: ease;
77
+ --container-padding: 16px;
78
+ --border-radius: 8px;
79
+ --pill-offset: 0px;
80
+ --max-width: 600px;
81
+ --max-notifications-width: 400px;
82
+
83
+ ${A.down("xl")`
84
+ --header-offset: 56px;
85
+ --watch-live-header: 46px;
86
+ `}
87
+
88
+ ${A.intermediate("xl", "lg")`
89
+ --header-offset: 76px;
90
+ `}
91
+ `, G = "m1ojpy2l";
92
+ export {
93
+ S as MASTERS_COLORS,
94
+ G as mastersTheme,
95
+ r as mastersThemeStr
96
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StreamLayerMastersThemeProvider: React.FC<{
3
+ children: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }>;
@@ -0,0 +1,6 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { mastersTheme as a } from "./masters-theme.js";
3
+ const o = ({ children: r, style: m }) => /* @__PURE__ */ e("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ e("div", { className: a, style: m, children: r }) });
4
+ export {
5
+ o as StreamLayerMastersThemeProvider
6
+ };
@@ -10,7 +10,7 @@ const l = `
10
10
  --font-weight-default: ${t.WEIGHT_DEFAULT};
11
11
 
12
12
  --header-offset: 0px;
13
- --header-height: 68px;
13
+ --header-height: 0px;
14
14
  --watch-live-header: 0px;
15
15
  --animation-duration: 0.5s;
16
16
  --animation-function: ease;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.100.4",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -11,14 +11,19 @@
11
11
  "types": "./lib/index.d.ts"
12
12
  },
13
13
  "./masters": {
14
- "import": "./lib/ui/app/masters.js",
15
- "default": "./lib/ui/app/masters.js",
16
- "types": "./lib/ui/app/masters.d.ts"
14
+ "import": "./lib/ui/app/masters/masters.js",
15
+ "default": "./lib/ui/app/masters/masters.js",
16
+ "types": "./lib/ui/app/masters/masters.d.ts"
17
+ },
18
+ "./mastersPoints": {
19
+ "import": "./lib/ui/app/masters/Points/index.js",
20
+ "default": "./lib/ui/app/masters/Points/index.js",
21
+ "types": "./lib/ui/app/masters/Points/index.d.ts"
17
22
  },
18
23
  "./points": {
19
- "import": "./lib/ui/app/Points/index.js",
20
- "default": "./lib/ui/app/Points/index.js",
21
- "types": "./lib/ui/app/Points/index.d.ts"
24
+ "import": "./lib/ui/app/app/Points/index.js",
25
+ "default": "./lib/ui/app/app/Points/index.js",
26
+ "types": "./lib/ui/app/app/Points/index.d.ts"
22
27
  },
23
28
  "./*": {
24
29
  "import": "./lib/*/index.js",
@@ -44,18 +49,18 @@
44
49
  "react-virtualized-auto-sizer": "^1.0.24",
45
50
  "react-window": "^1.8.10",
46
51
  "react-window-infinite-loader": "^1.0.9",
47
- "@streamlayer/feature-gamification": "^0.41.3",
48
- "@streamlayer/sdk-web": "^0.33.7",
49
- "@streamlayer/sdk-web-analytics": "^0.2.3",
50
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.49",
51
- "@streamlayer/sdk-web-api": "^0.25.2",
52
- "@streamlayer/sdk-web-core": "^0.23.2",
53
- "@streamlayer/sdk-web-features": "^0.11.31",
54
- "@streamlayer/sdk-web-interfaces": "^0.22.2",
55
- "@streamlayer/sdk-web-logger": "^0.5.22",
56
- "@streamlayer/sdk-web-notifications": "^0.16.2",
57
- "@streamlayer/sdk-web-storage": "^0.4.9",
58
- "@streamlayer/sdk-web-types": "^0.23.4"
52
+ "@streamlayer/feature-gamification": "^1.0.0",
53
+ "@streamlayer/sdk-web-analytics": "^1.0.0",
54
+ "@streamlayer/sdk-web": "^1.0.0",
55
+ "@streamlayer/sdk-web-api": "^1.0.0",
56
+ "@streamlayer/sdk-web-core": "^1.0.0",
57
+ "@streamlayer/sdk-web-anonymous-auth": "^1.0.0",
58
+ "@streamlayer/sdk-web-features": "^1.0.0",
59
+ "@streamlayer/sdk-web-interfaces": "^1.0.0",
60
+ "@streamlayer/sdk-web-logger": "^1.0.0",
61
+ "@streamlayer/sdk-web-notifications": "^1.0.0",
62
+ "@streamlayer/sdk-web-storage": "^1.0.0",
63
+ "@streamlayer/sdk-web-types": "^1.0.0"
59
64
  },
60
65
  "nx": {
61
66
  "implicitDependencies": [
@@ -95,6 +100,6 @@
95
100
  "vite-plugin-svgr": "^4.2.0",
96
101
  "vite-svg-loader": "^5.1.0",
97
102
  "vite-tsconfig-paths": "^4.3.2",
98
- "@streamlayer/react": "^0.41.9"
103
+ "@streamlayer/react": "^1.0.0"
99
104
  }
100
105
  }
File without changes
File without changes