@streamlayer/react-ui 0.90.0 → 0.91.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/assets/style.css +1 -1
- package/lib/ui/app/Features/Gamification/Friends.d.ts +1 -0
- package/lib/ui/app/Features/Gamification/Friends.js +12 -7
- package/lib/ui/app/Features/Gamification/Leaderboard.d.ts +1 -0
- package/lib/ui/app/Features/Gamification/Leaderboard.js +31 -35
- package/lib/ui/app/Features/Gamification/Tabs.d.ts +1 -0
- package/lib/ui/app/Features/Gamification/Tabs.js +34 -22
- package/lib/ui/app/Features/Gamification/gamification-feature.js +5 -3
- package/lib/ui/app/Features/Gamification/index.js +13 -10
- package/lib/ui/app/Notifications/Onboarding/index.js +6 -4
- package/lib/ui/app/Notifications/index.js +24 -22
- package/lib/ui/app/masters.js +6 -4
- package/lib/ui/app/useClipboardCopy.d.ts +2 -0
- package/lib/ui/app/useClipboardCopy.js +11 -0
- package/lib/ui/gamification/onboarding/index.js +25 -21
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +37 -35
- package/lib/{index-jRXrW6ie.js → useClipboardCopy-E5rEe6It.js} +1537 -1513
- package/package.json +12 -12
|
@@ -2,15 +2,17 @@ import { GamificationOverlay as o } from "./index.js";
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "@linaria/react";
|
|
4
4
|
import "@nanostores/react";
|
|
5
|
-
import "../../../../
|
|
6
|
-
import "../../../../index-uEuzH3jr.js";
|
|
5
|
+
import "../../../../useClipboardCopy-E5rEe6It.js";
|
|
7
6
|
import "react";
|
|
7
|
+
import "../../../../index-uEuzH3jr.js";
|
|
8
|
+
import "../../../gamification/copyNotification/index.js";
|
|
9
|
+
import "../../../icons/index.js";
|
|
10
|
+
import "../../../gamification/copyNotification/styles.js";
|
|
8
11
|
import "../../styles.js";
|
|
9
12
|
import "../../../gamification/detail/header/index.js";
|
|
10
13
|
import "@streamlayer/sdk-web-types";
|
|
11
14
|
import "../../../gamification/constants.js";
|
|
12
15
|
import "../../../gamification/detail/header/styles.js";
|
|
13
|
-
import "../../../icons/index.js";
|
|
14
16
|
import "../../../gamification/user-statistics/index.js";
|
|
15
17
|
import "../../../../utils/common.js";
|
|
16
18
|
import "../../../gamification/user-statistics/components/rank/index.js";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { jsxs as e, Fragment as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { styled as
|
|
2
|
+
import { styled as l } from "@linaria/react";
|
|
3
3
|
import { useStore as n } from "@nanostores/react";
|
|
4
|
-
import { r as s } from "../../../../
|
|
4
|
+
import { r as s } from "../../../../useClipboardCopy-E5rEe6It.js";
|
|
5
5
|
import { SDKWhiteContainer as f } from "../../styles.js";
|
|
6
6
|
import { VoteHeader as h } from "../../../gamification/detail/header/index.js";
|
|
7
7
|
import { UserStatistics as U } from "../../../gamification/user-statistics/index.js";
|
|
8
8
|
import { ShowIn as x } from "../../../show-in/index.js";
|
|
9
9
|
import { Question as C } from "./Question.js";
|
|
10
10
|
import { Tabs as S } from "./Tabs.js";
|
|
11
|
-
import "../../../../index-uEuzH3jr.js";
|
|
12
11
|
import "react";
|
|
12
|
+
import "../../../../index-uEuzH3jr.js";
|
|
13
|
+
import "../../../gamification/copyNotification/index.js";
|
|
14
|
+
import "../../../icons/index.js";
|
|
15
|
+
import "../../../gamification/copyNotification/styles.js";
|
|
13
16
|
import "@streamlayer/sdk-web-types";
|
|
14
17
|
import "../../../gamification/constants.js";
|
|
15
18
|
import "../../../gamification/detail/header/styles.js";
|
|
16
|
-
import "../../../icons/index.js";
|
|
17
19
|
import "../../../../utils/common.js";
|
|
18
20
|
import "../../../gamification/user-statistics/components/rank/index.js";
|
|
19
21
|
import "../../../gamification/user-statistics/components/rank/styles.js";
|
|
@@ -77,11 +79,11 @@ import "../../../button/index.js";
|
|
|
77
79
|
import "../../../button/styles.js";
|
|
78
80
|
import "../../../gamification/question/list/styles.js";
|
|
79
81
|
import "./UserSummary.js";
|
|
80
|
-
const I = () => x, c = /* @__PURE__ */
|
|
82
|
+
const I = () => x, c = /* @__PURE__ */ l(I())({
|
|
81
83
|
name: "OpenedContainer",
|
|
82
84
|
class: "oar61gl",
|
|
83
85
|
propsAsIs: !0
|
|
84
|
-
}), O = /* @__PURE__ */
|
|
86
|
+
}), O = /* @__PURE__ */ l("div")({
|
|
85
87
|
name: "UserContainer",
|
|
86
88
|
class: "u14zaal4",
|
|
87
89
|
propsAsIs: !1
|
|
@@ -91,12 +93,12 @@ const I = () => x, c = /* @__PURE__ */ a(I())({
|
|
|
91
93
|
}) => {
|
|
92
94
|
const o = r + m;
|
|
93
95
|
return o === 0 ? 0 : Math.round(r / o * 100);
|
|
94
|
-
},
|
|
96
|
+
}, Yr = ({
|
|
95
97
|
gamification: r,
|
|
96
98
|
scrollStore: m,
|
|
97
99
|
className: o,
|
|
98
100
|
appNode: i,
|
|
99
|
-
scrollNode:
|
|
101
|
+
scrollNode: a
|
|
100
102
|
}) => {
|
|
101
103
|
const u = n(r.openedQuestion.$store), p = n(r.openedUser);
|
|
102
104
|
return /* @__PURE__ */ e(d, {
|
|
@@ -119,13 +121,14 @@ const I = () => x, c = /* @__PURE__ */ a(I())({
|
|
|
119
121
|
})]
|
|
120
122
|
})
|
|
121
123
|
}), i.current), /* @__PURE__ */ t(S, {
|
|
124
|
+
appNode: i,
|
|
122
125
|
scrollStore: m,
|
|
123
|
-
scrollNode:
|
|
126
|
+
scrollNode: a,
|
|
124
127
|
className: o,
|
|
125
128
|
gamification: r
|
|
126
129
|
})]
|
|
127
130
|
});
|
|
128
131
|
};
|
|
129
132
|
export {
|
|
130
|
-
|
|
133
|
+
Yr as GamificationOverlay
|
|
131
134
|
};
|
|
@@ -2,17 +2,19 @@ import { jsx as t, jsxs as V, Fragment as b } from "react/jsx-runtime";
|
|
|
2
2
|
import { cx as f } from "@linaria/core";
|
|
3
3
|
import { styled as m } from "@linaria/react";
|
|
4
4
|
import { useRef as v, useState as H, useLayoutEffect as M, useEffect as w } from "react";
|
|
5
|
-
import { r as Z } from "../../../../
|
|
5
|
+
import { r as Z } from "../../../../useClipboardCopy-E5rEe6It.js";
|
|
6
6
|
import { FeatureType as y } from "@streamlayer/sdk-web-types";
|
|
7
7
|
import { Onboarding as k } from "../../../gamification/onboarding/index.js";
|
|
8
8
|
import { ShowIn as x } from "../../../show-in/index.js";
|
|
9
9
|
import { Onboarding as u } from "./Notification/index.js";
|
|
10
10
|
import "../../../../index-uEuzH3jr.js";
|
|
11
|
+
import "../../../gamification/copyNotification/index.js";
|
|
12
|
+
import "../../../icons/index.js";
|
|
13
|
+
import "../../../gamification/copyNotification/styles.js";
|
|
11
14
|
import "react-virtualized-auto-sizer";
|
|
12
15
|
import "../../../gamification/onboarding/slides/onboarding-instructions/index.js";
|
|
13
16
|
import "../../../gamification/onboarding/slides/onboarding-instructions/styles.js";
|
|
14
17
|
import "../../../gamification/onboarding/slides/onboarding-invite-card/index.js";
|
|
15
|
-
import "../../../icons/index.js";
|
|
16
18
|
import "../../../gamification/onboarding/slides/onboarding-invite-card/styles.js";
|
|
17
19
|
import "../../../gamification/onboarding/slides/onboarding-rules/index.js";
|
|
18
20
|
import "../../../gamification/onboarding/slides/onboarding-rules/styles.js";
|
|
@@ -101,7 +103,7 @@ const S = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
|
|
|
101
103
|
gamification: p
|
|
102
104
|
})
|
|
103
105
|
});
|
|
104
|
-
},
|
|
106
|
+
}, o2 = ({
|
|
105
107
|
sdk: a,
|
|
106
108
|
notification: C,
|
|
107
109
|
saveHeight: r,
|
|
@@ -147,5 +149,5 @@ const S = "data:image/svg+xml,%3csvg%20width='92'%20height='19'%20viewBox='0%200
|
|
|
147
149
|
});
|
|
148
150
|
};
|
|
149
151
|
export {
|
|
150
|
-
|
|
152
|
+
o2 as Onboarding
|
|
151
153
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as h, Fragment as v, jsx as
|
|
1
|
+
import { jsxs as h, Fragment as v, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useStore as O } from "@nanostores/react";
|
|
3
3
|
import { useState as a, useMemo as S, useEffect as g, useRef as T, useCallback as R } from "react";
|
|
4
|
-
import { r as C } from "../../../
|
|
4
|
+
import { r as C } from "../../../useClipboardCopy-E5rEe6It.js";
|
|
5
5
|
import { NotificationType as c } from "@streamlayer/sdk-web-notifications";
|
|
6
6
|
import { QuestionTypeData as D } from "../../gamification/constants.js";
|
|
7
7
|
import { Notification as b } from "../../gamification/question/notification/index.js";
|
|
@@ -9,11 +9,13 @@ import { PredictionResult as E } from "../../gamification/question/notification/
|
|
|
9
9
|
import { Onboarding as P } from "./Onboarding/index.js";
|
|
10
10
|
import { Pill as x, HiddenContainer as I, Container as B, InnerContainer as H, NotificationRefreshing as q } from "./styles.js";
|
|
11
11
|
import "../../../index-uEuzH3jr.js";
|
|
12
|
+
import "../../gamification/copyNotification/index.js";
|
|
13
|
+
import "../../icons/index.js";
|
|
14
|
+
import "@linaria/react";
|
|
15
|
+
import "../../gamification/copyNotification/styles.js";
|
|
12
16
|
import "@streamlayer/sdk-web-types";
|
|
13
17
|
import "../../gamification/question/notification/insight/index.js";
|
|
14
18
|
import "../../video-player/index.js";
|
|
15
|
-
import "../../icons/index.js";
|
|
16
|
-
import "@linaria/react";
|
|
17
19
|
import "../../video-player/styles.js";
|
|
18
20
|
import "../../gamification/question/notification/insight/styles.js";
|
|
19
21
|
import "../../gamification/question/notification/styles.js";
|
|
@@ -44,7 +46,7 @@ import "./Onboarding/Notification/styles.js";
|
|
|
44
46
|
import "../../gamification/question/notification/pill/index.js";
|
|
45
47
|
import "../../gamification/question/notification/pill/styles.js";
|
|
46
48
|
const w = (p) => {
|
|
47
|
-
const [t, o] = a(0), e = T(null),
|
|
49
|
+
const [t, o] = a(0), e = T(null), s = R((i) => {
|
|
48
50
|
e.current = i;
|
|
49
51
|
}, []);
|
|
50
52
|
g(() => {
|
|
@@ -55,62 +57,62 @@ const w = (p) => {
|
|
|
55
57
|
const r = R((i) => {
|
|
56
58
|
o(i);
|
|
57
59
|
}, []);
|
|
58
|
-
return [
|
|
60
|
+
return [s, t, r];
|
|
59
61
|
}, Q = ({
|
|
60
62
|
sdk: p,
|
|
61
63
|
notification: t,
|
|
62
64
|
appNode: o
|
|
63
65
|
}) => {
|
|
64
66
|
var i, n;
|
|
65
|
-
const [e,
|
|
67
|
+
const [e, s, r] = w(t.id);
|
|
66
68
|
return t.type === c.QUESTION ? /* @__PURE__ */ h(v, {
|
|
67
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ m(I, {
|
|
68
70
|
ref: e,
|
|
69
71
|
style: {
|
|
70
72
|
position: "absolute"
|
|
71
73
|
},
|
|
72
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ m(b, {
|
|
73
75
|
...t
|
|
74
76
|
})
|
|
75
77
|
}), /* @__PURE__ */ h(B, {
|
|
76
78
|
style: {
|
|
77
|
-
height: t.hiding ? 0 :
|
|
79
|
+
height: t.hiding ? 0 : s
|
|
78
80
|
},
|
|
79
81
|
hiding: t.hiding,
|
|
80
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ m(H, {
|
|
81
83
|
style: {
|
|
82
84
|
height: "100%"
|
|
83
85
|
},
|
|
84
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ m(b, {
|
|
85
87
|
...t
|
|
86
88
|
})
|
|
87
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ m(q, {}, t.id)]
|
|
88
90
|
})]
|
|
89
|
-
}) : t.type === c.QUESTION_RESOLVED && ((n = (i = t.data) == null ? void 0 : i.question) != null && n.predictionResult) ? /* @__PURE__ */
|
|
91
|
+
}) : t.type === c.QUESTION_RESOLVED && ((n = (i = t.data) == null ? void 0 : i.question) != null && n.predictionResult) ? /* @__PURE__ */ m(E, {
|
|
90
92
|
style: {
|
|
91
|
-
height: t.hiding ? 0 :
|
|
93
|
+
height: t.hiding ? 0 : s
|
|
92
94
|
},
|
|
93
95
|
saveHeight: r,
|
|
94
96
|
close: t.close,
|
|
95
97
|
hiding: t.hiding,
|
|
96
98
|
...t.data.question
|
|
97
|
-
}) : t.type === c.ONBOARDING && o.current ? /* @__PURE__ */
|
|
99
|
+
}) : t.type === c.ONBOARDING && o.current ? /* @__PURE__ */ m(P, {
|
|
98
100
|
style: {
|
|
99
|
-
height: t.hiding ? 0 :
|
|
101
|
+
height: t.hiding ? 0 : s
|
|
100
102
|
},
|
|
101
103
|
saveHeight: r,
|
|
102
104
|
sdk: p,
|
|
103
105
|
notification: t,
|
|
104
106
|
appNode: o
|
|
105
107
|
}) : null;
|
|
106
|
-
},
|
|
108
|
+
}, xt = ({
|
|
107
109
|
sdk: p,
|
|
108
110
|
scrollNode: t,
|
|
109
111
|
appNode: o,
|
|
110
112
|
scrollStore: e
|
|
111
113
|
}) => {
|
|
112
114
|
var f, y;
|
|
113
|
-
const [
|
|
115
|
+
const [s] = a(p.getNotificationsStore()), r = O(s), {
|
|
114
116
|
tabsShown: i
|
|
115
117
|
} = O(e, {
|
|
116
118
|
keys: ["tabsShown"]
|
|
@@ -127,11 +129,11 @@ const w = (p) => {
|
|
|
127
129
|
}, [l, e]), g(() => e.listen((u) => {
|
|
128
130
|
u.scrollPosition === 0 && d(null);
|
|
129
131
|
}), [e]), /* @__PURE__ */ h(v, {
|
|
130
|
-
children: [!n && l && /* @__PURE__ */
|
|
132
|
+
children: [!n && l && /* @__PURE__ */ m(Q, {
|
|
131
133
|
appNode: o,
|
|
132
134
|
sdk: p,
|
|
133
135
|
notification: l
|
|
134
|
-
}), n && o.current && C.createPortal(/* @__PURE__ */
|
|
136
|
+
}), n && o.current && C.createPortal(/* @__PURE__ */ m(x, {
|
|
135
137
|
title: `New ${((y = D[(f = n.data) == null ? void 0 : f.questionType]) == null ? void 0 : y.label) || "notification"}`,
|
|
136
138
|
onClick: () => {
|
|
137
139
|
var u;
|
|
@@ -145,5 +147,5 @@ const w = (p) => {
|
|
|
145
147
|
});
|
|
146
148
|
};
|
|
147
149
|
export {
|
|
148
|
-
|
|
150
|
+
xt as SDKNotifications
|
|
149
151
|
};
|
package/lib/ui/app/masters.js
CHANGED
|
@@ -21,14 +21,16 @@ import "@linaria/react";
|
|
|
21
21
|
import "../navigation/index.js";
|
|
22
22
|
import "../../index_ej4hfx-w40geAFS.js";
|
|
23
23
|
import "../../masters_m6itlr-w40geAFS.js";
|
|
24
|
-
import "../../
|
|
24
|
+
import "../../useClipboardCopy-E5rEe6It.js";
|
|
25
25
|
import "../../index-uEuzH3jr.js";
|
|
26
|
+
import "../gamification/copyNotification/index.js";
|
|
27
|
+
import "../icons/index.js";
|
|
28
|
+
import "../gamification/copyNotification/styles.js";
|
|
26
29
|
import "@streamlayer/sdk-web-notifications";
|
|
27
30
|
import "../gamification/constants.js";
|
|
28
31
|
import "../gamification/question/notification/index.js";
|
|
29
32
|
import "../gamification/question/notification/insight/index.js";
|
|
30
33
|
import "../video-player/index.js";
|
|
31
|
-
import "../icons/index.js";
|
|
32
34
|
import "../video-player/styles.js";
|
|
33
35
|
import "../gamification/question/notification/insight/styles.js";
|
|
34
36
|
import "../gamification/question/notification/styles.js";
|
|
@@ -78,7 +80,7 @@ const K = ({ sdk: t, className: p, scrollStore: e, appNode: r, scrollNode: a })
|
|
|
78
80
|
sdk: t
|
|
79
81
|
}
|
|
80
82
|
);
|
|
81
|
-
},
|
|
83
|
+
}, Qt = ({ sdk: t, overlays: p, children: e }) => {
|
|
82
84
|
const [r, a] = F(), o = g(null), { sdkEnabled: s, sdkReady: n, activeOverlay: i, activateAndLoadOverlay: l, activateEventWithId: f, deactivate: u, isLogged: v } = x(t);
|
|
83
85
|
return h(() => {
|
|
84
86
|
import("./Features/Gamification/gamification-feature.js");
|
|
@@ -111,5 +113,5 @@ const K = ({ sdk: t, className: p, scrollStore: e, appNode: r, scrollNode: a })
|
|
|
111
113
|
] });
|
|
112
114
|
};
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
Qt as MastersApp
|
|
115
117
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { u } from "../../useClipboardCopy-E5rEe6It.js";
|
|
4
|
+
import "../gamification/copyNotification/index.js";
|
|
5
|
+
import "../../index-uEuzH3jr.js";
|
|
6
|
+
import "../icons/index.js";
|
|
7
|
+
import "@linaria/react";
|
|
8
|
+
import "../gamification/copyNotification/styles.js";
|
|
9
|
+
export {
|
|
10
|
+
u as useClipboardCopy
|
|
11
|
+
};
|
|
@@ -7,7 +7,11 @@ import { OnboardingRules as z } from "./slides/onboarding-rules/index.js";
|
|
|
7
7
|
import { Container as E, OnboardingHeader as F, CloseBtn as G, IconClose as H, Content as M, OnboardingFooter as P, OnboardingActionBtn as R } from "./styles.js";
|
|
8
8
|
import "./slides/onboarding-instructions/styles.js";
|
|
9
9
|
import "@linaria/react";
|
|
10
|
+
import "../../../useClipboardCopy-E5rEe6It.js";
|
|
11
|
+
import "../../../index-uEuzH3jr.js";
|
|
12
|
+
import "../copyNotification/index.js";
|
|
10
13
|
import "../../icons/index.js";
|
|
14
|
+
import "../copyNotification/styles.js";
|
|
11
15
|
import "./slides/onboarding-invite-card/styles.js";
|
|
12
16
|
import "./slides/onboarding-rules/styles.js";
|
|
13
17
|
import "../../button/index.js";
|
|
@@ -16,48 +20,48 @@ const a = {
|
|
|
16
20
|
steps: !1,
|
|
17
21
|
rules: !1,
|
|
18
22
|
inviteCard: !1
|
|
19
|
-
},
|
|
23
|
+
}, oi = ({
|
|
20
24
|
gamification: u,
|
|
21
|
-
steps:
|
|
25
|
+
steps: i,
|
|
22
26
|
rules: t,
|
|
23
|
-
rulesBtnLabel:
|
|
27
|
+
rulesBtnLabel: m,
|
|
24
28
|
rulesTitle: b,
|
|
25
|
-
primaryColor:
|
|
29
|
+
primaryColor: d,
|
|
26
30
|
inviteLink: C,
|
|
27
31
|
socialLinks: S,
|
|
28
|
-
inviteCardTitle:
|
|
29
|
-
inviteCardSubtext:
|
|
32
|
+
inviteCardTitle: p,
|
|
33
|
+
inviteCardSubtext: y,
|
|
30
34
|
inviteCardBtnLabel: c,
|
|
31
|
-
onClose:
|
|
35
|
+
onClose: O
|
|
32
36
|
}) => {
|
|
33
|
-
const [r, f] = h(0), [
|
|
37
|
+
const [r, f] = h(0), [n, e] = h(a);
|
|
34
38
|
k(() => {
|
|
35
|
-
|
|
39
|
+
i != null && i.length ? e({ ...a, steps: !0 }) : t != null && t.length ? e({ ...a, rules: !0 }) : e({ ...a, inviteCard: !0 });
|
|
36
40
|
}, []);
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
}, [r,
|
|
41
|
+
const v = D(() => n.steps && r === 0 ? "Continue" : n.rules ? m || "Got it" : n.inviteCard ? c || "Play Now" : "Next", [n, r, m, c]), I = T(() => {
|
|
42
|
+
i != null && i.length && r < i.length - 1 ? f((l) => ++l) : t != null && t.length && n.steps ? e({ ...a, rules: !0 }) : n.rules && e({ ...a, inviteCard: !0 });
|
|
43
|
+
}, [r, i == null ? void 0 : i.length, t == null ? void 0 : t.length, n, f, e]), x = async () => {
|
|
40
44
|
await u.onboardingStatus.submitInplay();
|
|
41
45
|
};
|
|
42
46
|
return /* @__PURE__ */ o(j, { children: ({ width: l, height: N }) => /* @__PURE__ */ g(E, { style: { width: l, height: N }, children: [
|
|
43
|
-
/* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(G, { onClick:
|
|
47
|
+
/* @__PURE__ */ o(F, { children: /* @__PURE__ */ o(G, { onClick: O, children: /* @__PURE__ */ o(H, { name: "icon-close-btn-gray" }) }) }),
|
|
44
48
|
/* @__PURE__ */ g(M, { children: [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
n.steps && (i == null ? void 0 : i.length) && /* @__PURE__ */ o(w, { stepsCount: i.length, currentStep: r, ...i[r] }),
|
|
50
|
+
n.rules && /* @__PURE__ */ o(z, { rules: t, rulesTitle: b, primaryColor: d }),
|
|
51
|
+
n.inviteCard && /* @__PURE__ */ o(
|
|
48
52
|
A,
|
|
49
53
|
{
|
|
50
54
|
inviteLink: C,
|
|
51
|
-
inviteCardTitle:
|
|
52
|
-
inviteCardSubtext:
|
|
53
|
-
primaryColor:
|
|
55
|
+
inviteCardTitle: p,
|
|
56
|
+
inviteCardSubtext: y,
|
|
57
|
+
primaryColor: d,
|
|
54
58
|
socialLinks: S
|
|
55
59
|
}
|
|
56
60
|
)
|
|
57
61
|
] }),
|
|
58
|
-
/* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(R, { onClick:
|
|
62
|
+
/* @__PURE__ */ o(P, { children: /* @__PURE__ */ o(R, { onClick: n.inviteCard ? x : I, children: v }) })
|
|
59
63
|
] }) });
|
|
60
64
|
};
|
|
61
65
|
export {
|
|
62
|
-
|
|
66
|
+
oi as Onboarding
|
|
63
67
|
};
|
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { u as I } from "../../../../../useClipboardCopy-E5rEe6It.js";
|
|
3
|
+
import { SvgIcon as f } from "../../../../icons/index.js";
|
|
4
|
+
import { Container as g, IconContainer as k, InviteGameIcon as s, Content as b, Heading as y, Subtext as u, LinkContainer as L, LinkInfo as S, LinkTitle as x, LinkAddress as v, LinkIcon as j, SocialLinksContainer as A, SocialLink as G, SocialLinkLabel as H } from "./styles.js";
|
|
5
5
|
import "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import "../../../../../index-uEuzH3jr.js";
|
|
7
|
+
import "../../../copyNotification/index.js";
|
|
8
|
+
import "../../../copyNotification/styles.js";
|
|
9
|
+
import "@linaria/react";
|
|
10
|
+
const E = ({
|
|
11
|
+
appNode: t,
|
|
12
|
+
inviteLink: r,
|
|
13
|
+
socialLinks: i,
|
|
14
|
+
inviteCardTitle: c,
|
|
15
|
+
inviteCardSubtext: l,
|
|
16
|
+
primaryColor: a,
|
|
12
17
|
className: d
|
|
13
|
-
}) =>
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ n(
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (e)
|
|
21
|
-
try {
|
|
22
|
-
await navigator.clipboard.writeText(e);
|
|
23
|
-
} catch (i) {
|
|
24
|
-
console.error("Unable to copy to clipboard", i);
|
|
25
|
-
}
|
|
26
|
-
}, children: [
|
|
27
|
-
/* @__PURE__ */ r(f, { children: [
|
|
28
|
-
/* @__PURE__ */ n(k, { children: "Invite link" }),
|
|
29
|
-
/* @__PURE__ */ n(x, { children: e })
|
|
18
|
+
}) => {
|
|
19
|
+
const [m, p] = I(t);
|
|
20
|
+
return /* @__PURE__ */ o(g, { className: d, children: [
|
|
21
|
+
/* @__PURE__ */ n(k, { style: { backgroundColor: a }, children: /* @__PURE__ */ n(s, { name: "invite-game-icon" }) }),
|
|
22
|
+
/* @__PURE__ */ o(b, { children: [
|
|
23
|
+
/* @__PURE__ */ n(y, { children: c || "" }),
|
|
24
|
+
/* @__PURE__ */ n(u, { children: l || "" })
|
|
30
25
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
] })
|
|
26
|
+
r && /* @__PURE__ */ o(L, { onClick: () => m(r), children: [
|
|
27
|
+
/* @__PURE__ */ o(S, { children: [
|
|
28
|
+
/* @__PURE__ */ n(x, { children: "Invite link" }),
|
|
29
|
+
/* @__PURE__ */ n(v, { children: r })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ n(j, { name: "icon-copy" })
|
|
32
|
+
] }),
|
|
33
|
+
i && i.length > 0 && /* @__PURE__ */ n(A, { children: i.map(({ icon: h, link: e, label: C }) => /* @__PURE__ */ o(G, { href: e, target: "_blank", children: [
|
|
34
|
+
/* @__PURE__ */ n(f, { name: h }),
|
|
35
|
+
/* @__PURE__ */ n(H, { children: C })
|
|
36
|
+
] }, e)) }),
|
|
37
|
+
p
|
|
38
|
+
] });
|
|
39
|
+
};
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
E as OnboardingInviteCard
|
|
40
42
|
};
|