@streamlayer/react-ui 0.75.1 → 0.76.1

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 (39) hide show
  1. package/lib/assets/style.css +1 -1
  2. package/lib/ui/app/Features/Gamification/Question.js +41 -32
  3. package/lib/ui/app/Features/Gamification/QuestionsList.js +10 -2
  4. package/lib/ui/app/Features/Gamification/Tabs.js +15 -7
  5. package/lib/ui/app/Features/Gamification/gamification-feature.js +10 -0
  6. package/lib/ui/app/Features/Gamification/index.js +12 -2
  7. package/lib/ui/app/Notifications/index.js +4 -2
  8. package/lib/ui/app/masters.js +4 -2
  9. package/lib/ui/gamification/question/list/index.js +22 -10
  10. package/lib/ui/gamification/question/notification/index.js +13 -11
  11. package/lib/ui/gamification/question/notification/tweet/index.d.ts +1 -1
  12. package/lib/ui/gamification/question/notification/tweet/index.js +10 -18
  13. package/lib/ui/gamification/question/notification/tweet/styles.d.ts +0 -3
  14. package/lib/ui/gamification/question/notification/tweet/styles.js +10 -25
  15. package/lib/ui/gamification/question/twitter/index.d.ts +4 -2
  16. package/lib/ui/gamification/question/twitter/index.js +33 -9
  17. package/lib/ui/gamification/question/twitter/styles.d.ts +2 -0
  18. package/lib/ui/gamification/question/twitter/styles.js +16 -6
  19. package/lib/ui/gamification/vote/feedback/index.d.ts +4 -1
  20. package/lib/ui/gamification/vote/feedback/index.js +50 -29
  21. package/lib/ui/gamification/vote/index.js +86 -69
  22. package/lib/ui/gamification/vote/insight-details/styles.js +2 -2
  23. package/lib/ui/gamification/vote/twitter-details/index.d.ts +1 -1
  24. package/lib/ui/gamification/vote/twitter-details/index.js +28 -6
  25. package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -0
  26. package/lib/ui/gamification/vote/twitter-details/styles.js +12 -2
  27. package/lib/ui/gamification/vote/vote-option/index.d.ts +3 -0
  28. package/lib/ui/gamification/vote/vote-option/index.js +50 -45
  29. package/lib/ui/icons/index.d.ts +1 -0
  30. package/lib/ui/icons/index.js +14 -13
  31. package/lib/ui/questions/insight/styles.js +8 -8
  32. package/lib/ui/questions/twitter/account/index.js +15 -9
  33. package/lib/ui/questions/twitter/account/styles.d.ts +1 -0
  34. package/lib/ui/questions/twitter/account/styles.js +21 -13
  35. package/lib/ui/questions/twitter/index.d.ts +3 -6
  36. package/lib/ui/questions/twitter/index.js +8 -13
  37. package/lib/ui/questions/twitter/styles.d.ts +0 -3
  38. package/lib/ui/questions/twitter/styles.js +8 -23
  39. package/package.json +8 -8
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { AccountProps } from './account';
3
- export type TwitterContentProps = {
4
- title: string;
5
- image: string;
6
- body: string;
7
- account: AccountProps;
2
+ import { TweetHistory, FeedItem } from '@streamlayer/sdk-web-types';
3
+ export type TwitterContentProps = TweetHistory & {
4
+ created?: FeedItem['created'];
8
5
  };
9
6
  export declare const TwitterContent: React.FC<TwitterContentProps>;
@@ -1,19 +1,14 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { Account as m } from "./account/index.js";
3
- import { Container as c, DateTime as p, Quote as d, Details as s, Body as h, Image as l } from "./styles.js";
1
+ import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
+ import { Account as n } from "./account/index.js";
3
+ import { Container as p, Details as s, Body as d } from "./styles.js";
4
4
  import "../../icons/index.js";
5
5
  import "@linaria/react";
6
6
  import "react";
7
7
  import "./account/styles.js";
8
- const T = ({ title: o, image: t, body: e, account: n }) => /* @__PURE__ */ i(c, { children: [
9
- /* @__PURE__ */ r(p, { children: "Sun, Nov 14 · 3:52 PM" }),
10
- o && /* @__PURE__ */ r(d, { children: o }),
11
- /* @__PURE__ */ i(s, { children: [
12
- /* @__PURE__ */ r(m, { ...n }),
13
- /* @__PURE__ */ r(h, { children: e }),
14
- t && /* @__PURE__ */ r(l, { src: t })
15
- ] })
16
- ] });
8
+ const u = ({ image: i, body: o, account: t, accountVerified: e }) => /* @__PURE__ */ r(p, { children: /* @__PURE__ */ m(s, { children: [
9
+ /* @__PURE__ */ r(n, { image: i, name: t, userName: t, verified: e }),
10
+ /* @__PURE__ */ r(d, { children: o })
11
+ ] }) });
17
12
  export {
18
- T as TwitterContent
13
+ u as TwitterContent
19
14
  };
@@ -1,7 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const DateTime: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const Quote: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLQuoteElement> & import("react").BlockquoteHTMLAttributes<HTMLQuoteElement> & Record<never, unknown>>;
5
3
  export declare const Details: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
4
  export declare const Body: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
- export declare const Image: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
@@ -1,34 +1,19 @@
1
1
  import { styled as s } from "@linaria/react";
2
- const a = /* @__PURE__ */ s("div")({
2
+ const o = /* @__PURE__ */ s("div")({
3
3
  name: "Container",
4
4
  class: "c1kzqw87",
5
5
  propsAsIs: !1
6
- }), o = /* @__PURE__ */ s("div")({
7
- name: "DateTime",
8
- class: "d9r1hf9",
9
- propsAsIs: !1
10
- }), t = /* @__PURE__ */ s("blockquote")({
11
- name: "Quote",
12
- class: "qezygt5",
13
- propsAsIs: !1
14
- }), n = /* @__PURE__ */ s("div")({
6
+ }), a = /* @__PURE__ */ s("div")({
15
7
  name: "Details",
16
- class: "d1y8f7ym",
8
+ class: "d9r1hf9",
17
9
  propsAsIs: !1
18
- }), l = /* @__PURE__ */ s("div")({
10
+ }), t = /* @__PURE__ */ s("div")({
19
11
  name: "Body",
20
- class: "b18gwonx",
21
- propsAsIs: !1
22
- }), c = /* @__PURE__ */ s("img")({
23
- name: "Image",
24
- class: "i3g0xjd",
12
+ class: "bezygt5",
25
13
  propsAsIs: !1
26
14
  });
27
15
  export {
28
- l as Body,
29
- a as Container,
30
- o as DateTime,
31
- n as Details,
32
- c as Image,
33
- t as Quote
16
+ t as Body,
17
+ o as Container,
18
+ a as Details
34
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "0.75.1",
3
+ "version": "0.76.1",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -40,17 +40,17 @@
40
40
  "react-virtualized-auto-sizer": "^1.0.20",
41
41
  "react-window": "^1.8.9",
42
42
  "react-window-infinite-loader": "^1.0.9",
43
- "@streamlayer/feature-gamification": "^0.28.0",
44
- "@streamlayer/sdk-web": "^0.29.4",
45
- "@streamlayer/sdk-web-anonymous-auth": "^0.11.29",
43
+ "@streamlayer/feature-gamification": "^0.29.0",
44
+ "@streamlayer/sdk-web": "^0.29.5",
45
+ "@streamlayer/sdk-web-anonymous-auth": "^0.11.30",
46
46
  "@streamlayer/sdk-web-api": "^0.1.0",
47
- "@streamlayer/sdk-web-core": "^0.0.6",
48
- "@streamlayer/sdk-web-features": "^0.10.36",
47
+ "@streamlayer/sdk-web-features": "^0.10.37",
48
+ "@streamlayer/sdk-web-core": "^0.0.7",
49
49
  "@streamlayer/sdk-web-interfaces": "^0.0.1",
50
50
  "@streamlayer/sdk-web-notifications": "^0.1.0",
51
51
  "@streamlayer/sdk-web-storage": "^0.0.4",
52
52
  "@streamlayer/sdk-web-logger": "^0.0.1",
53
- "@streamlayer/sdk-web-types": "^0.0.1"
53
+ "@streamlayer/sdk-web-types": "^0.1.0"
54
54
  },
55
55
  "nx": {
56
56
  "implicitDependencies": [
@@ -90,6 +90,6 @@
90
90
  "vite-plugin-svgr": "^4.1.0",
91
91
  "vite-svg-loader": "^4.0.0",
92
92
  "vite-tsconfig-paths": "^4.2.1",
93
- "@streamlayer/react": "^0.32.6"
93
+ "@streamlayer/react": "^0.32.8"
94
94
  }
95
95
  }