@pega/cosmos-react-social 9.0.0-build.9.8 → 9.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.
- package/lib/components/AISummary/AISummary.d.ts +10 -0
- package/lib/components/AISummary/AISummary.d.ts.map +1 -0
- package/lib/components/AISummary/AISummary.js +128 -0
- package/lib/components/AISummary/AISummary.js.map +1 -0
- package/lib/components/AISummary/index.d.ts +3 -0
- package/lib/components/AISummary/index.d.ts.map +1 -0
- package/lib/components/AISummary/index.js +2 -0
- package/lib/components/AISummary/index.js.map +1 -0
- package/lib/components/Chat/Chat.js +1 -1
- package/lib/components/Chat/Chat.js.map +1 -1
- package/lib/components/Chat/ChatBody.js +5 -5
- package/lib/components/Chat/ChatBody.js.map +1 -1
- package/lib/components/Chat/ChatComposer.d.ts +16 -2
- package/lib/components/Chat/ChatComposer.d.ts.map +1 -1
- package/lib/components/Chat/ChatSettingsPanel.d.ts.map +1 -1
- package/lib/components/Chat/ChatSettingsPanel.js +1 -1
- package/lib/components/Chat/ChatSettingsPanel.js.map +1 -1
- package/lib/components/Chat/ChatSettingsPanel.styles.d.ts +13 -9
- package/lib/components/Chat/ChatSettingsPanel.styles.d.ts.map +1 -1
- package/lib/components/Chat/ChatSettingsPanel.styles.js.map +1 -1
- package/lib/components/Chat/Message.styles.d.ts +28 -24
- package/lib/components/Chat/Message.styles.d.ts.map +1 -1
- package/lib/components/Chat/Message.styles.js +20 -1
- package/lib/components/Chat/Message.styles.js.map +1 -1
- package/lib/components/Chat/SuggestedReplyPicker.d.ts +7 -7
- package/lib/components/Chat/SuggestedReplyPicker.d.ts.map +1 -1
- package/lib/components/Chat/SystemMessage.d.ts +1 -1
- package/lib/components/Chat/SystemMessage.d.ts.map +1 -1
- package/lib/components/Chat/SystemMessage.js +4 -4
- package/lib/components/Chat/SystemMessage.js.map +1 -1
- package/lib/components/Email/Email.d.ts.map +1 -1
- package/lib/components/Email/Email.js +5 -5
- package/lib/components/Email/Email.js.map +1 -1
- package/lib/components/Email/Email.styles.d.ts +63 -53
- package/lib/components/Email/Email.styles.d.ts.map +1 -1
- package/lib/components/Email/Email.styles.js +2 -21
- package/lib/components/Email/Email.styles.js.map +1 -1
- package/lib/components/Email/Email.types.d.ts +11 -5
- package/lib/components/Email/Email.types.d.ts.map +1 -1
- package/lib/components/Email/Email.types.js.map +1 -1
- package/lib/components/Email/EmailComposer.d.ts +8 -5
- package/lib/components/Email/EmailComposer.d.ts.map +1 -1
- package/lib/components/Email/EmailComposer.js +86 -41
- package/lib/components/Email/EmailComposer.js.map +1 -1
- package/lib/components/Email/EmailConversation.d.ts +11 -7
- package/lib/components/Email/EmailConversation.d.ts.map +1 -1
- package/lib/components/Email/EmailConversation.js +2 -2
- package/lib/components/Email/EmailConversation.js.map +1 -1
- package/lib/components/Email/EmailNotificationPanel.d.ts.map +1 -1
- package/lib/components/Email/EmailNotificationPanel.js +5 -5
- package/lib/components/Email/EmailNotificationPanel.js.map +1 -1
- package/lib/components/Email/EmailShell.d.ts.map +1 -1
- package/lib/components/Email/EmailShell.js +7 -6
- package/lib/components/Email/EmailShell.js.map +1 -1
- package/lib/components/Email/EmailSummaryItem.d.ts +2 -2
- package/lib/components/Email/EmailSummaryItem.d.ts.map +1 -1
- package/lib/components/Email/EmailSummaryItem.js +6 -5
- package/lib/components/Email/EmailSummaryItem.js.map +1 -1
- package/lib/components/Email/EntityList.js +1 -1
- package/lib/components/Email/EntityList.js.map +1 -1
- package/lib/components/Email/utils/EntityHighlighter.d.ts +2 -3
- package/lib/components/Email/utils/EntityHighlighter.d.ts.map +1 -1
- package/lib/components/Email/utils/EntityHighlighter.js +10 -15
- package/lib/components/Email/utils/EntityHighlighter.js.map +1 -1
- package/lib/components/Feed/Feed.d.ts +3 -1
- package/lib/components/Feed/Feed.d.ts.map +1 -1
- package/lib/components/Feed/Feed.js +3 -3
- package/lib/components/Feed/Feed.js.map +1 -1
- package/lib/components/Feed/Feed.types.d.ts +11 -4
- package/lib/components/Feed/Feed.types.d.ts.map +1 -1
- package/lib/components/Feed/Feed.types.js.map +1 -1
- package/lib/components/Feed/FeedAttachments.d.ts +4 -2
- package/lib/components/Feed/FeedAttachments.d.ts.map +1 -1
- package/lib/components/Feed/FeedAttachments.js +2 -3
- package/lib/components/Feed/FeedAttachments.js.map +1 -1
- package/lib/components/Feed/FeedButton.d.ts +2 -2
- package/lib/components/Feed/FeedButton.d.ts.map +1 -1
- package/lib/components/Feed/FeedContentHeader.d.ts.map +1 -1
- package/lib/components/Feed/FeedContentHeader.js +14 -12
- package/lib/components/Feed/FeedContentHeader.js.map +1 -1
- package/lib/components/Feed/FeedCustomEditRegion.d.ts +1 -1
- package/lib/components/Feed/FeedCustomEditRegion.d.ts.map +1 -1
- package/lib/components/Feed/FeedCustomInputRegion.d.ts +1 -1
- package/lib/components/Feed/FeedCustomInputRegion.d.ts.map +1 -1
- package/lib/components/Feed/FeedEditRegion.d.ts.map +1 -1
- package/lib/components/Feed/FeedEditRegion.js +94 -6
- package/lib/components/Feed/FeedEditRegion.js.map +1 -1
- package/lib/components/Feed/FeedInputRegion.d.ts +1 -1
- package/lib/components/Feed/FeedInputRegion.d.ts.map +1 -1
- package/lib/components/Feed/FeedInputRegion.js +96 -7
- package/lib/components/Feed/FeedInputRegion.js.map +1 -1
- package/lib/components/Feed/FeedLikeButton.js +1 -1
- package/lib/components/Feed/FeedLikeButton.js.map +1 -1
- package/lib/components/Feed/FeedNewPost.d.ts +1 -1
- package/lib/components/Feed/FeedNewPost.d.ts.map +1 -1
- package/lib/components/Feed/FeedNewPost.js +2 -1
- package/lib/components/Feed/FeedNewPost.js.map +1 -1
- package/lib/components/Feed/FeedPost.d.ts +8 -3
- package/lib/components/Feed/FeedPost.d.ts.map +1 -1
- package/lib/components/Feed/FeedPost.js +58 -24
- package/lib/components/Feed/FeedPost.js.map +1 -1
- package/lib/components/Feed/FeedReply.d.ts +2 -1
- package/lib/components/Feed/FeedReply.d.ts.map +1 -1
- package/lib/components/Feed/FeedReply.js +4 -5
- package/lib/components/Feed/FeedReply.js.map +1 -1
- package/lib/components/Feed/FeedReplyInput.d.ts +1 -1
- package/lib/components/Feed/FeedReplyInput.d.ts.map +1 -1
- package/lib/components/Feed/FeedReplyInput.js +2 -2
- package/lib/components/Feed/FeedReplyInput.js.map +1 -1
- package/lib/components/Feed/FeedRichText.d.ts.map +1 -1
- package/lib/components/Feed/FeedRichText.js +5 -4
- package/lib/components/Feed/FeedRichText.js.map +1 -1
- package/lib/components/HashtagButton/HashtagButton.d.ts +1 -1
- package/lib/components/HashtagButton/HashtagButton.d.ts.map +1 -1
- package/lib/components/HashtagButton/HashtagButton.js +19 -2
- package/lib/components/HashtagButton/HashtagButton.js.map +1 -1
- package/lib/components/MentionButton/MentionButton.d.ts +1 -1
- package/lib/components/MentionButton/MentionButton.d.ts.map +1 -1
- package/lib/components/MentionButton/MentionButton.js +22 -5
- package/lib/components/MentionButton/MentionButton.js.map +1 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.d.ts.map +1 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.js +4 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.js.map +1 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.styles.d.ts +382 -10
- package/lib/components/OpenGraphPreview/OpenGraphPreview.styles.d.ts.map +1 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.styles.js +1 -1
- package/lib/components/OpenGraphPreview/OpenGraphPreview.styles.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +6 -7
|
@@ -67,7 +67,7 @@ export interface FeedContentProps {
|
|
|
67
67
|
onLinkRender?: RichTextViewerProps['onMarkdownLinkRender'];
|
|
68
68
|
ref?: Ref<HTMLDivElement>;
|
|
69
69
|
}
|
|
70
|
-
export type FeedContentHeaderProps = SubComponentVariant & Pick<FeedPostBaseProps, 'id' | 'fullname' | 'username' | 'postTimestamp' | 'avatarSrc' | 'icon' | 'userStatus' | 'menuItems' | 'edited' | 'editTimestamp' | 'onEdit' | 'onUserClick'> & Pick<FeedPostProps, 'visibility' | 'postType' | 'postContext' | 'recipients' | 'recipientsCount' | 'recipientsLoading' | 'onLoadMoreRecipients' | 'onRecipientInteraction'>;
|
|
70
|
+
export type FeedContentHeaderProps = SubComponentVariant & Pick<FeedPostBaseProps, 'id' | 'fullname' | 'username' | 'postTimestamp' | 'avatarSrc' | 'icon' | 'userStatus' | 'menuItems' | 'edited' | 'editTimestamp' | 'onEdit' | 'onUserClick'> & Pick<FeedPostProps, 'visibility' | 'postType' | 'customPostType' | 'postContext' | 'recipients' | 'recipientsCount' | 'recipientsLoading' | 'onLoadMoreRecipients' | 'onRecipientInteraction'>;
|
|
71
71
|
export type FeedContentFooterProps = SubComponentVariant & Pick<FeedPostBaseProps, 'id' | 'username' | 'liked' | 'likes' | 'likeCount' | 'interactionsEnabled' | 'onCommentClick' | 'onLikeClick' | 'onLikeCountInteraction' | 'onLoadMoreLikes' | 'likesLoading'> & Pick<FeedPostProps, 'replies' | 'replyCount' | 'onShowMoreReplies' | 'onShowLessReplies' | 'repliesLoading'>;
|
|
72
72
|
export interface Filter {
|
|
73
73
|
id: string;
|
|
@@ -75,7 +75,7 @@ export interface Filter {
|
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
on?: boolean;
|
|
77
77
|
}
|
|
78
|
-
export interface FeedRichTextProps extends Pick<RichTextEditorProps, 'label' | 'onChange' | 'onFocus' | 'onBlur' | 'height' | 'defaultValue'>, Pick<FeedProps, 'onLinkRender'> {
|
|
78
|
+
export interface FeedRichTextProps extends Pick<RichTextEditorProps, 'label' | 'onChange' | 'onFocus' | 'onBlur' | 'height' | 'defaultValue' | 'labelHidden' | 'disabled' | 'readOnly'>, Pick<FeedProps, 'onLinkRender'> {
|
|
79
79
|
onKeyDown?: KeyboardEventHandler;
|
|
80
80
|
}
|
|
81
81
|
export type SearchType = {
|
|
@@ -124,6 +124,7 @@ export type FeedProps = WithAttributes<'div', NoChildrenProp & {
|
|
|
124
124
|
onFilterChange?: (filterId: string, on: boolean) => void;
|
|
125
125
|
onLoadMore?: () => void;
|
|
126
126
|
loadingPosts?: boolean;
|
|
127
|
+
progress?: boolean;
|
|
127
128
|
newPostRegion?: ReactNode;
|
|
128
129
|
posts?: ReactNode[];
|
|
129
130
|
onLinkRender?: (href: string, signal: AbortSignal) => Promise<OpenGraphData>;
|
|
@@ -147,11 +148,14 @@ interface FeedCompositionBaseProps {
|
|
|
147
148
|
id: string;
|
|
148
149
|
banners?: ReactNode;
|
|
149
150
|
progress?: boolean;
|
|
151
|
+
onRewriteClick?: (originalText: string, rewriteAction: string, additionalInstructions: string, onSuccess: (rewrittenText: string) => void, isEditContext: boolean) => void;
|
|
150
152
|
}
|
|
151
|
-
export interface DefaultPostConfig {
|
|
153
|
+
export interface DefaultPostConfig extends Pick<FeedRichTextProps, 'defaultValue'> {
|
|
152
154
|
attachments?: FileItemProps[];
|
|
153
155
|
onFilesAdded?: (files: File[]) => void;
|
|
154
156
|
onSubmit: (event: DefaultPostSubmitEvent) => void;
|
|
157
|
+
/** Use to capture the editor's uncontrolled value when the component unmounts. */
|
|
158
|
+
onUnmount?: (rteValue: string) => void;
|
|
155
159
|
}
|
|
156
160
|
export interface CustomPostConfig {
|
|
157
161
|
content: ReactNode;
|
|
@@ -219,7 +223,7 @@ export interface FeedPostBaseProps {
|
|
|
219
223
|
onLoadMoreLikes?: () => void;
|
|
220
224
|
likesLoading?: boolean;
|
|
221
225
|
}
|
|
222
|
-
export interface DefaultEditConfig extends Pick<FeedCompositionBaseProps, 'progress' | 'banners'> {
|
|
226
|
+
export interface DefaultEditConfig extends Pick<FeedRichTextProps, 'defaultValue'>, Pick<FeedCompositionBaseProps, 'progress' | 'banners' | 'onRewriteClick'> {
|
|
223
227
|
editContent?: never;
|
|
224
228
|
onEditSubmit: (event: {
|
|
225
229
|
id: FeedPostBaseProps['id'];
|
|
@@ -230,6 +234,8 @@ export interface DefaultEditConfig extends Pick<FeedCompositionBaseProps, 'progr
|
|
|
230
234
|
onEditCancel?: (id: FeedPostBaseProps['id']) => void;
|
|
231
235
|
/** Props for the private recipient Combobox. */
|
|
232
236
|
recipientInput?: RecipientInputProps;
|
|
237
|
+
/** Use to capture the editor's uncontrolled value when the component unmounts. */
|
|
238
|
+
onUnmount?: (rteValue: string) => void;
|
|
233
239
|
}
|
|
234
240
|
export interface CustomEditConfig extends Pick<FeedCompositionBaseProps, 'progress' | 'banners'> {
|
|
235
241
|
editContent: ReactNode;
|
|
@@ -246,6 +252,7 @@ export type FeedPostProps = WithAttributes<'div', FeedPostBaseProps & {
|
|
|
246
252
|
editConfig?: DefaultEditConfig | CustomEditConfig;
|
|
247
253
|
visibility?: Visibility;
|
|
248
254
|
postType?: PostType;
|
|
255
|
+
customPostType?: boolean;
|
|
249
256
|
recipients?: RecipientMenuItem[];
|
|
250
257
|
recipientsCount?: number;
|
|
251
258
|
postContext?: ReactElement | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.types.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/Feed.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,GAAG,EACH,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4DAA4D,CAAC;AAElG,OAAO,KAA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E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CACzC,KAAK,EACL,iBAAiB,GAAG;IAElB,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Feed.types.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/Feed.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,GAAG,EACH,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4DAA4D,CAAC;AAElG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAQ1E,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,oBACf,SAAQ,mBAAmB,EACzB,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IACtC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAE9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE1F,UAAU,EAAE,UAAU,CAAC;IAEvB,a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K,EAAE;QAAE,EAAE,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;IAErE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CACzC,KAAK,EACL,iBAAiB,GAAG;IAElB,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feed.types.js","sourceRoot":"","sources":["../../../src/components/Feed/Feed.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n Dispatch,\n KeyboardEventHandler,\n MouseEvent,\n ReactElement,\n ReactNode,\n Ref,\n RefObject,\n SetStateAction\n} from 'react';\n\nimport type {\n AvatarProps,\n ComboBoxProps,\n DateTimeDisplayProps,\n FileItemProps,\n FileListProps,\n MenuItemProps,\n MenuProps,\n NoChildrenProp,\n OmitStrict,\n WithAttributes\n} from '@pega/cosmos-react-core';\nimport type {\n InteractionRenderers,\n MDMap,\n RichTextEditorProps,\n RichTextEditorState,\n RichTextViewerProps\n} from '@pega/cosmos-react-rte';\nimport type { BaseDialogProps } from '@pega/cosmos-react-core/lib/components/Dialog/Dialog.types';\n\nimport type { OpenGraphData } from '../OpenGraphPreview/OpenGraphPreview';\n\n/*\n * ************************************************************\n * Internal interfaces\n * ************************************************************\n */\n\nexport interface SubComponentVariant {\n variant: 'post' | 'reply';\n}\n\nexport interface FeedAttachmentsProps\n extends SubComponentVariant,\n Pick<FileListProps, 'onDownloadAll'> {\n attachments?: FileItemProps[];\n /* OpenGraph data for an external link. If provided will render a link card. */\n openGraphData?: OpenGraphData;\n disabled?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface PostVisibilityControlProps extends Pick<FeedNewPostProps, 'visibilityMode'> {\n /* Default visibility set for the post. */\n visibility: Visibility;\n /* State setter for selecting visibility. */\n setVisibility?: Dispatch<SetStateAction<Visibility>>;\n /** Props for the private recipient control. */\n recipientInput: RecipientInputProps;\n}\n\nexport interface CustomPostSubmitEvent {\n /* The id of the post. */\n id: FeedNewPostProps['id'];\n /* The username of the post author. */\n username: string;\n /** The object identifying the type of the post. */\n postType?: PostType;\n /* The visibility of the post. */\n visibility?: Visibility;\n /* A list of recipients who have been selected to view the post. If no recipients have been added, then the post visibility is public. */\n recipients?: RecipientMenuItem[];\n}\n\nexport interface DefaultPostSubmitEvent extends CustomPostSubmitEvent {\n /* The markdown content of the post. */\n value: string;\n /* A list of attachments. */\n attachments: FileItemProps[];\n /* A function to clear any recipients selected for private posts. */\n clear: () => void;\n}\n\ninterface FeedBaseInputRegionProps extends SubComponentVariant, FeedCompositionBaseProps {\n recipients?: RecipientMenuItem[];\n postType?: PostType;\n postTypeMenu?: ReactNode;\n visibility?: Visibility;\n visibilityControl?: ReactNode;\n}\n\nexport interface FeedInputRegionProps extends FeedBaseInputRegionProps, DefaultPostConfig {\n rteRef: RefObject<RichTextEditorState>;\n}\n\nexport type FeedCustomInputRegionProps = FeedBaseInputRegionProps & CustomPostConfig;\n\nexport interface FeedEditRegionProps\n extends SubComponentVariant,\n DefaultEditConfig,\n Pick<FeedPostBaseProps, 'id'>,\n Pick<FeedPostProps, 'visibility' | 'recipients'> {\n content: RichTextEditorProps['defaultValue'];\n emptyEditText: boolean;\n setEmptyEditText: Dispatch<SetStateAction<boolean>>;\n}\n\nexport type FeedCustomEditRegionProps = CustomEditConfig &\n Pick<FeedPostBaseProps, 'id'> &\n Pick<FeedPostProps, 'visibility' | 'recipients'>;\n\nexport interface FeedModalListProps {\n /* The count for the list of items. */\n count?: number;\n /* The heading for the Modal. */\n heading: string;\n /* The list of MenuItems to render in the Modal. */\n listItems: MenuItemProps[];\n /* A callback that is triggered when the bottom of the Modal list is scrolled into view so that additional data may be displayed. */\n onLoadMore?: () => void;\n /* Indicates if the data is being currently loading */\n loading?: boolean;\n}\n\nexport interface AutopilotInfo {\n id: string;\n label: string;\n meta?: string;\n description?: string;\n}\n\nexport interface FeedContentProps {\n children: ReactElement | string;\n /*\n * A maximum height in pixels to display post content within before prompting to expand the post.\n * @default Infinity\n */\n maxContentHeight?: number;\n onLinkRender?: RichTextViewerProps['onMarkdownLinkRender'];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport type FeedContentHeaderProps = SubComponentVariant &\n Pick<\n FeedPostBaseProps,\n | 'id'\n | 'fullname'\n | 'username'\n | 'postTimestamp'\n | 'avatarSrc'\n | 'icon'\n | 'userStatus'\n | 'menuItems'\n | 'edited'\n | 'editTimestamp'\n | 'onEdit'\n | 'onUserClick'\n > &\n Pick<\n FeedPostProps,\n | 'visibility'\n | 'postType'\n | 'postContext'\n | 'recipients'\n | 'recipientsCount'\n | 'recipientsLoading'\n | 'onLoadMoreRecipients'\n | 'onRecipientInteraction'\n >;\n\nexport type FeedContentFooterProps = SubComponentVariant &\n Pick<\n FeedPostBaseProps,\n | 'id'\n | 'username'\n | 'liked'\n | 'likes'\n | 'likeCount'\n | 'interactionsEnabled'\n | 'onCommentClick'\n | 'onLikeClick'\n | 'onLikeCountInteraction'\n | 'onLoadMoreLikes'\n | 'likesLoading'\n > &\n Pick<\n FeedPostProps,\n 'replies' | 'replyCount' | 'onShowMoreReplies' | 'onShowLessReplies' | 'repliesLoading'\n >;\n\n/*\n * ************************************************************\n * External interfaces\n * ************************************************************\n */\n\nexport interface Filter {\n /* Sets DOM id for the control and associates label element via 'for' attribute. */\n id: string;\n /* Pass a string or a fragment with an Icon and string for the filter label. */\n label: ReactNode;\n /*\n * Disables the filter.\n * @default false\n */\n disabled?: boolean;\n /*\n * Sets on prop via onFilterChange.\n * @default false\n */\n on?: boolean;\n}\n\nexport interface FeedRichTextProps\n extends Pick<\n RichTextEditorProps,\n 'label' | 'onChange' | 'onFocus' | 'onBlur' | 'height' | 'defaultValue'\n >,\n Pick<FeedProps, 'onLinkRender'> {\n onKeyDown?: KeyboardEventHandler;\n}\n\nexport type SearchType = { id: string; label: string; icon?: string };\n\nexport type FeedProps = WithAttributes<\n 'div',\n NoChildrenProp & {\n /* Title for the feed. */\n title: string;\n /* Information related to the user of the Feed. */\n userInfo: {\n username: string;\n fullname: string;\n avatarSrc?: string;\n userStatus?: AvatarProps['status'];\n meta?: string[];\n timeZone?: string;\n };\n /* A set of search types that can be used to determine which data set to conduct a mention search on. */\n searchTypes?: SearchType[];\n /* A callback that runs when a decorator search has been run inside of the feed. */\n onDecoratorSearch?: (e: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => void;\n /* Results that will be shown in a Popover for a mention or tag search. */\n searchResults?: MenuItemProps[];\n /* Information related to the Autopilot mention. */\n autopilotInfo?: AutopilotInfo;\n /* A callback that is triggered when an Autopilot mention is clicked. The callback sends back the target of the element. The callback should return a function component. */\n onAutopilotClick?: (e: {\n target?: BaseDialogProps['target'];\n onDismiss?: () => void;\n }) => JSX.Element | undefined;\n /* A callback that is triggered when a mention button is clicked. The callback sends back the id, text, and type of the mention. The callback should return a function component. */\n onMentionClick?: (e: {\n id: string;\n text: string;\n type: string;\n target?: BaseDialogProps['target'];\n closeGlimpse?: () => void;\n }) => JSX.Element | undefined;\n /* A callback that is triggered when a mention link is previewed. The callback sends back the id, text, and type of the mention. */\n onMentionPreview?: (e: { id: string; text: string; type: string }) => void;\n /* A callback that is triggered when a hashtag is clicked. The callback sends back the test of the tag. */\n onTagClick?: (tag: string) => void;\n /* A list of configuration objects used to render custom components within Feed posts and replies based off of a given regex pattern. */\n interactionRenderers?: InteractionRenderers[];\n /* A mapping for various element types to render custom components for within posts. */\n markdownMap?: MDMap;\n /* A set of filters to apply to the Feed. */\n filters?: Filter[];\n /* A callback that runs when the filter is toggled. */\n onFilterChange?: (filterId: string, on: boolean) => void;\n /* A callback that is triggered when the bottom of the Feed is scrolled into view so that additional posts may be displayed. */\n onLoadMore?: () => void;\n /* Indicates if the posts are being currently loading */\n loadingPosts?: boolean;\n /* A region to hold the new post component */\n newPostRegion?: ReactNode;\n /* A list of FeedPost components */\n posts?: ReactNode[];\n /* A callback that runs when a link is rendered in the RichTextViewer. */\n onLinkRender?: (href: string, signal: AbortSignal) => Promise<OpenGraphData>;\n }\n>;\n\nexport type Visibility = 'public' | 'private';\n\nexport type PostType = { id: string; label: string; icon?: string };\n\nexport type RecipientMenuItem = Pick<\n MenuItemProps,\n 'id' | 'selected' | 'primary' | 'secondary' | 'visual'\n>;\n\nexport interface RecipientInputProps\n extends Pick<MenuProps, 'loadMore' | 'loading'>,\n Pick<ComboBoxProps, 'onMenuOpen'> {\n /* Array of private recipient options. */\n availableRecipients: RecipientMenuItem[];\n /* Array of selected private recipients. */\n recipients: RecipientMenuItem[];\n /* Callback that returns the modified search string. */\n onSearch: (search: string) => void;\n /* Callback that is triggered when a recipient is selected. */\n onAdd: (id: MenuItemProps['id']) => void;\n /* Callback that is triggered when a recipient is deselected. */\n onRemove: (id: MenuItemProps['id']) => void;\n /* Callback that is triggered when a recipient is selected or deselected. */\n onToggle?: (id: MenuItemProps['id']) => void;\n}\n\ninterface FeedCompositionBaseProps {\n /* A unique ID for the post. */\n id: string;\n /* Region to render any banners associated with the post. */\n banners?: ReactNode;\n /* If true, a progress indicator will overlay content. */\n progress?: boolean;\n}\n\nexport interface DefaultPostConfig {\n /* A set of attachment files. */\n attachments?: FileItemProps[];\n /* A callback containing a list of added files that will run whenever files are added to the message. */\n onFilesAdded?: (files: File[]) => void;\n /* Callback that runs when the submit button has been clicked. */\n onSubmit: (event: DefaultPostSubmitEvent) => void;\n}\n\nexport interface CustomPostConfig {\n /* The content composing the custom post type. */\n content: ReactNode;\n /* Callback function for the submit button. */\n onSubmit: (event: CustomPostSubmitEvent) => void;\n /* Callback function for the cancel button. */\n onCancel: (id: FeedNewPostProps['id']) => void;\n}\n\nexport type FeedNewPostProps = WithAttributes<\n 'div',\n FeedCompositionBaseProps & {\n /*\n * What visibility controls are available for this post.\n * @default 'public'\n * */\n visibilityMode?: Visibility | 'selectable';\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n /* Configuration for the default post type. */\n defaultConfig?: DefaultPostConfig;\n /* Configuration for custom post types. */\n customConfig?: CustomPostConfig;\n /* The type of the post. */\n postType?: PostType;\n /* Array of available post types. */\n postTypes?: PostType[];\n /* Callback that is triggered when the post type selection is updated. */\n onPostTypeChange?: (postType: PostType) => void;\n }\n>;\n\nexport type FeedReplyInputProps = WithAttributes<\n 'div',\n FeedCompositionBaseProps &\n DefaultPostConfig & {\n /* Callback that sets returns a shared ref to the RTE component */\n onSetInputRef?: (event: { ref: RefObject<RichTextEditorState> }) => void;\n }\n>;\n\nexport interface FeedPostBaseProps {\n /* Unique ID for the post. */\n id: string;\n /* Display name for the message author. */\n fullname: string;\n /* Username for the message author. */\n username: string;\n /* A timestamp of when the message was initially submitted. */\n postTimestamp: DateTimeDisplayProps['value'];\n /* The message content. */\n content: ReactElement | string;\n /* Attachments on the message. */\n attachments?: FileItemProps[];\n /* An image source for the message author's Avatar. */\n avatarSrc?: string;\n /* The name of an icon to render within the Avatar. */\n icon?: string;\n /* The status of the message author. */\n userStatus?: AvatarProps['status'];\n /* Set true if the user has liked the message. */\n liked?: boolean;\n /* A set of users that have liked the message. */\n likes?: MenuItemProps[];\n /* The total count of likes on the message. */\n likeCount?: number;\n /*\n * If true, the like and comment buttons will be enabled.\n * @default true\n */\n interactionsEnabled?: boolean;\n /*\n * A maximum height in pixels to display message content within before prompting to expand the message.\n * @default Infinity\n */\n maxContentHeight?: FeedContentProps['maxContentHeight'];\n /* A set of menu options for actions on the message. */\n menuItems?: MenuItemProps[];\n /* Callback that is triggered when the edit action is clicked. If undefined, the message will not be editable. */\n onEdit?: (event: {\n id: string;\n postType?: PostType;\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /*\n * Flag that indicates if a message has been previously edited.\n * @default false\n */\n edited?: boolean;\n /* A timestamp of when the message was last edited. This will only display if edited prop is true. */\n editTimestamp?: DateTimeDisplayProps['value'];\n /* Callback that runs when the mouse pointer hovers over the message. */\n onMouseEnter?: (event: { id: string }) => void;\n /* Callback that runs when the mouse pointer leaves the message. */\n onMouseLeave?: (event: { id: string }) => void;\n /* Callback that runs when the author's name or Avatar has been clicked. */\n onUserClick?: (event: { id: string; username: string }, clickEvent?: MouseEvent) => void;\n /* Callback that runs when the comment button has been clicked. */\n onCommentClick: (event: { id: string; username: string }) => void;\n /* Callback that runs when the like button has been clicked. */\n onLikeClick: (event: { id: string; user: MenuItemProps }) => void;\n /* Callback that runs when the like count on a message is hovered, focused, or clicked. */\n onLikeCountInteraction?: () => void;\n /* Callback that runs when the bottom of the extended like list Modal is reached, allowing for more likes to be loaded. */\n onLoadMoreLikes?: () => void;\n /* A loading indicator for the likes Modal. */\n likesLoading?: boolean;\n}\n\nexport interface DefaultEditConfig extends Pick<FeedCompositionBaseProps, 'progress' | 'banners'> {\n editContent?: never;\n /* Callback function for the update button. */\n onEditSubmit: (event: {\n id: FeedPostBaseProps['id'];\n value: string;\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /* Callback function for the cancel button. */\n onEditCancel?: (id: FeedPostBaseProps['id']) => void;\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n}\n\nexport interface CustomEditConfig extends Pick<FeedCompositionBaseProps, 'progress' | 'banners'> {\n /* The content composing the custom post type. */\n editContent: ReactNode;\n /* Callback function for the update button. */\n onEditSubmit: (event: {\n id: FeedPostBaseProps['id'];\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /* Callback function for the cancel button. */\n onEditCancel: (id: FeedPostBaseProps['id']) => void;\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n}\n\nexport type FeedPostProps = WithAttributes<\n 'div',\n FeedPostBaseProps & {\n /* Configuration for editing the post. */\n editConfig?: DefaultEditConfig | CustomEditConfig;\n /*\n * The type of message. If private, then only the designated recipients will be able to view the message.\n * @default 'public'\n */\n visibility?: Visibility;\n /* The type of the post. */\n postType?: PostType;\n /* The set of recipients assigned to a private message. */\n recipients?: RecipientMenuItem[];\n /* The total number of private recipients. */\n recipientsCount?: number;\n /* The context of the message. */\n postContext?: ReactElement | string;\n /* Callback that runs when the private recipient icon on a post is hovered, focused, or clicked. */\n onRecipientInteraction?: () => void;\n /* Callback that runs when the bottom of the extended private recipient list Modal is reached, allowing for more recipients to be loaded. */\n onLoadMoreRecipients?: () => void;\n /* A loading indicator for the recipients Modal. */\n recipientsLoading?: boolean;\n /* Props that will be passed into the reply input, see FeedReplyInput for more information. */\n replyInput: OmitStrict<FeedCompositionBaseProps, 'id'> & DefaultPostConfig;\n /* Determines if the reply input should be rendered. */\n replyInputShown?: boolean;\n /* An array to of replies for this message. */\n replies?: ReactElement[];\n /* A total count of all replies. */\n replyCount?: number;\n /* Callback that runs when the user clicks Show more button for the replies. */\n onShowMoreReplies?: (event: { id: FeedPostBaseProps['id'] }) => void;\n /* Callback that runs when the user clicks Show less button for the replies. */\n onShowLessReplies?: (event: { id: FeedPostBaseProps['id'] }) => void;\n /* A loading indicator for the replies. */\n repliesLoading?: boolean;\n }\n>;\n\nexport type FeedReplyProps = WithAttributes<\n 'div',\n FeedPostBaseProps & {\n /* Configuration for editing the post. */\n editConfig?: DefaultEditConfig;\n }\n>;\n"]}
|
|
1
|
+
{"version":3,"file":"Feed.types.js","sourceRoot":"","sources":["../../../src/components/Feed/Feed.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n Dispatch,\n KeyboardEventHandler,\n MouseEvent,\n ReactElement,\n ReactNode,\n Ref,\n RefObject,\n SetStateAction\n} from 'react';\n\nimport type {\n AvatarProps,\n ComboBoxProps,\n DateTimeDisplayProps,\n FileItemProps,\n FileListProps,\n MenuItemProps,\n MenuProps,\n NoChildrenProp,\n OmitStrict,\n WithAttributes\n} from '@pega/cosmos-react-core';\nimport type {\n InteractionRenderers,\n MDMap,\n RichTextEditorProps,\n RichTextEditorState,\n RichTextViewerProps\n} from '@pega/cosmos-react-rte';\nimport type { BaseDialogProps } from '@pega/cosmos-react-core/lib/components/Dialog/Dialog.types';\n\nimport type { OpenGraphData } from '../OpenGraphPreview/OpenGraphPreview';\n\n/*\n * ************************************************************\n * Internal interfaces\n * ************************************************************\n */\n\nexport interface SubComponentVariant {\n variant: 'post' | 'reply';\n}\n\nexport interface FeedAttachmentsProps\n extends SubComponentVariant,\n Pick<FileListProps, 'onDownloadAll'> {\n attachments?: FileItemProps[];\n /* OpenGraph data for an external link. If provided will render a link card. */\n openGraphData?: OpenGraphData;\n disabled?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface PostVisibilityControlProps extends Pick<FeedNewPostProps, 'visibilityMode'> {\n /* Default visibility set for the post. */\n visibility: Visibility;\n /* State setter for selecting visibility. */\n setVisibility?: Dispatch<SetStateAction<Visibility>>;\n /** Props for the private recipient control. */\n recipientInput: RecipientInputProps;\n}\n\nexport interface CustomPostSubmitEvent {\n /* The id of the post. */\n id: FeedNewPostProps['id'];\n /* The username of the post author. */\n username: string;\n /** The object identifying the type of the post. */\n postType?: PostType;\n /* The visibility of the post. */\n visibility?: Visibility;\n /* A list of recipients who have been selected to view the post. If no recipients have been added, then the post visibility is public. */\n recipients?: RecipientMenuItem[];\n}\n\nexport interface DefaultPostSubmitEvent extends CustomPostSubmitEvent {\n /* The markdown content of the post. */\n value: string;\n /* A list of attachments. */\n attachments: FileItemProps[];\n /* A function to clear any recipients selected for private posts. */\n clear: () => void;\n}\n\ninterface FeedBaseInputRegionProps extends SubComponentVariant, FeedCompositionBaseProps {\n recipients?: RecipientMenuItem[];\n postType?: PostType;\n postTypeMenu?: ReactNode;\n visibility?: Visibility;\n visibilityControl?: ReactNode;\n}\n\nexport interface FeedInputRegionProps extends FeedBaseInputRegionProps, DefaultPostConfig {\n rteRef: RefObject<RichTextEditorState>;\n}\n\nexport type FeedCustomInputRegionProps = FeedBaseInputRegionProps & CustomPostConfig;\n\nexport interface FeedEditRegionProps\n extends SubComponentVariant,\n DefaultEditConfig,\n Pick<FeedPostBaseProps, 'id'>,\n Pick<FeedPostProps, 'visibility' | 'recipients'> {\n content: RichTextEditorProps['defaultValue'];\n emptyEditText: boolean;\n setEmptyEditText: Dispatch<SetStateAction<boolean>>;\n}\n\nexport type FeedCustomEditRegionProps = CustomEditConfig &\n Pick<FeedPostBaseProps, 'id'> &\n Pick<FeedPostProps, 'visibility' | 'recipients'>;\n\nexport interface FeedModalListProps {\n /* The count for the list of items. */\n count?: number;\n /* The heading for the Modal. */\n heading: string;\n /* The list of MenuItems to render in the Modal. */\n listItems: MenuItemProps[];\n /* A callback that is triggered when the bottom of the Modal list is scrolled into view so that additional data may be displayed. */\n onLoadMore?: () => void;\n /* Indicates if the data is being currently loading */\n loading?: boolean;\n}\n\nexport interface AutopilotInfo {\n id: string;\n label: string;\n meta?: string;\n description?: string;\n}\n\nexport interface FeedContentProps {\n children: ReactElement | string;\n /*\n * A maximum height in pixels to display post content within before prompting to expand the post.\n * @default Infinity\n */\n maxContentHeight?: number;\n onLinkRender?: RichTextViewerProps['onMarkdownLinkRender'];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport type FeedContentHeaderProps = SubComponentVariant &\n Pick<\n FeedPostBaseProps,\n | 'id'\n | 'fullname'\n | 'username'\n | 'postTimestamp'\n | 'avatarSrc'\n | 'icon'\n | 'userStatus'\n | 'menuItems'\n | 'edited'\n | 'editTimestamp'\n | 'onEdit'\n | 'onUserClick'\n > &\n Pick<\n FeedPostProps,\n | 'visibility'\n | 'postType'\n | 'customPostType'\n | 'postContext'\n | 'recipients'\n | 'recipientsCount'\n | 'recipientsLoading'\n | 'onLoadMoreRecipients'\n | 'onRecipientInteraction'\n >;\n\nexport type FeedContentFooterProps = SubComponentVariant &\n Pick<\n FeedPostBaseProps,\n | 'id'\n | 'username'\n | 'liked'\n | 'likes'\n | 'likeCount'\n | 'interactionsEnabled'\n | 'onCommentClick'\n | 'onLikeClick'\n | 'onLikeCountInteraction'\n | 'onLoadMoreLikes'\n | 'likesLoading'\n > &\n Pick<\n FeedPostProps,\n 'replies' | 'replyCount' | 'onShowMoreReplies' | 'onShowLessReplies' | 'repliesLoading'\n >;\n\n/*\n * ************************************************************\n * External interfaces\n * ************************************************************\n */\n\nexport interface Filter {\n /* Sets DOM id for the control and associates label element via 'for' attribute. */\n id: string;\n /* Pass a string or a fragment with an Icon and string for the filter label. */\n label: ReactNode;\n /*\n * Disables the filter.\n * @default false\n */\n disabled?: boolean;\n /*\n * Sets on prop via onFilterChange.\n * @default false\n */\n on?: boolean;\n}\n\nexport interface FeedRichTextProps\n extends Pick<\n RichTextEditorProps,\n | 'label'\n | 'onChange'\n | 'onFocus'\n | 'onBlur'\n | 'height'\n | 'defaultValue'\n | 'labelHidden'\n | 'disabled'\n | 'readOnly'\n >,\n Pick<FeedProps, 'onLinkRender'> {\n onKeyDown?: KeyboardEventHandler;\n}\n\nexport type SearchType = { id: string; label: string; icon?: string };\n\nexport type FeedProps = WithAttributes<\n 'div',\n NoChildrenProp & {\n /* Title for the feed. */\n title: string;\n /* Information related to the user of the Feed. */\n userInfo: {\n username: string;\n fullname: string;\n avatarSrc?: string;\n userStatus?: AvatarProps['status'];\n meta?: string[];\n timeZone?: string;\n };\n /* A set of search types that can be used to determine which data set to conduct a mention search on. */\n searchTypes?: SearchType[];\n /* A callback that runs when a decorator search has been run inside of the feed. */\n onDecoratorSearch?: (e: {\n type: 'mention' | 'tag';\n search: string;\n mentionType: string;\n }) => void;\n /* Results that will be shown in a Popover for a mention or tag search. */\n searchResults?: MenuItemProps[];\n /* Information related to the Autopilot mention. */\n autopilotInfo?: AutopilotInfo;\n /* A callback that is triggered when an Autopilot mention is clicked. The callback sends back the target of the element. The callback should return a function component. */\n onAutopilotClick?: (e: {\n target?: BaseDialogProps['target'];\n onDismiss?: () => void;\n }) => JSX.Element | undefined;\n /* A callback that is triggered when a mention button is clicked. The callback sends back the id, text, and type of the mention. The callback should return a function component. */\n onMentionClick?: (e: {\n id: string;\n text: string;\n type: string;\n target?: BaseDialogProps['target'];\n closeGlimpse?: () => void;\n }) => JSX.Element | undefined;\n /* A callback that is triggered when a mention link is previewed. The callback sends back the id, text, and type of the mention. */\n onMentionPreview?: (e: { id: string; text: string; type: string }) => void;\n /* A callback that is triggered when a hashtag is clicked. The callback sends back the test of the tag. */\n onTagClick?: (tag: string) => void;\n /* A list of configuration objects used to render custom components within Feed posts and replies based off of a given regex pattern. */\n interactionRenderers?: InteractionRenderers[];\n /* A mapping for various element types to render custom components for within posts. */\n markdownMap?: MDMap;\n /* A set of filters to apply to the Feed. */\n filters?: Filter[];\n /* A callback that runs when the filter is toggled. */\n onFilterChange?: (filterId: string, on: boolean) => void;\n /* A callback that is triggered when the bottom of the Feed is scrolled into view so that additional posts may be displayed. */\n onLoadMore?: () => void;\n /* Indicates if the posts are being currently loading */\n loadingPosts?: boolean;\n /* Indicates if the feed is in initial loading state */\n progress?: boolean;\n /* A region to hold the new post component */\n newPostRegion?: ReactNode;\n /* A list of FeedPost components */\n posts?: ReactNode[];\n /* A callback that runs when a link is rendered in the RichTextViewer. */\n onLinkRender?: (href: string, signal: AbortSignal) => Promise<OpenGraphData>;\n }\n>;\n\nexport type Visibility = 'public' | 'private';\n\nexport type PostType = { id: string; label: string; icon?: string };\n\nexport type RecipientMenuItem = Pick<\n MenuItemProps,\n 'id' | 'selected' | 'primary' | 'secondary' | 'visual'\n>;\n\nexport interface RecipientInputProps\n extends Pick<MenuProps, 'loadMore' | 'loading'>,\n Pick<ComboBoxProps, 'onMenuOpen'> {\n /* Array of private recipient options. */\n availableRecipients: RecipientMenuItem[];\n /* Array of selected private recipients. */\n recipients: RecipientMenuItem[];\n /* Callback that returns the modified search string. */\n onSearch: (search: string) => void;\n /* Callback that is triggered when a recipient is selected. */\n onAdd: (id: MenuItemProps['id']) => void;\n /* Callback that is triggered when a recipient is deselected. */\n onRemove: (id: MenuItemProps['id']) => void;\n /* Callback that is triggered when a recipient is selected or deselected. */\n onToggle?: (id: MenuItemProps['id']) => void;\n}\n\ninterface FeedCompositionBaseProps {\n /* A unique ID for the post. */\n id: string;\n /* Region to render any banners associated with the post. */\n banners?: ReactNode;\n /* If true, a progress indicator will overlay content. */\n progress?: boolean;\n /* Callback fired when user requests AI text rewrite. DX component should handle the data page call and loading state, then call onSuccess with the rewritten text. */\n onRewriteClick?: (\n originalText: string,\n rewriteAction: string,\n additionalInstructions: string,\n onSuccess: (rewrittenText: string) => void,\n isEditContext: boolean\n ) => void;\n}\n\nexport interface DefaultPostConfig extends Pick<FeedRichTextProps, 'defaultValue'> {\n /* A set of attachment files. */\n attachments?: FileItemProps[];\n /* A callback containing a list of added files that will run whenever files are added to the message. */\n onFilesAdded?: (files: File[]) => void;\n /* Callback that runs when the submit button has been clicked. */\n onSubmit: (event: DefaultPostSubmitEvent) => void;\n /** Use to capture the editor's uncontrolled value when the component unmounts. */\n onUnmount?: (rteValue: string) => void;\n}\n\nexport interface CustomPostConfig {\n /* The content composing the custom post type. */\n content: ReactNode;\n /* Callback function for the submit button. */\n onSubmit: (event: CustomPostSubmitEvent) => void;\n /* Callback function for the cancel button. */\n onCancel: (id: FeedNewPostProps['id']) => void;\n}\n\nexport type FeedNewPostProps = WithAttributes<\n 'div',\n FeedCompositionBaseProps & {\n /*\n * What visibility controls are available for this post.\n * @default 'public'\n * */\n visibilityMode?: Visibility | 'selectable';\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n /* Configuration for the default post type. */\n defaultConfig?: DefaultPostConfig;\n /* Configuration for custom post types. */\n customConfig?: CustomPostConfig;\n /* The type of the post. */\n postType?: PostType;\n /* Array of available post types. */\n postTypes?: PostType[];\n /* Callback that is triggered when the post type selection is updated. */\n onPostTypeChange?: (postType: PostType) => void;\n }\n>;\n\nexport type FeedReplyInputProps = WithAttributes<\n 'div',\n FeedCompositionBaseProps &\n DefaultPostConfig & {\n /* Callback that sets returns a shared ref to the RTE component */\n onSetInputRef?: (event: { ref: RefObject<RichTextEditorState> }) => void;\n }\n>;\n\nexport interface FeedPostBaseProps {\n /* Unique ID for the post. */\n id: string;\n /* Display name for the message author. */\n fullname: string;\n /* Username for the message author. */\n username: string;\n /* A timestamp of when the message was initially submitted. */\n postTimestamp: DateTimeDisplayProps['value'];\n /* The message content. */\n content: ReactElement | string;\n /* Attachments on the message. */\n attachments?: FileItemProps[];\n /* An image source for the message author's Avatar. */\n avatarSrc?: string;\n /* The name of an icon to render within the Avatar. */\n icon?: string;\n /* The status of the message author. */\n userStatus?: AvatarProps['status'];\n /* Set true if the user has liked the message. */\n liked?: boolean;\n /* A set of users that have liked the message. */\n likes?: MenuItemProps[];\n /* The total count of likes on the message. */\n likeCount?: number;\n /*\n * If true, the like and comment buttons will be enabled.\n * @default true\n */\n interactionsEnabled?: boolean;\n /*\n * A maximum height in pixels to display message content within before prompting to expand the message.\n * @default Infinity\n */\n maxContentHeight?: FeedContentProps['maxContentHeight'];\n /* A set of menu options for actions on the message. */\n menuItems?: MenuItemProps[];\n /* Callback that is triggered when the edit action is clicked. If undefined, the message will not be editable. */\n onEdit?: (event: {\n id: string;\n postType?: PostType;\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /*\n * Flag that indicates if a message has been previously edited.\n * @default false\n */\n edited?: boolean;\n /* A timestamp of when the message was last edited. This will only display if edited prop is true. */\n editTimestamp?: DateTimeDisplayProps['value'];\n /* Callback that runs when the mouse pointer hovers over the message. */\n onMouseEnter?: (event: { id: string }) => void;\n /* Callback that runs when the mouse pointer leaves the message. */\n onMouseLeave?: (event: { id: string }) => void;\n /* Callback that runs when the author's name or Avatar has been clicked. */\n onUserClick?: (event: { id: string; username: string }, clickEvent?: MouseEvent) => void;\n /* Callback that runs when the comment button has been clicked. */\n onCommentClick: (event: { id: string; username: string }) => void;\n /* Callback that runs when the like button has been clicked. */\n onLikeClick: (event: { id: string; user: MenuItemProps }) => void;\n /* Callback that runs when the like count on a message is hovered, focused, or clicked. */\n onLikeCountInteraction?: () => void;\n /* Callback that runs when the bottom of the extended like list Modal is reached, allowing for more likes to be loaded. */\n onLoadMoreLikes?: () => void;\n /* A loading indicator for the likes Modal. */\n likesLoading?: boolean;\n}\n\nexport interface DefaultEditConfig\n extends Pick<FeedRichTextProps, 'defaultValue'>,\n Pick<FeedCompositionBaseProps, 'progress' | 'banners' | 'onRewriteClick'> {\n editContent?: never;\n /* Callback function for the update button. */\n onEditSubmit: (event: {\n id: FeedPostBaseProps['id'];\n value: string;\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /* Callback function for the cancel button. */\n onEditCancel?: (id: FeedPostBaseProps['id']) => void;\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n /** Use to capture the editor's uncontrolled value when the component unmounts. */\n onUnmount?: (rteValue: string) => void;\n}\n\nexport interface CustomEditConfig extends Pick<FeedCompositionBaseProps, 'progress' | 'banners'> {\n /* The content composing the custom post type. */\n editContent: ReactNode;\n /* Callback function for the update button. */\n onEditSubmit: (event: {\n id: FeedPostBaseProps['id'];\n visibility?: Visibility;\n recipients?: RecipientMenuItem[];\n }) => void;\n /* Callback function for the cancel button. */\n onEditCancel: (id: FeedPostBaseProps['id']) => void;\n /** Props for the private recipient Combobox. */\n recipientInput?: RecipientInputProps;\n}\n\nexport type FeedPostProps = WithAttributes<\n 'div',\n FeedPostBaseProps & {\n /* Configuration for editing the post. */\n editConfig?: DefaultEditConfig | CustomEditConfig;\n /*\n * The type of message. If private, then only the designated recipients will be able to view the message.\n * @default 'public'\n */\n visibility?: Visibility;\n /* The type of the post. */\n postType?: PostType;\n /* Indicates post is non-standard. Used for visual differentiation. */\n customPostType?: boolean;\n /* The set of recipients assigned to a private message. */\n recipients?: RecipientMenuItem[];\n /* The total number of private recipients. */\n recipientsCount?: number;\n /* The context of the message. */\n postContext?: ReactElement | string;\n /* Callback that runs when the private recipient icon on a post is hovered, focused, or clicked. */\n onRecipientInteraction?: () => void;\n /* Callback that runs when the bottom of the extended private recipient list Modal is reached, allowing for more recipients to be loaded. */\n onLoadMoreRecipients?: () => void;\n /* A loading indicator for the recipients Modal. */\n recipientsLoading?: boolean;\n /* Props that will be passed into the reply input, see FeedReplyInput for more information. */\n replyInput: OmitStrict<FeedCompositionBaseProps, 'id'> & DefaultPostConfig;\n /* Determines if the reply input should be rendered. */\n replyInputShown?: boolean;\n /* An array to of replies for this message. */\n replies?: ReactElement[];\n /* A total count of all replies. */\n replyCount?: number;\n /* Callback that runs when the user clicks Show more button for the replies. */\n onShowMoreReplies?: (event: { id: FeedPostBaseProps['id'] }) => void;\n /* Callback that runs when the user clicks Show less button for the replies. */\n onShowLessReplies?: (event: { id: FeedPostBaseProps['id'] }) => void;\n /* A loading indicator for the replies. */\n repliesLoading?: boolean;\n }\n>;\n\nexport type FeedReplyProps = WithAttributes<\n 'div',\n FeedPostBaseProps & {\n /* Configuration for editing the post. */\n editConfig?: DefaultEditConfig;\n }\n>;\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FeedAttachmentsProps } from './Feed.types';
|
|
2
|
-
export declare const StyledImagePreview: import("styled-components").
|
|
3
|
-
|
|
2
|
+
export declare const StyledImagePreview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("@pega/cosmos-react-core/lib/components/Button/BareButton").BareButtonProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement> & import("@pega/cosmos-react-core").ForwardProps, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<import("@pega/cosmos-react-core").ForwardRefForwardPropsComponent<import("@pega/cosmos-react-core/lib/components/Button/BareButton").BareButtonProps>, keyof import("react").Component<any, {}, any>>;
|
|
5
|
+
export declare const StyledAttachmentsRegion: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FeedAttachmentsProps>> & string;
|
|
4
6
|
declare const FeedAttachments: import("react").ForwardRefExoticComponent<Omit<FeedAttachmentsProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
7
|
export default FeedAttachments;
|
|
6
8
|
//# sourceMappingURL=FeedAttachments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedAttachments.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedAttachments.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FeedAttachments.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedAttachments.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,eAAO,MAAM,kBAAkB;;gOAqB7B,CAAC;AAIH,eAAO,MAAM,uBAAuB,yPAQlC,CAAC;AAIH,QAAA,MAAM,eAAe,8HAoBnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -30,8 +30,7 @@ export const StyledImagePreview = styled(BareButton)(({ theme }) => {
|
|
|
30
30
|
StyledImagePreview.defaultProps = defaultThemeProp;
|
|
31
31
|
export const StyledAttachmentsRegion = styled.div(({ variant, theme }) => {
|
|
32
32
|
return css `
|
|
33
|
-
margin:
|
|
34
|
-
calc(${variant === 'post' ? 6 : 5} * ${theme.base.spacing});
|
|
33
|
+
margin: 0.5rem calc(5 * 0.5rem) 0 calc(${variant === 'post' ? 6 : 5} * 0.5rem);
|
|
35
34
|
|
|
36
35
|
${StyledOpenGraphAnchor} {
|
|
37
36
|
margin-block-end: calc(${theme.base.spacing} / 2);
|
|
@@ -42,7 +41,7 @@ StyledAttachmentsRegion.defaultProps = defaultThemeProp;
|
|
|
42
41
|
const FeedAttachments = forwardRef(function FeedAttachments(props, ref) {
|
|
43
42
|
const { variant, attachments = [], openGraphData, disabled, onDownloadAll } = props;
|
|
44
43
|
const containerRef = useConsolidatedRef(ref);
|
|
45
|
-
return (_jsxs(StyledAttachmentsRegion, { variant: variant, ref: containerRef, children: [openGraphData && _jsx(OpenGraphPreview, { data: openGraphData, containerRef: containerRef }), _jsx(FileList, { type: 'item', items: attachments, disabled: disabled, onDownloadAll: onDownloadAll, ref: ref })] }));
|
|
44
|
+
return openGraphData || attachments.length > 0 ? (_jsxs(StyledAttachmentsRegion, { variant: variant, ref: containerRef, children: [openGraphData && _jsx(OpenGraphPreview, { data: openGraphData, containerRef: containerRef }), _jsx(FileList, { type: 'item', items: attachments, disabled: disabled, onDownloadAll: onDownloadAll, ref: ref })] })) : null;
|
|
46
45
|
});
|
|
47
46
|
export default FeedAttachments;
|
|
48
47
|
//# sourceMappingURL=FeedAttachments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedAttachments.js","sourceRoot":"","sources":["../../../src/components/Feed/FeedAttachments.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,UAAU,MAAM,0DAA0D,CAAC;AAElF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAInD,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACjE,OAAO,GAAG,CAAA;;;gCAGoB,KAA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B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7F,OAAO,GAAG,CAAA;6CACiC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;MAEjE,qBAAqB;+BACI,KAAK,CAAC,IAAI,CAAC,OAAO;;GAE9C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,eAAe,GAAG,UAAU,CAGhC,SAAS,eAAe,CAAC,KAAK,EAAE,GAAG;IACnC,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAEpF,MAAM,YAAY,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAE7C,OAAO,aAAa,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/C,MAAC,uBAAuB,IAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,aACzD,aAAa,IAAI,KAAC,gBAAgB,IAAC,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,GAAI,EACvF,KAAC,QAAQ,IACP,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,GAAG,EAAE,GAAG,GACR,IACsB,CAC3B,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { RefElement } from '@pega/cosmos-react-core';\nimport { defaultThemeProp, FileList, useConsolidatedRef } from '@pega/cosmos-react-core';\nimport BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';\n\nimport { StyledOpenGraphAnchor } from '../OpenGraphPreview/OpenGraphPreview.styles';\nimport OpenGraphPreview from '../OpenGraphPreview';\n\nimport type { FeedAttachmentsProps } from './Feed.types';\n\nexport const StyledImagePreview = styled(BareButton)(({ theme }) => {\n return css`\n line-height: 0;\n width: fit-content;\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n\n & + & {\n margin: 0;\n }\n\n &:focus {\n box-shadow: ${theme.components.button['focus-shadow']};\n }\n\n img {\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n object-fit: contain;\n max-height: 10rem;\n max-width: 100%;\n }\n `;\n});\n\nStyledImagePreview.defaultProps = defaultThemeProp;\n\nexport const StyledAttachmentsRegion = styled.div<FeedAttachmentsProps>(({ variant, theme }) => {\n return css`\n margin: 0.5rem calc(5 * 0.5rem) 0 calc(${variant === 'post' ? 6 : 5} * 0.5rem);\n\n ${StyledOpenGraphAnchor} {\n margin-block-end: calc(${theme.base.spacing} / 2);\n }\n `;\n});\n\nStyledAttachmentsRegion.defaultProps = defaultThemeProp;\n\nconst FeedAttachments = forwardRef<\n RefElement<FeedAttachmentsProps>,\n PropsWithoutRef<FeedAttachmentsProps>\n>(function FeedAttachments(props, ref) {\n const { variant, attachments = [], openGraphData, disabled, onDownloadAll } = props;\n\n const containerRef = useConsolidatedRef(ref);\n\n return openGraphData || attachments.length > 0 ? (\n <StyledAttachmentsRegion variant={variant} ref={containerRef}>\n {openGraphData && <OpenGraphPreview data={openGraphData} containerRef={containerRef} />}\n <FileList\n type='item'\n items={attachments}\n disabled={disabled}\n onDownloadAll={onDownloadAll}\n ref={ref}\n />\n </StyledAttachmentsRegion>\n ) : null;\n});\n\nexport default FeedAttachments;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const FeedButton: import("styled-components").
|
|
1
|
+
declare const FeedButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
2
2
|
emphasized?: boolean;
|
|
3
|
-
}
|
|
3
|
+
}>> & string;
|
|
4
4
|
export default FeedButton;
|
|
5
5
|
//# sourceMappingURL=FeedButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedButton.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedButton.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU;iBAAgC,OAAO;
|
|
1
|
+
{"version":3,"file":"FeedButton.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedButton.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU;iBAAgC,OAAO;YAUrD,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedContentHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedContentHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedContentHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedContentHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;AAoC5C,OAAO,KAAK,EAAE,sBAAsB,EAAsB,MAAM,cAAc,CAAC;AAoC/E,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA0OjD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
|
-
import { Avatar, Button, calculateFontSize, DateTimeDisplay, defaultThemeProp, Icon, isValidDate, MenuButton, MetaList, NoValue, registerIcon, StyledSecondary, SummaryItem, Text, Tooltip, useConfiguration, useElement, useI18n, useModalManager } from '@pega/cosmos-react-core';
|
|
4
|
+
import { Avatar, Button, calculateFontSize, DateTimeDisplay, defaultThemeProp, Icon, isValidDate, MenuButton, MetaList, NoValue, registerIcon, Status, StyledSecondary, SummaryItem, Text, Tooltip, useConfiguration, useElement, useI18n, useModalManager } from '@pega/cosmos-react-core';
|
|
5
5
|
import { parseToDate } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';
|
|
6
6
|
import { formatDateTime } from '@pega/cosmos-react-core/lib/components/DateTime/utils';
|
|
7
7
|
import { formatListToLocaleString } from '@pega/cosmos-react-core/lib/utils';
|
|
@@ -38,7 +38,7 @@ const StyledIcon = styled(Icon)(({ theme }) => {
|
|
|
38
38
|
});
|
|
39
39
|
StyledIcon.defaultProps = defaultThemeProp;
|
|
40
40
|
const FeedContentHeader = (props) => {
|
|
41
|
-
const { variant, id, fullname, username, postTimestamp, avatarSrc, icon, userStatus, visibility, postType, postContext, recipients = [], recipientsCount = 0, menuItems, edited, editTimestamp, recipientsLoading, onEdit, onLoadMoreRecipients, onRecipientInteraction, onUserClick } = props;
|
|
41
|
+
const { variant, id, fullname, username, postTimestamp, avatarSrc, icon, userStatus, visibility, postType, customPostType, postContext, recipients = [], recipientsCount = 0, menuItems, edited, editTimestamp, recipientsLoading, onEdit, onLoadMoreRecipients, onRecipientInteraction, onUserClick } = props;
|
|
42
42
|
const { autopilotInfo: { id: autopilotId, label: autopilotLabel }, userInfo: loggedInUser } = useContext(FeedContext);
|
|
43
43
|
const t = useI18n();
|
|
44
44
|
const { locale } = useConfiguration();
|
|
@@ -47,15 +47,17 @@ const FeedContentHeader = (props) => {
|
|
|
47
47
|
const [postTimestampEl, setPostTimestampEl] = useElement();
|
|
48
48
|
const [editTimestampEl, setEditTimestampEl] = useElement();
|
|
49
49
|
const autopilotAuthor = username === autopilotId;
|
|
50
|
-
const metaData = [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
const metaData = [];
|
|
51
|
+
if (postType && customPostType) {
|
|
52
|
+
metaData.push(_jsx(Status, { variant: 'warn', children: postType.label }));
|
|
53
|
+
}
|
|
54
|
+
metaData.push(_jsxs(_Fragment, { children: [_jsx(DateTimeDisplay, { ref: setPostTimestampEl, value: postTimestamp, variant: 'relative' }), postTimestamp && (_jsx(Tooltip, { target: postTimestampEl, children: formatDateTime(parseToDate(postTimestamp), {
|
|
55
|
+
t,
|
|
56
|
+
locale,
|
|
57
|
+
format: 'medium',
|
|
58
|
+
variant: 'datetime',
|
|
59
|
+
timeZone: loggedInUser.timeZone
|
|
60
|
+
}) }))] }));
|
|
59
61
|
if (edited) {
|
|
60
62
|
metaData.push(_jsxs(_Fragment, { children: [_jsx(Text, { ref: setEditTimestampEl, variant: 'secondary', children: t('edited', [
|
|
61
63
|
(editTimestamp || editTimestamp === 0) && isValidDate(parseToDate(editTimestamp)) ? (formatDateTime(parseToDate(editTimestamp), {
|
|
@@ -72,7 +74,7 @@ const FeedContentHeader = (props) => {
|
|
|
72
74
|
timeZone: loggedInUser.timeZone
|
|
73
75
|
}) }))] }));
|
|
74
76
|
}
|
|
75
|
-
if (postType) {
|
|
77
|
+
if (postType && !customPostType) {
|
|
76
78
|
if (postType.icon) {
|
|
77
79
|
metaData.push(_jsxs(_Fragment, { children: [_jsx(StyledIcon, { name: postType.icon }), _jsx(Text, { variant: 'secondary', children: postType.label })] }));
|
|
78
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedContentHeader.js","sourceRoot":"","sources":["../../../src/components/Feed/FeedContentHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,MAAM,EACN,MAAM,EACN,iBA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AS,kBAAG,CAAC,CAAC,cAAc,EAAE,CAAC,WAAW,CAAC,CAAC,IAAQ,IAC9E,EAER,SAAS,EAAE,KAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,GAAI,EACxC,OAAO,EACL,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CACvB,KAAC,UAAU,IACT,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,gBACN,CAAC,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC,EACxC,IAAI,EAAE;gBACJ,KAAK,EAAE,eAAe;aACvB,EACD,IAAI,EAAC,MAAM,EACX,QAAQ,QACR,OAAO,EAAC,QAAQ,GAChB,CACH,CAAC,CAAC,CAAC,SAAS,GAEf,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { useContext, useEffect, useMemo, useRef } from 'react';\nimport type { FC, MouseEvent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n Avatar,\n Button,\n calculateFontSize,\n DateTimeDisplay,\n defaultThemeProp,\n Icon,\n isValidDate,\n MenuButton,\n MetaList,\n NoValue,\n registerIcon,\n StyledSecondary,\n SummaryItem,\n Text,\n Tooltip,\n useConfiguration,\n useElement,\n useI18n,\n useModalManager\n} from '@pega/cosmos-react-core';\nimport type { FontSize, MetaListProps, ModalMethods } from '@pega/cosmos-react-core';\nimport { parseToDate } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';\nimport { formatDateTime } from '@pega/cosmos-react-core/lib/components/DateTime/utils';\nimport { formatListToLocaleString } from '@pega/cosmos-react-core/lib/utils';\nimport * as usersSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/users-solid.icon';\n\nimport AutopilotAvatar from '../Autopilot/AutopilotAvatar';\n\nimport { FeedContext } from './Feed.context';\nimport FeedModalList from './FeedModalList';\nimport FeedButton from './FeedButton';\nimport type { FeedContentHeaderProps, FeedModalListProps } from './Feed.types';\n\nregisterIcon(usersSolidIcon);\n\nconst StyledFeedContentHeader = styled.div(({ theme }) => {\n return css`\n margin-block-end: ${theme.base.spacing};\n column-gap: ${theme.base.spacing};\n\n ${StyledSecondary} {\n ${FeedButton} {\n /* Negative margin needed to align the icon with the author name on the line above. */\n margin-inline-start: calc(-0.75 * ${theme.base.spacing});\n }\n }\n `;\n});\n\nStyledFeedContentHeader.defaultProps = defaultThemeProp;\n\nconst StyledName = styled(Text)`\n display: inline-block;\n`;\n\nconst StyledIcon = styled(Icon)(({ theme }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n height: ${fontSizes[theme.components.text.secondary['font-size'] as FontSize]};\n fill: ${theme.base.palette['foreground-color']};\n padding-inline-end: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledIcon.defaultProps = defaultThemeProp;\n\nconst FeedContentHeader: FC<FeedContentHeaderProps> = (props: FeedContentHeaderProps) => {\n const {\n variant,\n id,\n fullname,\n username,\n postTimestamp,\n avatarSrc,\n icon,\n userStatus,\n visibility,\n postType,\n postContext,\n recipients = [],\n recipientsCount = 0,\n menuItems,\n edited,\n editTimestamp,\n recipientsLoading,\n onEdit,\n onLoadMoreRecipients,\n onRecipientInteraction,\n onUserClick\n } = props;\n\n const {\n autopilotInfo: { id: autopilotId, label: autopilotLabel },\n userInfo: loggedInUser\n } = useContext(FeedContext);\n const t = useI18n();\n const { locale } = useConfiguration();\n const { create } = useModalManager();\n\n const recipientsModalRef = useRef<ModalMethods<FeedModalListProps>>();\n const [postTimestampEl, setPostTimestampEl] = useElement<HTMLSpanElement>();\n const [editTimestampEl, setEditTimestampEl] = useElement<HTMLSpanElement>();\n\n const autopilotAuthor = username === autopilotId;\n\n const metaData: MetaListProps['items'] = [\n <>\n <DateTimeDisplay ref={setPostTimestampEl} value={postTimestamp} variant='relative' />\n {postTimestamp && (\n <Tooltip target={postTimestampEl}>\n {formatDateTime(parseToDate(postTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'datetime',\n timeZone: loggedInUser.timeZone\n })}\n </Tooltip>\n )}\n </>\n ];\n\n if (edited) {\n metaData.push(\n <>\n <Text ref={setEditTimestampEl} variant='secondary'>\n {t('edited', [\n (editTimestamp || editTimestamp === 0) && isValidDate(parseToDate(editTimestamp)) ? (\n formatDateTime(parseToDate(editTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'relative'\n })\n ) : (\n <NoValue />\n )\n ])}\n </Text>\n {editTimestamp && (\n <Tooltip target={editTimestampEl}>\n {formatDateTime(parseToDate(editTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'datetime',\n timeZone: loggedInUser.timeZone\n })}\n </Tooltip>\n )}\n </>\n );\n }\n\n if (postType) {\n if (postType.icon) {\n metaData.push(\n <>\n <StyledIcon name={postType.icon} />\n <Text variant='secondary'>{postType.label}</Text>\n </>\n );\n } else {\n metaData.push(postType.label);\n }\n }\n\n if (visibility === 'private') {\n const recipientsList = recipients.map(x => x.primary);\n\n if (recipientsList.length === 0) {\n metaData.push(`${t('feed_visible_to')} ${t('you').toLowerCase()}`);\n } else if (recipientsList.length === 1) {\n metaData.push(`${t('feed_visible_to')} ${recipients[0].primary}`);\n } else {\n metaData.push(\n <>\n <Text variant='secondary'>{t('feed_visible_to')} </Text>\n <Button\n variant='link'\n onClick={() => {\n recipientsModalRef.current = create(FeedModalList, {\n heading: t('feed_visible_to'),\n listItems: recipients,\n onLoadMore: onLoadMoreRecipients,\n loading: recipientsLoading\n });\n }}\n onFocus={onRecipientInteraction}\n onMouseOver={onRecipientInteraction}\n aria-label={`${t('feed_private')} ${t('feed_visible_to')} ${formatListToLocaleString(\n recipientsList,\n t,\n locale,\n {\n count: recipientsCount\n }\n )}`}\n label={formatListToLocaleString(recipientsList, t, locale, {\n count: recipientsCount,\n separator: '\\n'\n })}\n >\n {recipientsCount} {t('feed_users').toLowerCase()}\n </Button>\n </>\n );\n }\n }\n\n const userVisual = autopilotAuthor ? (\n <AutopilotAvatar />\n ) : (\n <Avatar\n name={fullname}\n size={variant === 'post' ? 'l' : 'm'}\n imageSrc={avatarSrc}\n icon={icon}\n status={userStatus}\n />\n );\n\n const actionMenuItems = useMemo(() => {\n let actions: FeedContentHeaderProps['menuItems'] = [];\n\n if (username === loggedInUser.username && onEdit) {\n actions.push({\n primary: t('edit'),\n id: 'edit',\n onClick: () => onEdit({ id, postType, visibility, recipients })\n });\n }\n\n if (menuItems) {\n actions = actions.concat(menuItems);\n }\n\n return actions;\n }, [menuItems, username, loggedInUser.username, onEdit, id, postType, visibility, recipients]);\n\n useEffect(() => {\n if (recipients.length) {\n recipientsModalRef.current?.update({\n heading: t('feed_visible_to'),\n listItems: recipients,\n onLoadMore: onLoadMoreRecipients,\n loading: recipientsLoading\n });\n }\n }, [recipients, onLoadMoreRecipients, recipientsLoading]);\n\n return (\n <SummaryItem\n as={StyledFeedContentHeader}\n visual={userVisual}\n primary={\n <div>\n {onUserClick ? (\n <Button\n variant='text'\n onClick={(event: MouseEvent) => {\n onUserClick?.({ id, username }, event);\n }}\n >\n <Text variant={variant === 'post' ? 'h3' : 'h4'}>\n {autopilotAuthor ? autopilotLabel : fullname}\n </Text>\n </Button>\n ) : (\n <StyledName variant={variant === 'post' ? 'h3' : 'h4'}>\n {autopilotAuthor ? autopilotLabel : fullname}\n </StyledName>\n )}\n {postContext && <Text variant='primary'> {t('feed_context', [postContext])}</Text>}\n </div>\n }\n secondary={<MetaList items={metaData} />}\n actions={\n actionMenuItems.length ? (\n <MenuButton\n text={t('actions')}\n aria-label={t('actions_for', [fullname])}\n menu={{\n items: actionMenuItems\n }}\n icon='more'\n iconOnly\n variant='simple'\n />\n ) : undefined\n }\n />\n );\n};\n\nexport default FeedContentHeader;\n"]}
|
|
1
|
+
{"version":3,"file":"FeedContentHeader.js","sourceRoot":"","sources":["../../../src/components/Feed/FeedContentHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;A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,IAAI,CAAC,CAAC,CAAC,IAAI,YAC5C,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,GACvC,GACA,CACV,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,YAClD,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,GACjC,CACd,EACA,WAAW,IAAI,MAAC,IAAI,IAAC,OAAO,EAAC,SAAS,kBAAG,CAAC,CAAC,cAAc,EAAE,CAAC,WAAW,CAAC,CAAC,IAAQ,IAC9E,EAER,SAAS,EAAE,KAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,GAAI,EACxC,OAAO,EACL,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CACvB,KAAC,UAAU,IACT,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,gBACN,CAAC,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC,EACxC,IAAI,EAAE;gBACJ,KAAK,EAAE,eAAe;aACvB,EACD,IAAI,EAAC,MAAM,EACX,QAAQ,QACR,OAAO,EAAC,QAAQ,GAChB,CACH,CAAC,CAAC,CAAC,SAAS,GAEf,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { useContext, useEffect, useMemo, useRef } from 'react';\nimport type { FC, MouseEvent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport {\n Avatar,\n Button,\n calculateFontSize,\n DateTimeDisplay,\n defaultThemeProp,\n Icon,\n isValidDate,\n MenuButton,\n MetaList,\n NoValue,\n registerIcon,\n Status,\n StyledSecondary,\n SummaryItem,\n Text,\n Tooltip,\n useConfiguration,\n useElement,\n useI18n,\n useModalManager\n} from '@pega/cosmos-react-core';\nimport type { FontSize, MetaListProps, ModalMethods } from '@pega/cosmos-react-core';\nimport { parseToDate } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';\nimport { formatDateTime } from '@pega/cosmos-react-core/lib/components/DateTime/utils';\nimport { formatListToLocaleString } from '@pega/cosmos-react-core/lib/utils';\nimport * as usersSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/users-solid.icon';\n\nimport AutopilotAvatar from '../Autopilot/AutopilotAvatar';\n\nimport { FeedContext } from './Feed.context';\nimport FeedModalList from './FeedModalList';\nimport FeedButton from './FeedButton';\nimport type { FeedContentHeaderProps, FeedModalListProps } from './Feed.types';\n\nregisterIcon(usersSolidIcon);\n\nconst StyledFeedContentHeader = styled.div(({ theme }) => {\n return css`\n margin-block-end: ${theme.base.spacing};\n column-gap: ${theme.base.spacing};\n\n ${StyledSecondary} {\n ${FeedButton} {\n /* Negative margin needed to align the icon with the author name on the line above. */\n margin-inline-start: calc(-0.75 * ${theme.base.spacing});\n }\n }\n `;\n});\n\nStyledFeedContentHeader.defaultProps = defaultThemeProp;\n\nconst StyledName = styled(Text)`\n display: inline-block;\n`;\n\nconst StyledIcon = styled(Icon)(({ theme }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n height: ${fontSizes[theme.components.text.secondary['font-size'] as FontSize]};\n fill: ${theme.base.palette['foreground-color']};\n padding-inline-end: calc(0.5 * ${theme.base.spacing});\n `;\n});\n\nStyledIcon.defaultProps = defaultThemeProp;\n\nconst FeedContentHeader: FC<FeedContentHeaderProps> = (props: FeedContentHeaderProps) => {\n const {\n variant,\n id,\n fullname,\n username,\n postTimestamp,\n avatarSrc,\n icon,\n userStatus,\n visibility,\n postType,\n customPostType,\n postContext,\n recipients = [],\n recipientsCount = 0,\n menuItems,\n edited,\n editTimestamp,\n recipientsLoading,\n onEdit,\n onLoadMoreRecipients,\n onRecipientInteraction,\n onUserClick\n } = props;\n\n const {\n autopilotInfo: { id: autopilotId, label: autopilotLabel },\n userInfo: loggedInUser\n } = useContext(FeedContext);\n const t = useI18n();\n const { locale } = useConfiguration();\n const { create } = useModalManager();\n\n const recipientsModalRef = useRef<ModalMethods<FeedModalListProps>>();\n const [postTimestampEl, setPostTimestampEl] = useElement<HTMLSpanElement>();\n const [editTimestampEl, setEditTimestampEl] = useElement<HTMLSpanElement>();\n\n const autopilotAuthor = username === autopilotId;\n\n const metaData: MetaListProps['items'] = [];\n\n if (postType && customPostType) {\n metaData.push(<Status variant='warn'>{postType.label}</Status>);\n }\n\n metaData.push(\n <>\n <DateTimeDisplay ref={setPostTimestampEl} value={postTimestamp} variant='relative' />\n {postTimestamp && (\n <Tooltip target={postTimestampEl}>\n {formatDateTime(parseToDate(postTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'datetime',\n timeZone: loggedInUser.timeZone\n })}\n </Tooltip>\n )}\n </>\n );\n\n if (edited) {\n metaData.push(\n <>\n <Text ref={setEditTimestampEl} variant='secondary'>\n {t('edited', [\n (editTimestamp || editTimestamp === 0) && isValidDate(parseToDate(editTimestamp)) ? (\n formatDateTime(parseToDate(editTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'relative'\n })\n ) : (\n <NoValue />\n )\n ])}\n </Text>\n {editTimestamp && (\n <Tooltip target={editTimestampEl}>\n {formatDateTime(parseToDate(editTimestamp), {\n t,\n locale,\n format: 'medium',\n variant: 'datetime',\n timeZone: loggedInUser.timeZone\n })}\n </Tooltip>\n )}\n </>\n );\n }\n\n if (postType && !customPostType) {\n if (postType.icon) {\n metaData.push(\n <>\n <StyledIcon name={postType.icon} />\n <Text variant='secondary'>{postType.label}</Text>\n </>\n );\n } else {\n metaData.push(postType.label);\n }\n }\n\n if (visibility === 'private') {\n const recipientsList = recipients.map(x => x.primary);\n\n if (recipientsList.length === 0) {\n metaData.push(`${t('feed_visible_to')} ${t('you').toLowerCase()}`);\n } else if (recipientsList.length === 1) {\n metaData.push(`${t('feed_visible_to')} ${recipients[0].primary}`);\n } else {\n metaData.push(\n <>\n <Text variant='secondary'>{t('feed_visible_to')} </Text>\n <Button\n variant='link'\n onClick={() => {\n recipientsModalRef.current = create(FeedModalList, {\n heading: t('feed_visible_to'),\n listItems: recipients,\n onLoadMore: onLoadMoreRecipients,\n loading: recipientsLoading\n });\n }}\n onFocus={onRecipientInteraction}\n onMouseOver={onRecipientInteraction}\n aria-label={`${t('feed_private')} ${t('feed_visible_to')} ${formatListToLocaleString(\n recipientsList,\n t,\n locale,\n {\n count: recipientsCount\n }\n )}`}\n label={formatListToLocaleString(recipientsList, t, locale, {\n count: recipientsCount,\n separator: '\\n'\n })}\n >\n {recipientsCount} {t('feed_users').toLowerCase()}\n </Button>\n </>\n );\n }\n }\n\n const userVisual = autopilotAuthor ? (\n <AutopilotAvatar />\n ) : (\n <Avatar\n name={fullname}\n size={variant === 'post' ? 'l' : 'm'}\n imageSrc={avatarSrc}\n icon={icon}\n status={userStatus}\n />\n );\n\n const actionMenuItems = useMemo(() => {\n let actions: FeedContentHeaderProps['menuItems'] = [];\n\n if (username === loggedInUser.username && onEdit) {\n actions.push({\n primary: t('edit'),\n id: 'edit',\n onClick: () => onEdit({ id, postType, visibility, recipients })\n });\n }\n\n if (menuItems) {\n actions = actions.concat(menuItems);\n }\n\n return actions;\n }, [menuItems, username, loggedInUser.username, onEdit, id, postType, visibility, recipients]);\n\n useEffect(() => {\n if (recipients.length) {\n recipientsModalRef.current?.update({\n heading: t('feed_visible_to'),\n listItems: recipients,\n onLoadMore: onLoadMoreRecipients,\n loading: recipientsLoading\n });\n }\n }, [recipients, onLoadMoreRecipients, recipientsLoading]);\n\n return (\n <SummaryItem\n as={StyledFeedContentHeader}\n visual={userVisual}\n primary={\n <div>\n {onUserClick ? (\n <Button\n variant='text'\n onClick={(event: MouseEvent) => {\n onUserClick?.({ id, username }, event);\n }}\n >\n <Text variant={variant === 'post' ? 'h3' : 'h4'}>\n {autopilotAuthor ? autopilotLabel : fullname}\n </Text>\n </Button>\n ) : (\n <StyledName variant={variant === 'post' ? 'h3' : 'h4'}>\n {autopilotAuthor ? autopilotLabel : fullname}\n </StyledName>\n )}\n {postContext && <Text variant='primary'> {t('feed_context', [postContext])}</Text>}\n </div>\n }\n secondary={<MetaList items={metaData} />}\n actions={\n actionMenuItems.length ? (\n <MenuButton\n text={t('actions')}\n aria-label={t('actions_for', [fullname])}\n menu={{\n items: actionMenuItems\n }}\n icon='more'\n iconOnly\n variant='simple'\n />\n ) : undefined\n }\n />\n );\n};\n\nexport default FeedContentHeader;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { FeedCustomEditRegionProps } from './Feed.types';
|
|
3
|
-
export declare const StyledActions: import("styled-components").
|
|
3
|
+
export declare const StyledActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
declare const FeedCustomEditRegion: FC<FeedCustomEditRegionProps>;
|
|
5
5
|
export default FeedCustomEditRegion;
|
|
6
6
|
//# sourceMappingURL=FeedCustomEditRegion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedCustomEditRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedCustomEditRegion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAG9D,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"FeedCustomEditRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedCustomEditRegion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAG9D,eAAO,MAAM,aAAa,6NAIzB,CAAC;AAEF,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA6DvD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { FeedCustomInputRegionProps } from './Feed.types';
|
|
3
|
-
export declare const StyledActions: import("styled-components").
|
|
3
|
+
export declare const StyledActions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
declare const FeedCustomInputRegion: FC<FeedCustomInputRegionProps>;
|
|
5
5
|
export default FeedCustomInputRegion;
|
|
6
6
|
//# sourceMappingURL=FeedCustomInputRegion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedCustomInputRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedCustomInputRegion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgBhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAkB/D,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"FeedCustomInputRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedCustomInputRegion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgBhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAkB/D,eAAO,MAAM,aAAa,6NAIzB,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAuEzD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedEditRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedEditRegion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedEditRegion.d.ts","sourceRoot":"","sources":["../../../src/components/Feed/FeedEditRegion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAiB,MAAM,OAAO,CAAC;AAuB/C,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,cAAc,CAAC;AAmB3E,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoS3C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|