coinsperformance 0.0.5 → 0.0.6
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/dist/components/Molecules/ExperientialComponents/NewActivityBanner.d.ts +18 -0
- package/dist/components/Molecules/ExperientialComponents/NewActivityBanner.js +78 -0
- package/dist/components/Molecules/ExperientialComponents/NewActivityBanner.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewActivityCard.d.ts +25 -0
- package/dist/components/Molecules/ExperientialComponents/NewActivityCard.js +72 -0
- package/dist/components/Molecules/ExperientialComponents/NewActivityCard.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewAddPostCard.d.ts +9 -0
- package/dist/components/Molecules/ExperientialComponents/NewAddPostCard.js +29 -0
- package/dist/components/Molecules/ExperientialComponents/NewAddPostCard.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostCard.d.ts +27 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostCard.js +89 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostCard.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfo.d.ts +29 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfo.js +217 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfo.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfoStyles.d.ts +441 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfoStyles.js +416 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostInfoStyles.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostList.d.ts +51 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostList.js +79 -0
- package/dist/components/Molecules/ExperientialComponents/NewPostList.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityBannerStyles.d.ts +120 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityBannerStyles.js +124 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityBannerStyles.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityCardStyles.d.ts +86 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityCardStyles.js +91 -0
- package/dist/components/Molecules/ExperientialComponents/newActivityCardStyles.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/newAddPostCardStyles.d.ts +107 -0
- package/dist/components/Molecules/ExperientialComponents/newAddPostCardStyles.js +110 -0
- package/dist/components/Molecules/ExperientialComponents/newAddPostCardStyles.js.map +1 -0
- package/dist/components/Molecules/ExperientialComponents/newPostCardStyles.d.ts +197 -0
- package/dist/components/Molecules/ExperientialComponents/newPostCardStyles.js +201 -0
- package/dist/components/Molecules/ExperientialComponents/newPostCardStyles.js.map +1 -0
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.d.ts +1 -1
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.js +2 -2
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.js.map +1 -1
- package/dist/components/Molecules/SLI/SLIChart.d.ts +4 -0
- package/dist/components/Molecules/SLI/SLIChart.js +254 -0
- package/dist/components/Molecules/SLI/SLIChart.js.map +1 -0
- package/dist/components/Molecules/SLI/data.d.ts +14 -0
- package/dist/components/Molecules/SLI/data.js +236 -0
- package/dist/components/Molecules/SLI/data.js.map +1 -0
- package/dist/components/Molecules/SLI/sliUtils.d.ts +44 -0
- package/dist/components/Molecules/SLI/sliUtils.js +59 -0
- package/dist/components/Molecules/SLI/sliUtils.js.map +1 -0
- package/dist/components/Organisms/NewActivityList/NewActivityList.d.ts +10 -0
- package/dist/components/Organisms/NewActivityList/NewActivityList.js +35 -0
- package/dist/components/Organisms/NewActivityList/NewActivityList.js.map +1 -0
- package/dist/components/Organisms/PostDetails/ImageGallery.d.ts +1 -1
- package/dist/components/Organisms/PostDetails/ImageGallery.js +15 -5
- package/dist/components/Organisms/PostDetails/ImageGallery.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/common-utils.d.ts +2 -0
- package/dist/utils/common-utils.js +151 -1
- package/dist/utils/common-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("@chakra-ui/react");
|
|
8
|
+
const react_2 = require("react");
|
|
9
|
+
const ImageGallery_1 = __importDefault(require("../../Organisms/PostDetails/ImageGallery"));
|
|
10
|
+
const customTheme_1 = require("../../../utils/customTheme");
|
|
11
|
+
const react_3 = require("react");
|
|
12
|
+
const NewPostInfoStyles_1 = require("./NewPostInfoStyles");
|
|
13
|
+
const LatexRenderView_1 = __importDefault(require("../../Atoms/LatexRenderView/LatexRenderView"));
|
|
14
|
+
// Shared utility function
|
|
15
|
+
const getAttachmentType = (mimeType) => {
|
|
16
|
+
if (mimeType.startsWith("image/"))
|
|
17
|
+
return "image";
|
|
18
|
+
if (mimeType.startsWith("video/"))
|
|
19
|
+
return "video";
|
|
20
|
+
if (mimeType === "application/pdf")
|
|
21
|
+
return "pdf";
|
|
22
|
+
if (mimeType.includes("excel") ||
|
|
23
|
+
mimeType.includes("spreadsheet") ||
|
|
24
|
+
mimeType === "application/vnd.ms-excel" ||
|
|
25
|
+
mimeType ===
|
|
26
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
|
27
|
+
return "excel";
|
|
28
|
+
if (mimeType.includes("word") ||
|
|
29
|
+
mimeType.includes("document") ||
|
|
30
|
+
mimeType === "application/msword" ||
|
|
31
|
+
mimeType ===
|
|
32
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document")
|
|
33
|
+
return "doc";
|
|
34
|
+
return "doc"; // default fallback
|
|
35
|
+
};
|
|
36
|
+
// Function to get initials from name
|
|
37
|
+
const getInitials = (name) => {
|
|
38
|
+
if (!name)
|
|
39
|
+
return "";
|
|
40
|
+
const names = name.trim().split(" ");
|
|
41
|
+
if (names.length >= 2) {
|
|
42
|
+
return (names[0].charAt(0) + names[names.length - 1].charAt(0)).toUpperCase();
|
|
43
|
+
}
|
|
44
|
+
return name.charAt(0).toUpperCase();
|
|
45
|
+
};
|
|
46
|
+
const ImageTiles = ({ mediaAttachments, styles, onTileClick, }) => {
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Flex, { sx: styles?.imageTilesContainer, children: mediaAttachments.map((attachment, index) => ((0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.imageTileFrame, cursor: "pointer", onClick: () => onTileClick(index), children: (0, jsx_runtime_1.jsx)(react_1.Image, { src: attachment.url, alt: attachment.fileName || `Tile ${index + 1}`, sx: styles?.imageTileImage }) }, index))) }));
|
|
48
|
+
};
|
|
49
|
+
const CommentItem = ({ comment, styles, icons, }) => {
|
|
50
|
+
const containerStyles = comment.isSubjectTeacher
|
|
51
|
+
? { ...styles?.commentItem, ...styles?.commentItemSubjectTeacher }
|
|
52
|
+
: styles?.commentItem;
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: containerStyles, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentAvatar, children: comment.authorAvatar ? ((0, jsx_runtime_1.jsx)(react_1.Image, { src: comment.authorAvatar, alt: comment.authorName, sx: styles?.commentAvatarImage })) : ((0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentAvatar, display: "flex", alignItems: "center", justifyContent: "center", backgroundColor: "#ccd1e8", children: (0, jsx_runtime_1.jsx)(react_1.Text, { color: "white", fontFamily: "Poppins", fontWeight: "600", fontSize: "12px", children: getInitials(comment.authorName) }) })) }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.commentContent, children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.commentHeader, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.commentAuthorName, children: comment.authorName }), comment.isSubjectTeacher && comment.authorRole && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.commentAuthorRole, children: [icons?.star && ((0, jsx_runtime_1.jsx)(react_1.Image, { src: icons.star, alt: "Star icon", width: "24px", height: "24px" })), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.commentRoleText, children: comment.authorRole })] }))] }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.commentText, children: (0, jsx_runtime_1.jsx)(LatexRenderView_1.default, { math: comment.content }) })] }), (0, jsx_runtime_1.jsx)(react_1.Flex, { sx: styles?.commentMeta, children: (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.commentTimestamp, children: comment.timestamp }) })] }));
|
|
54
|
+
};
|
|
55
|
+
const CommentsList = ({ comments, styles, icons, }) => {
|
|
56
|
+
if (!comments || comments.length === 0) {
|
|
57
|
+
return (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.postContent, children: "No Comments Yet" });
|
|
58
|
+
}
|
|
59
|
+
// Sort comments to show subject teacher comments first
|
|
60
|
+
const sortedComments = [...comments].sort((a, b) => {
|
|
61
|
+
// If both are subject teachers or both are not, maintain original order
|
|
62
|
+
if (a.isSubjectTeacher === b.isSubjectTeacher) {
|
|
63
|
+
return 0;
|
|
64
|
+
}
|
|
65
|
+
// Subject teacher comments come first
|
|
66
|
+
return a.isSubjectTeacher ? -1 : 1;
|
|
67
|
+
});
|
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.commentsContainer, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentsDivider }), sortedComments.map((comment, index) => ((0, jsx_runtime_1.jsx)(react_1.Box, { children: (0, jsx_runtime_1.jsx)(CommentItem, { comment: comment, styles: styles, icons: icons }) }, comment.id || index)))] }));
|
|
69
|
+
};
|
|
70
|
+
const CommentInput = ({ styles, icons, onCommentSubmit, commentSuggestions, }) => {
|
|
71
|
+
const [commentText, setCommentText] = (0, react_2.useState)("");
|
|
72
|
+
const [showSuggestions, setShowSuggestions] = (0, react_2.useState)(false);
|
|
73
|
+
// Check if input is empty
|
|
74
|
+
const isInputEmpty = !commentText.trim();
|
|
75
|
+
const handleSubmit = () => {
|
|
76
|
+
if (!isInputEmpty && onCommentSubmit) {
|
|
77
|
+
onCommentSubmit(commentText.trim());
|
|
78
|
+
setCommentText("");
|
|
79
|
+
setShowSuggestions(false);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const handleKeyDown = (e) => {
|
|
83
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
handleSubmit();
|
|
86
|
+
}
|
|
87
|
+
else if (e.key === "Escape") {
|
|
88
|
+
setShowSuggestions(false);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const handleInputFocus = () => {
|
|
92
|
+
if (commentSuggestions && commentSuggestions.length > 0) {
|
|
93
|
+
setShowSuggestions(true);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const handleInputBlur = () => {
|
|
97
|
+
// Small delay to allow suggestion click to register
|
|
98
|
+
setTimeout(() => {
|
|
99
|
+
setShowSuggestions(false);
|
|
100
|
+
}, 150);
|
|
101
|
+
};
|
|
102
|
+
const handleSuggestionClick = (suggestion) => {
|
|
103
|
+
// Directly submit the suggestion without setting input text
|
|
104
|
+
if (onCommentSubmit && suggestion.trim()) {
|
|
105
|
+
onCommentSubmit(suggestion.trim());
|
|
106
|
+
}
|
|
107
|
+
setCommentText("");
|
|
108
|
+
setShowSuggestions(false);
|
|
109
|
+
};
|
|
110
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Box, { sx: { ...styles?.commentInputContainer, position: "relative" }, children: [showSuggestions && commentSuggestions && ((0, jsx_runtime_1.jsx)(CommentSuggestions, { suggestions: commentSuggestions, onSuggestionClick: handleSuggestionClick, styles: styles })), (0, jsx_runtime_1.jsx)(react_1.Flex, { sx: styles?.commentInputBox, children: (0, jsx_runtime_1.jsx)("input", { style: {
|
|
111
|
+
...styles?.commentInputField,
|
|
112
|
+
fontSize: '12px' // Smaller font size for both input and placeholder
|
|
113
|
+
}, type: "text", placeholder: "Choose and share your feedback", value: commentText, readOnly: true, onKeyDown: handleKeyDown, onFocus: handleInputFocus, onBlur: handleInputBlur }) })] }));
|
|
114
|
+
};
|
|
115
|
+
const CommentSuggestions = ({ suggestions, onSuggestionClick, styles, }) => {
|
|
116
|
+
if (!suggestions || suggestions.length === 0) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentSuggestionsContainer, children: suggestions.map((suggestion, index) => ((0, jsx_runtime_1.jsxs)(react_1.Box, { children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentSuggestionItem, onClick: () => onSuggestionClick(suggestion), children: (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.commentSuggestionText, children: suggestion }) }), index < suggestions.length - 1 && ((0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.commentSuggestionDivider }))] }, index))) }));
|
|
120
|
+
};
|
|
121
|
+
const LeftSection = ({ postAttachments, icons, styles, }) => {
|
|
122
|
+
const [galleryIndex, setGalleryIndex] = (0, react_2.useState)(0);
|
|
123
|
+
if (!postAttachments || postAttachments.length === 0) {
|
|
124
|
+
return null; // Don't render anything if no attachments
|
|
125
|
+
}
|
|
126
|
+
// Filter to get only image and video attachments for left section
|
|
127
|
+
const mediaAttachments = postAttachments.filter((attachment) => {
|
|
128
|
+
const attachmentType = getAttachmentType(attachment.mimeType);
|
|
129
|
+
return attachmentType === "image" || attachmentType === "video";
|
|
130
|
+
});
|
|
131
|
+
// Don't render if no media attachments
|
|
132
|
+
if (mediaAttachments.length === 0) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
// Map icons for ImageGallery
|
|
136
|
+
const galleryIcons = {
|
|
137
|
+
leftArrow: icons?.left_arrow,
|
|
138
|
+
rightArrow: icons?.right_arrow,
|
|
139
|
+
videoIcon: icons?.video_icon,
|
|
140
|
+
pdf: icons?.pdf,
|
|
141
|
+
doc: icons?.doc,
|
|
142
|
+
ppt: icons?.ppt,
|
|
143
|
+
excel: icons?.excel, // Using doc icon as fallback for excel
|
|
144
|
+
};
|
|
145
|
+
const handleTileClick = (tileIndex) => {
|
|
146
|
+
setGalleryIndex(tileIndex);
|
|
147
|
+
};
|
|
148
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.leftSection, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: { flex: 1, marginBottom: "24px" }, children: (0, jsx_runtime_1.jsx)(ImageGallery_1.default, { attachments: mediaAttachments, icons: galleryIcons, initialIndex: galleryIndex, onIndexChange: setGalleryIndex }) }), (0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.leftSectionBottom, children: (0, jsx_runtime_1.jsx)(ImageTiles, { mediaAttachments: mediaAttachments, styles: styles, onTileClick: handleTileClick }) })] }));
|
|
149
|
+
};
|
|
150
|
+
const TabSection = ({ commentCount = 0, styles, icons, activeTab, setActiveTab, allowCommentsandInteractions, }) => {
|
|
151
|
+
// Dynamic icon selection based on active tab
|
|
152
|
+
const getPostIcon = () => {
|
|
153
|
+
if (activeTab === "post") {
|
|
154
|
+
return icons?.postActive || icons?.post;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
return icons?.postInactive || icons?.post;
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const getCommentIcon = () => {
|
|
161
|
+
if (activeTab === "comments") {
|
|
162
|
+
return icons?.commentActive || icons?.comments;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
return icons?.commentInactive || icons?.comments;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.tabsContainer, children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: {
|
|
169
|
+
...styles?.tab,
|
|
170
|
+
...(activeTab === "post" ? styles?.activeTab : styles?.inactiveTab),
|
|
171
|
+
}, onClick: () => setActiveTab("post"), children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.tabIcon, children: (0, jsx_runtime_1.jsx)(react_1.Image, { src: getPostIcon(), alt: "Post icon", width: { base: "20px", md: "22px", lg: "24px" }, height: { base: "20px", md: "22px", lg: "24px" } }) }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.tabText, children: "Post" })] }), (0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: {
|
|
172
|
+
...styles?.tab,
|
|
173
|
+
...(activeTab === "comments"
|
|
174
|
+
? styles?.activeTab
|
|
175
|
+
: styles?.inactiveTab),
|
|
176
|
+
}, onClick: () => setActiveTab("comments"), children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: styles?.tabIcon, children: (0, jsx_runtime_1.jsx)(react_1.Image, { src: getCommentIcon(), alt: "Comments icon", width: { base: "20px", md: "22px", lg: "24px" }, height: { base: "20px", md: "22px", lg: "24px" } }) }), (0, jsx_runtime_1.jsxs)(react_1.Text, { sx: styles?.tabText, children: ["Comments (", commentCount, ")"] })] })] }));
|
|
177
|
+
};
|
|
178
|
+
const RightSection = ({ author, subject, topic, activityTitle, postContent, icons, commentCount, emojiCount, postAttachments, onAttachmentClick, styles, allowCommentsandInteractions, comments, onCommentSubmit, commentSuggestions, }) => {
|
|
179
|
+
// Implementation for right section
|
|
180
|
+
const [activeTab, setActiveTab] = (0, react_2.useState)("post");
|
|
181
|
+
const handleAttachmentClick = (attachment, e) => {
|
|
182
|
+
e.stopPropagation(); // Prevent triggering onCardClick
|
|
183
|
+
if (onAttachmentClick) {
|
|
184
|
+
onAttachmentClick(attachment);
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.rightSection, children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.rightSectionHeader, children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.authorSection, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { sx: {
|
|
188
|
+
...styles?.authorImage,
|
|
189
|
+
display: "flex",
|
|
190
|
+
alignItems: "center",
|
|
191
|
+
justifyContent: "center",
|
|
192
|
+
}, children: (0, jsx_runtime_1.jsx)(react_1.Text, { color: "white", fontFamily: "Poppins", fontWeight: "600", fontSize: "18px", children: getInitials(author?.name) }) }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.authorName, children: author?.name })] }), (0, jsx_runtime_1.jsxs)(react_1.Flex, { sx: styles?.subjectSection, children: [(0, jsx_runtime_1.jsxs)(react_1.Text, { sx: styles?.subjectName, children: [subject, " ", topic ? ":" : "", " "] }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.topicName, children: topic })] }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.activityTitle, children: (0, jsx_runtime_1.jsx)(LatexRenderView_1.default, { math: activityTitle }) }), (0, jsx_runtime_1.jsx)(TabSection, { commentCount: commentCount, styles: styles, icons: icons, activeTab: activeTab, setActiveTab: setActiveTab, allowCommentsandInteractions: allowCommentsandInteractions })] }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.rightSectionContent, children: [activeTab === "post" ? ((0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.postContent, children: (0, jsx_runtime_1.jsx)(LatexRenderView_1.default, { math: postContent }) })) : ((0, jsx_runtime_1.jsx)(CommentsList, { comments: comments || [], styles: styles, icons: icons })), activeTab === "post" &&
|
|
193
|
+
(() => {
|
|
194
|
+
// Filter non-image and non-video attachments
|
|
195
|
+
const nonMediaAttachments = postAttachments?.filter((attachment) => {
|
|
196
|
+
const attachmentType = getAttachmentType(attachment.mimeType);
|
|
197
|
+
return attachmentType !== "image" && attachmentType !== "video";
|
|
198
|
+
}) || [];
|
|
199
|
+
return nonMediaAttachments.length > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.attachmentHeading, children: "Attachments" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { gap: "8px", flexWrap: "wrap", marginY: "8px", children: nonMediaAttachments.map((attachment, index) => {
|
|
200
|
+
const attachmentType = getAttachmentType(attachment.mimeType);
|
|
201
|
+
const iconSrc = icons?.[attachmentType];
|
|
202
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Image, { src: iconSrc, alt: `${attachmentType} icon`, width: "56px", height: "56px", cursor: "pointer", onClick: (e) => handleAttachmentClick(attachment, e), title: attachment.fileName }, index));
|
|
203
|
+
}) })] })) : null;
|
|
204
|
+
})()] }), activeTab === "post" ? ((0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles?.rightSectionBottom, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { border: "1px dotted #A0A0A0" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { sx: styles?.emojiSection, children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: "4px", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: icons?.comment, alt: "Comment icon", width: "20px", height: "20px" }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: styles?.emojiText, children: commentCount })] }) })] })) : ((0, jsx_runtime_1.jsx)(CommentInput, { styles: styles, icons: icons, onCommentSubmit: onCommentSubmit, commentSuggestions: commentSuggestions }))] }));
|
|
205
|
+
};
|
|
206
|
+
const Component = (props) => {
|
|
207
|
+
const { postAttachments, author, subject, topic, activityTitle, postContent, icons, commentCount, emojiCount, onAttachmentClick, cardColor, allowCommentsandInteractions, comments, onCommentSubmit, commentSuggestions, } = props;
|
|
208
|
+
const styles = (0, react_3.useMemo)(() => {
|
|
209
|
+
return NewPostInfoStyles_1.NewPostInfoStyles;
|
|
210
|
+
}, []);
|
|
211
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Box, { sx: styles.mainContainer, bgColor: cardColor, children: [(0, jsx_runtime_1.jsx)(LeftSection, { postAttachments: postAttachments, icons: icons, styles: styles }), (0, jsx_runtime_1.jsx)(RightSection, { author: author, subject: subject, topic: topic, activityTitle: activityTitle, postContent: postContent, icons: icons, commentCount: commentCount, emojiCount: emojiCount, postAttachments: postAttachments, onAttachmentClick: onAttachmentClick, styles: styles, allowCommentsandInteractions: allowCommentsandInteractions, comments: comments, onCommentSubmit: onCommentSubmit, commentSuggestions: commentSuggestions })] }));
|
|
212
|
+
};
|
|
213
|
+
const NewPostInfo = (props) => {
|
|
214
|
+
return ((0, jsx_runtime_1.jsx)(react_1.ChakraProvider, { theme: customTheme_1.customTheme, children: (0, jsx_runtime_1.jsx)(Component, { ...props }) }));
|
|
215
|
+
};
|
|
216
|
+
exports.default = NewPostInfo;
|
|
217
|
+
//# sourceMappingURL=NewPostInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewPostInfo.js","sourceRoot":"","sources":["../../../../src/components/Molecules/ExperientialComponents/NewPostInfo.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAA0E;AAC1E,iCAAiC;AACjC,4FAAoE;AACpE,4DAAyD;AACzD,iCAAgC;AAChC,2DAAwD;AACxD,kGAA0E;AA+B1E,0BAA0B;AAC1B,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAU,EAAE;IACrD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,OAAO,CAAC;IAClD,IAAI,QAAQ,KAAK,iBAAiB;QAAE,OAAO,KAAK,CAAC;IACjD,IACE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC1B,QAAQ,CAAC,QAAQ,CAAC,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