@apolitical/component-library 6.5.0 → 6.6.0-SW.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/discussion/components/conversation/conversation.d.ts +1 -1
- package/discussion/components/discussion-form-card/discussion-form-card.d.ts +2 -2
- package/discussion/components/form/components/guidelines/guidelines.d.ts +1 -1
- package/discussion/components/form/components/label/label.d.ts +1 -1
- package/discussion/components/form/form.type.d.ts +1 -1
- package/discussion/components/post/components/author-section/author-section.d.ts +14 -0
- package/discussion/components/post/components/author-section/index.d.ts +1 -0
- package/discussion/components/post/components/categories/categories.d.ts +5 -0
- package/discussion/components/post/components/categories/index.d.ts +1 -0
- package/discussion/components/post/components/index.d.ts +4 -0
- package/discussion/components/post/components/poll-content/index.d.ts +1 -0
- package/discussion/components/post/components/poll-content/poll-content.d.ts +10 -0
- package/discussion/components/post/components/post-content/index.d.ts +1 -0
- package/discussion/components/post/components/post-content/post-content.d.ts +15 -0
- package/discussion/components/post/post.d.ts +13 -5
- package/discussion/components/post/post.helpers.d.ts +5 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +5 -2
- package/discussion/feeds/activities-feed/cache/hooks/create-vote/create-vote.hook.d.ts +8 -0
- package/discussion/feeds/activities-feed/cache/hooks/create-vote/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +2 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove-vote/index.d.ts +1 -0
- package/discussion/feeds/activities-feed/cache/hooks/remove-vote/remove-vote.hook.d.ts +8 -0
- package/discussion/feeds/replies-feed/components/nested-replies-feed/nested-replies-feed.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
- package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -1
- package/discussion/index.d.ts +1 -2
- package/discussion/sections/activity-section/activity-section.d.ts +1 -1
- package/discussion/shared/constants.d.ts +1 -0
- package/discussion/shared/helpers/index.d.ts +2 -1
- package/discussion/shared/helpers/poll.helper.d.ts +23 -0
- package/discussion/shared/interfaces/activity.interface.d.ts +16 -1
- package/discussion/shared/interfaces/discussion.interface.d.ts +14 -3
- package/discussion/shared/interfaces/reaction.interface.d.ts +1 -1
- package/form/components/rich-text-editor/components/context/context.d.ts +1 -1
- package/form/components/rich-text-editor/rich-text-editor.types.d.ts +1 -1
- package/helpers/intl.d.ts +2 -0
- package/helpers/replace-mention-data.d.ts +1 -1
- package/index.js +56 -56
- package/index.mjs +6962 -6719
- package/navigation/action-bar/action-bar.d.ts +1 -2
- package/navigation/action-bar/components/likes/likes.d.ts +1 -1
- package/package.json +1 -1
- package/polls/poll/index.d.ts +1 -1
- package/polls/poll/poll.d.ts +8 -9
- package/polls/poll/poll.mocks.d.ts +1 -0
- package/polls/poll/poll.types.d.ts +9 -0
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IConversation, IListMemberData } from '
|
|
2
|
+
import type { IConversation, IListMemberData } from '../../../discussion/shared';
|
|
3
3
|
export declare const ConversationContext: React.Context<{
|
|
4
4
|
showForm: boolean;
|
|
5
5
|
prepopulateForm?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IMentions } from '
|
|
1
|
+
import type { IDiscussionForm } from './../form';
|
|
2
|
+
import type { IMentions } from '../../../discussion/shared';
|
|
3
3
|
export interface CachedText {
|
|
4
4
|
/** Whether the cached text should show on the form card; this is false by default
|
|
5
5
|
* to prevent the text changing right away and distracting the user */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ILabelProps } from '../../../../../form';
|
|
2
|
-
import { IDiscussionContentType } from '
|
|
2
|
+
import type { IDiscussionContentType } from '../../../../../discussion/shared';
|
|
3
3
|
interface Props extends ILabelProps {
|
|
4
4
|
/** The internationalisation path for the label */
|
|
5
5
|
intlPath: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IEnrichedUrlData } from '../../../navigation';
|
|
2
|
-
import type { ICategory,
|
|
2
|
+
import type { ICategory, IDiscussionContent, IDiscussionFormFunctions, IMentions } from '../../../discussion/shared';
|
|
3
3
|
interface IPollData {
|
|
4
4
|
options: string[];
|
|
5
5
|
multipleAnswers: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IFullDiscussionContent } from '../../../../../discussion/shared';
|
|
2
|
+
import type { IDiscussionPostProps } from '../../post';
|
|
3
|
+
export interface IAuthorSectionProps {
|
|
4
|
+
author: IFullDiscussionContent['author'];
|
|
5
|
+
originalAuthorId?: string;
|
|
6
|
+
createdAt: IFullDiscussionContent['createdAt'];
|
|
7
|
+
contentData: {
|
|
8
|
+
didEdit: boolean;
|
|
9
|
+
};
|
|
10
|
+
content: IDiscussionPostProps['content'];
|
|
11
|
+
badges?: IDiscussionPostProps['badges'];
|
|
12
|
+
gtmContext?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function AuthorSection({ author, originalAuthorId, createdAt, contentData, content, gtmContext, badges, }: IAuthorSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AuthorSection } from './author-section';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Categories } from './categories';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PollContent } from './poll-content';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPollFns } from '../../../../../polls';
|
|
2
|
+
import { IDiscussionPostProps } from '../../post';
|
|
3
|
+
export interface IPollContentProps {
|
|
4
|
+
content: IDiscussionPostProps['content'];
|
|
5
|
+
contentData: {
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
functions: IPollFns;
|
|
9
|
+
}
|
|
10
|
+
export default function PollContent({ content, contentData, functions, }: IPollContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PostContent } from './post-content';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IDiscussionPostProps } from '../../post';
|
|
2
|
+
import type { IFullDiscussionContent } from '../../../../../discussion';
|
|
3
|
+
export interface IPostContentProps {
|
|
4
|
+
links: IDiscussionPostProps['links'];
|
|
5
|
+
contentData: {
|
|
6
|
+
title: string;
|
|
7
|
+
isEditing: boolean;
|
|
8
|
+
didEdit: boolean;
|
|
9
|
+
postBody: string;
|
|
10
|
+
data: IFullDiscussionContent['data'];
|
|
11
|
+
};
|
|
12
|
+
postCutOff: number;
|
|
13
|
+
content: IDiscussionPostProps['content'];
|
|
14
|
+
}
|
|
15
|
+
export default function PostContent({ links, contentData, postCutOff, content, }: IPostContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { IBadgesOption } from '../../../user/badges';
|
|
2
|
+
import type { IPollFns, IPollProps } from '../../../polls';
|
|
3
|
+
import type { IMemberComponentProps } from '../../../user';
|
|
4
|
+
import type { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, DiscussionListLikesFunction, IDiscussionFormFns, IForceHide, IFullDiscussionContent } from '../../../discussion/shared';
|
|
5
|
+
import type { IBadgesOption } from '../../../user/badges';
|
|
6
6
|
export interface IPostContent extends IFullDiscussionContent {
|
|
7
7
|
/** The post body */
|
|
8
8
|
postBody?: string;
|
|
@@ -10,6 +10,13 @@ export interface IPostContent extends IFullDiscussionContent {
|
|
|
10
10
|
/** Custom props to pass through to the Member component */
|
|
11
11
|
member: IMemberComponentProps;
|
|
12
12
|
};
|
|
13
|
+
/** The options for the Poll */
|
|
14
|
+
pollOptions?: IPollProps['options'];
|
|
15
|
+
/** The settings for the Poll */
|
|
16
|
+
pollSettings?: IPollProps['settings'];
|
|
17
|
+
}
|
|
18
|
+
export interface IPollFunctions extends IPollFns {
|
|
19
|
+
removePoll: (args?: object) => void;
|
|
13
20
|
}
|
|
14
21
|
export interface IDiscussionPostProps {
|
|
15
22
|
/** The element that will render around the content */
|
|
@@ -44,6 +51,7 @@ export interface IDiscussionPostProps {
|
|
|
44
51
|
/** List the likes on the post */
|
|
45
52
|
listLikes: DiscussionListLikesFunction;
|
|
46
53
|
};
|
|
54
|
+
polls?: IPollFunctions;
|
|
47
55
|
comments: {
|
|
48
56
|
/** Open comments on a post */
|
|
49
57
|
openComments?: () => void;
|
|
@@ -89,5 +97,5 @@ export interface IDiscussionPostProps {
|
|
|
89
97
|
/** The ID of the parent, used for slugs */
|
|
90
98
|
parentId: string;
|
|
91
99
|
}
|
|
92
|
-
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
100
|
+
declare const Post: ({ element, content, userHasPermissions, userHasOwnerPermissions, isLoading, originalAuthorId, forceHide, functions, links, className, gtmContext, children, isTruncated, setFocus, isCommunity, badges, basePath, parentId, locale, }: IDiscussionPostProps) => import("react/jsx-runtime").JSX.Element;
|
|
93
101
|
export default Post;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { IMentions } from '
|
|
1
|
+
import type { IMentions } from '../../../discussion/shared';
|
|
2
2
|
import { ListMembers } from '../../../form';
|
|
3
3
|
import { ICategory } from '../../shared';
|
|
4
4
|
export declare const getPostBody: (body: string, isTruncated: boolean | number, mentions?: IMentions, listMembers?: ListMembers) => Promise<string>;
|
|
5
5
|
export declare const enrichPostCategories: (postCategories: string[], allCategories: ICategory[]) => (ICategory | undefined)[];
|
|
6
|
+
export declare const allowClickUntilClassNameFound: (event: React.MouseEvent<HTMLElement, MouseEvent>, contentClasses: string[], breakClassName: string) => boolean;
|
|
7
|
+
export declare const getTitleText: (title: string | {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
} | undefined, locale: string) => string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IProfileFormProps } from '../../../form';
|
|
3
|
-
import { ICategory } from '../../../discussion/shared';
|
|
3
|
+
import { ICategory, type IDiscussionFormFns } from '../../../discussion/shared';
|
|
4
4
|
import type { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
5
|
-
import type { IDiscussionFormFns } from '../../../discussion/discussion.d';
|
|
6
5
|
import { type IQueryFns } from './cache';
|
|
7
6
|
interface Props {
|
|
8
7
|
/** The base path, used for slugs */
|
|
@@ -26,9 +25,13 @@ interface Props {
|
|
|
26
25
|
/** Function to leave the community */
|
|
27
26
|
leave: () => Promise<void>;
|
|
28
27
|
likes: ILikesFeedQueryFns;
|
|
28
|
+
/** Query functions for polls */
|
|
29
|
+
polls: IQueryFns;
|
|
29
30
|
};
|
|
30
31
|
/** Props to pass into the profile form */
|
|
31
32
|
profile: IProfileFormProps;
|
|
33
|
+
/** The locale of the page */
|
|
34
|
+
locale?: string;
|
|
32
35
|
}
|
|
33
36
|
declare const ActivitiesFeed: React.FC<Props>;
|
|
34
37
|
export default ActivitiesFeed;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IMutationContext } from '../../../../../../discussion/shared';
|
|
2
|
+
import type { ICache, ICacheSubitem } from '../..';
|
|
3
|
+
interface ICreateVoteVars {
|
|
4
|
+
activityId: string;
|
|
5
|
+
reactionId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function useCreateVote({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, queryClient, queryKey, user, }: IMutationContext<ICacheSubitem, Error, ICreateVoteVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<import('../../../../../../discussion/shared').IReaction, Error, ICreateVoteVars, ICache>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-vote.hook';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './create';
|
|
2
|
+
export * from './create-vote';
|
|
2
3
|
export * from './edit';
|
|
3
4
|
export * from './feed';
|
|
4
5
|
export * from './like';
|
|
5
6
|
export * from './list';
|
|
6
7
|
export * from './pin';
|
|
7
8
|
export * from './remove';
|
|
9
|
+
export * from './remove-vote';
|
|
8
10
|
export * from './unlike';
|
|
9
11
|
export * from './unpin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './remove-vote.hook';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IMutationContext } from '../../../../../../discussion/shared';
|
|
2
|
+
import type { ICache } from '../..';
|
|
3
|
+
interface IRemoveVoteVars {
|
|
4
|
+
activityId: string;
|
|
5
|
+
reactionId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function useRemoveVote({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, user, }: IMutationContext<unknown, Error, IRemoveVoteVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, Error, IRemoveVoteVars, ICache>;
|
|
8
|
+
export {};
|
package/discussion/feeds/replies-feed/components/nested-replies-feed/nested-replies-feed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type
|
|
2
|
+
import { type IDiscussionFormFns } from '../../../../../discussion/shared';
|
|
3
3
|
import { ILikesFeedQueryFns } from '../../../../../discussion/feeds/likes-feed';
|
|
4
4
|
import { type IQueryFns } from '../../cache';
|
|
5
5
|
interface NestedRepliesFunctions {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ILikesFeedQueryFns } from '../../../../../discussion/feeds/likes-feed';
|
|
3
|
-
import type
|
|
3
|
+
import { type IDiscussionFormFns } from '../../../../../discussion/shared';
|
|
4
4
|
import type { IParsedReplies, IQueryFns } from '../../cache';
|
|
5
5
|
interface IMutations {
|
|
6
6
|
edit: (params: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IProfileFormProps } from '../../../form';
|
|
3
|
+
import { type IDiscussionFormFns } from '../../../discussion/shared';
|
|
3
4
|
import { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
4
|
-
import type { IDiscussionFormFns } from '../../discussion';
|
|
5
5
|
import { type IQueryFns } from './cache';
|
|
6
6
|
interface RepliesFunctions {
|
|
7
7
|
/** Functions for the replies query */
|
package/discussion/index.d.ts
CHANGED
|
@@ -2,5 +2,4 @@ export * from './components';
|
|
|
2
2
|
export * from './feeds';
|
|
3
3
|
export * from './discussion.helpers';
|
|
4
4
|
export * from './sections';
|
|
5
|
-
export
|
|
6
|
-
export type { IDiscussionFormFns } from './discussion.d';
|
|
5
|
+
export * from './shared/interfaces';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type IProfileFormProps } from '../../../form';
|
|
3
3
|
import { type ILikesFeedQueryFns, type IRepliesFeedQueryFns } from '../../../discussion/feeds';
|
|
4
|
-
import type
|
|
4
|
+
import { type IDiscussionFormFns } from '../../../discussion/shared';
|
|
5
5
|
import { type IQueryFns } from './cache';
|
|
6
6
|
import { ICategory } from '../../shared';
|
|
7
7
|
interface IActivitySectionQueryFns extends IQueryFns {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IPollOption } from '../../../polls';
|
|
2
|
+
import { type IActivity } from '../interfaces/activity.interface';
|
|
3
|
+
import type { IUserContext } from '../../../context';
|
|
4
|
+
import { ICache } from './cache.helper';
|
|
5
|
+
import { ICacheItem } from '../../feeds/activities-feed/cache';
|
|
6
|
+
interface IPreparePollVoteArgs {
|
|
7
|
+
activity: IActivity;
|
|
8
|
+
reactionId: string;
|
|
9
|
+
user?: IUserContext;
|
|
10
|
+
}
|
|
11
|
+
interface IEnrichPollVoteArgs extends IPreparePollVoteArgs {
|
|
12
|
+
correctReactionId: string;
|
|
13
|
+
}
|
|
14
|
+
interface IRemovePollVoteArgs {
|
|
15
|
+
cache: ICache<ICacheItem>;
|
|
16
|
+
activityId: string;
|
|
17
|
+
reactionId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const getActivityPollOptions: (pollOption: ICacheItem, locale?: string) => IPollOption[];
|
|
20
|
+
export declare function preparePollVote({ activity, reactionId, user }: IPreparePollVoteArgs): void;
|
|
21
|
+
export declare function enrichPollVote({ activity, reactionId, correctReactionId, user, }: IEnrichPollVoteArgs): void;
|
|
22
|
+
export declare function removePollVote({ cache, activityId, reactionId }: IRemovePollVoteArgs): ICache<IActivity>;
|
|
23
|
+
export {};
|
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import type { FlatActivityEnriched } from 'getstream';
|
|
2
2
|
import type { IEnrichedUrlData } from '../../../navigation/enriched-url';
|
|
3
|
+
import { ResultsVisibility } from '../../../polls/poll';
|
|
4
|
+
export declare enum ActivityType {
|
|
5
|
+
Post = "post",
|
|
6
|
+
Poll = "poll"
|
|
7
|
+
}
|
|
3
8
|
export interface IActivity extends FlatActivityEnriched {
|
|
4
9
|
content: string;
|
|
5
10
|
categories?: string[];
|
|
6
11
|
feed_id?: string;
|
|
7
|
-
title: string
|
|
12
|
+
title: string | {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
8
15
|
total_replies?: number;
|
|
9
16
|
total_likes?: number;
|
|
10
17
|
additional_data?: {
|
|
11
18
|
link?: IEnrichedUrlData | false | undefined;
|
|
12
19
|
};
|
|
20
|
+
settings?: {
|
|
21
|
+
show_remove_vote?: boolean;
|
|
22
|
+
allow_multiple_votes?: boolean;
|
|
23
|
+
deadline_at?: string;
|
|
24
|
+
hide_participants?: boolean;
|
|
25
|
+
number_of_winners?: number;
|
|
26
|
+
results_visibility?: ResultsVisibility;
|
|
27
|
+
};
|
|
13
28
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MemberProps, MemberDetailsProps } from '../../../user';
|
|
1
|
+
import type { MemberProps, MemberDetailsProps } from '../../../user';
|
|
2
2
|
import type { ListMembers, ClickMentionFallback } from '../../../form';
|
|
3
3
|
import type { IEnrichedUrlData } from '../../../navigation';
|
|
4
4
|
import type { ICategory } from './community.category.interface';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
|
|
6
6
|
export declare enum DiscussionContentType {
|
|
7
7
|
Answer = "answer",
|
|
8
8
|
Poll = "poll",
|
|
@@ -30,7 +30,9 @@ export interface IFullDiscussionContent extends IDiscussionContent {
|
|
|
30
30
|
/** The content slug */
|
|
31
31
|
slug: string;
|
|
32
32
|
/** The title of the content post */
|
|
33
|
-
title?: string
|
|
33
|
+
title?: string | {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
34
36
|
/** The body of the content post */
|
|
35
37
|
body?: string;
|
|
36
38
|
/** The author of the post */
|
|
@@ -72,6 +74,7 @@ export type IForceHide = {
|
|
|
72
74
|
export type DiscussionCreateContentFunction = (args1: void | object, args2?: object) => void;
|
|
73
75
|
export type DiscussionCreateLikeFunction = (args1: object) => void;
|
|
74
76
|
export type DiscussionDeleteLikeFunction = (args: object) => void;
|
|
77
|
+
export type DiscussionListLikesFunction = ILikesFeedQueryFns['list'];
|
|
75
78
|
export interface IMentions {
|
|
76
79
|
[key: string]: IMentionData;
|
|
77
80
|
}
|
|
@@ -87,6 +90,14 @@ export interface IMentionData {
|
|
|
87
90
|
/** An error message, shown if the user was deleted */
|
|
88
91
|
error?: string;
|
|
89
92
|
}
|
|
93
|
+
export interface IDiscussionFormFns {
|
|
94
|
+
/** A function to get a filtered list of members when the user starts typing a mention */
|
|
95
|
+
listMembers: ListMembers;
|
|
96
|
+
/** A function to call when the user clicks the mention fallback, e.g. to show an invite modal */
|
|
97
|
+
clickMentionFallback: ClickMentionFallback;
|
|
98
|
+
/** Get metadata about a link, to show an enriched URL */
|
|
99
|
+
getLinkPreview?: (url: string) => Promise<IEnrichedUrlData>;
|
|
100
|
+
}
|
|
90
101
|
export interface IMentionsFns {
|
|
91
102
|
listMembers: ListMembers;
|
|
92
103
|
clickMentionFallback: ClickMentionFallback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EnrichedReaction } from 'getstream';
|
|
2
|
-
import type { IMentions } from '
|
|
2
|
+
import type { IMentions } from '../../../discussion/shared';
|
|
3
3
|
export interface IReaction extends EnrichedReaction {
|
|
4
4
|
/** Details of users mentioned in the content */
|
|
5
5
|
mentioned_users?: IMentions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dispatch } from 'react';
|
|
2
2
|
import { Point } from 'slate';
|
|
3
|
-
import { IListMemberData } from '../../../../../discussion';
|
|
3
|
+
import type { IListMemberData } from '../../../../../discussion/shared';
|
|
4
4
|
import type { IEnrichedUrlData } from '../../../../../navigation';
|
|
5
5
|
import { ReportError, IMentionPopOver } from './../../rich-text-editor.types';
|
|
6
6
|
declare const RichTextEditorContext: import("react").Context<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseElement, BaseText, Descendant, Point, Range } from 'slate';
|
|
2
|
-
import type { IListMemberData, IMentions, IDiscussionFormFns } from '../../../discussion';
|
|
2
|
+
import type { IListMemberData, IMentions, IDiscussionFormFns } from '../../../discussion/shared';
|
|
3
3
|
import type { MemberDetailsProps } from '../../../user';
|
|
4
4
|
import type { IEnrichedUrlData } from '../../../navigation';
|
|
5
5
|
interface IRTEData {
|
package/helpers/intl.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
113
113
|
markCompleteButton_completed: string;
|
|
114
114
|
discussion_action_answer: string;
|
|
115
115
|
discussion_action_comment: string;
|
|
116
|
+
discussion_action_poll: string;
|
|
116
117
|
discussion_action_post: string;
|
|
117
118
|
discussion_action_response: string;
|
|
118
119
|
discussion_action_reply: string;
|
|
@@ -123,6 +124,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
123
124
|
discussion_delete_cancel: string;
|
|
124
125
|
discussion_delete_delete: string;
|
|
125
126
|
discussion_delete_error: string;
|
|
127
|
+
discussion_pinned_post: string;
|
|
126
128
|
discussion_reply: string;
|
|
127
129
|
discussion_report_subject: string;
|
|
128
130
|
discussion_report_body: string;
|