-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MM-402] Remove react-markdown package and use functions exposed by m…
…attermost webapp (#491) * [MM-402] Remove react-markdown package and use functions exposed by mattermost webapp * [MM-402] Update activityFunc function type * [MM-402] Fix type error * [MM-402] Remove as to assign type and add if condition
- Loading branch information
1 parent
191a11a
commit d013ec1
Showing
7 changed files
with
67 additions
and
657 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
|
||
export type ContextArgs = {channel_id: string}; | ||
|
||
type FormatTextOptions = { | ||
atMentions?: boolean; | ||
markdown?: boolean; | ||
} | ||
|
||
type MessageHtmlToComponentOptions = { | ||
mentionHighlight: boolean; | ||
} | ||
|
||
export interface PluginRegistry { | ||
registerReducer(reducer) | ||
registerPostTypeComponent(typeName: string, component: React.ElementType) | ||
registerRightHandSidebarComponent(component: React.ReactNode, title: string | JSX.Element) | ||
registerSlashCommandWillBePostedHook(hook: (rawMessage: string, contextArgs: ContextArgs) => Promise<{}>) | ||
registerWebSocketEventHandler(event: string, handler: (msg: any) => void) | ||
registerAppBarComponent(iconUrl: string, action: () => void, tooltipText: string) | ||
registerLeftSidebarHeaderComponent(component: React.ReactNode) | ||
registerBottomTeamSidebarComponent(component: React.ReactNode) | ||
registerPopoverUserAttributesComponent(component: React.ReactNode) | ||
registerLinkTooltipComponent(component: React.ReactNode) | ||
registerReconnectHandler(handler: any) | ||
|
||
// Add more if needed from https://developers.mattermost.com/extend/plugins/webapp/reference | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters