@apolitical/component-library 6.5.0-SW.0 → 6.5.0-beta.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.
Files changed (52) hide show
  1. package/discussion/components/conversation/conversation.d.ts +1 -1
  2. package/discussion/components/discussion-form-card/discussion-form-card.d.ts +2 -2
  3. package/discussion/components/form/components/guidelines/guidelines.d.ts +1 -1
  4. package/discussion/components/form/components/label/label.d.ts +1 -1
  5. package/discussion/components/form/form.constants.d.ts +2 -0
  6. package/discussion/components/form/form.d.ts +1 -1
  7. package/discussion/components/form/form.helpers.d.ts +4 -0
  8. package/discussion/components/form/form.type.d.ts +17 -8
  9. package/discussion/components/post/components/index.d.ts +0 -4
  10. package/discussion/components/post/post.d.ts +5 -13
  11. package/discussion/components/post/post.helpers.d.ts +1 -5
  12. package/discussion/discussion.mock.d.ts +4 -0
  13. package/discussion/feeds/activities-feed/activities-feed.d.ts +2 -6
  14. package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +0 -2
  15. package/discussion/feeds/replies-feed/components/nested-replies-feed/nested-replies-feed.d.ts +1 -1
  16. package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
  17. package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -1
  18. package/discussion/index.d.ts +2 -1
  19. package/discussion/sections/activity-section/activity-section.d.ts +2 -2
  20. package/discussion/shared/constants.d.ts +0 -1
  21. package/discussion/shared/helpers/index.d.ts +1 -2
  22. package/discussion/shared/interfaces/activity.interface.d.ts +1 -16
  23. package/discussion/shared/interfaces/discussion.interface.d.ts +24 -21
  24. package/discussion/shared/interfaces/reaction.interface.d.ts +1 -1
  25. package/form/components/form/form.types.d.ts +2 -0
  26. package/form/components/rich-text-editor/components/context/context.d.ts +1 -1
  27. package/form/components/rich-text-editor/rich-text-editor.types.d.ts +1 -1
  28. package/helpers/intl.d.ts +7 -3
  29. package/helpers/replace-mention-data.d.ts +1 -1
  30. package/index.js +63 -63
  31. package/index.mjs +8322 -8438
  32. package/navigation/action-bar/action-bar.d.ts +2 -1
  33. package/navigation/action-bar/components/likes/likes.d.ts +2 -2
  34. package/package.json +1 -1
  35. package/polls/poll/index.d.ts +1 -1
  36. package/polls/poll/poll.d.ts +9 -8
  37. package/polls/poll/poll.mocks.d.ts +0 -1
  38. package/polls/poll/poll.types.d.ts +0 -9
  39. package/style.css +1 -1
  40. package/discussion/components/post/components/author-section/author-section.d.ts +0 -14
  41. package/discussion/components/post/components/author-section/index.d.ts +0 -1
  42. package/discussion/components/post/components/categories/categories.d.ts +0 -5
  43. package/discussion/components/post/components/categories/index.d.ts +0 -1
  44. package/discussion/components/post/components/poll-content/index.d.ts +0 -1
  45. package/discussion/components/post/components/poll-content/poll-content.d.ts +0 -11
  46. package/discussion/components/post/components/post-content/index.d.ts +0 -1
  47. package/discussion/components/post/components/post-content/post-content.d.ts +0 -15
  48. package/discussion/feeds/activities-feed/cache/hooks/create-vote/create-vote.hook.d.ts +0 -8
  49. package/discussion/feeds/activities-feed/cache/hooks/create-vote/index.d.ts +0 -1
  50. package/discussion/feeds/activities-feed/cache/hooks/remove-vote/index.d.ts +0 -1
  51. package/discussion/feeds/activities-feed/cache/hooks/remove-vote/remove-vote.hook.d.ts +0 -8
  52. package/discussion/shared/helpers/poll.helper.d.ts +0 -23
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IConversation, IListMemberData } from '../../../discussion/shared';
2
+ import { IConversation, IListMemberData } from './../../discussion';
3
3
  export declare const ConversationContext: React.Context<{
4
4
  showForm: boolean;
5
5
  prepopulateForm?: string | undefined;
@@ -1,5 +1,5 @@
1
- import type { IDiscussionForm } from './../form';
2
- import type { IMentions } from '../../../discussion/shared';
1
+ import { type IDiscussionForm } from './../form';
2
+ import { IMentions } from './../../discussion.d';
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,4 +1,4 @@
1
- import type { IDiscussionContentType } from '../../../../../discussion/shared';
1
+ import { IDiscussionContentType } from './../../../../discussion.d';
2
2
  interface Props {
3
3
  /** The internationalisation path for the guidelines */
4
4
  intlPath: string;
@@ -1,5 +1,5 @@
1
1
  import { type ILabelProps } from '../../../../../form';
2
- import type { IDiscussionContentType } from '../../../../../discussion/shared';
2
+ import { IDiscussionContentType } from './../../../../discussion.d';
3
3
  interface Props extends ILabelProps {
4
4
  /** The internationalisation path for the label */
5
5
  intlPath: string;
@@ -0,0 +1,2 @@
1
+ export declare const MAX_POLL_OPTIONS = 5;
2
+ export declare const MIN_POLL_OPTIONS = 2;
@@ -1,3 +1,3 @@
1
1
  import { IDiscussionForm } from './form.type';
2
- declare const DiscussionForm: ({ id, parentId, content, userHasPermissions, meta, placeholder, maxLength, buttons, forceShow, isCommunity, functions, data, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DiscussionForm: ({ id, parentId, content, userHasPermissions, meta, placeholder, maxLength, buttons, forceShow, functions, data, gtmContext, }: IDiscussionForm) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DiscussionForm;
@@ -0,0 +1,4 @@
1
+ import type { IFormValues } from '../../../form';
2
+ import type { IRTEValues } from './form.type';
3
+ import { ITransformedPollData } from './../../shared';
4
+ export declare const transformPollData: (data: IRTEValues & IFormValues) => ITransformedPollData;
@@ -1,5 +1,9 @@
1
1
  import type { IEnrichedUrlData } from '../../../navigation';
2
- import type { ICategory, IDiscussionContent, IDiscussionFormFunctions, IMentions } from '../../../discussion/shared';
2
+ import type { ICategory, IDiscussionFormFunctions, IDiscussionContent, IMentions } from '../../shared';
3
+ interface IPollData {
4
+ options: string[];
5
+ multipleAnswers: boolean;
6
+ }
3
7
  export interface IDiscussionFormMeta {
4
8
  /** Whether the form data is still loading */
5
9
  isLoading?: boolean;
@@ -13,11 +17,14 @@ export interface IDiscussionFormMeta {
13
17
  isEditing: false | {
14
18
  categories?: string[] | string;
15
19
  text?: string;
20
+ poll?: IPollData;
16
21
  };
17
22
  /** Whether the form has a title field */
18
23
  hasTitleField?: false | {
19
24
  text?: string;
20
25
  };
26
+ /** If the form can be pre-populated; this is not allowed outside communities at the moment */
27
+ canBePrepopulated?: boolean;
21
28
  /** Whether the form is prepopulated with text (different to isEditing, as we want different buttons and text to show */
22
29
  isPrepopulated: false | {
23
30
  text?: string;
@@ -57,8 +64,6 @@ export interface IDiscussionForm {
57
64
  /** Text for the submit button */
58
65
  submit?: string;
59
66
  };
60
- /** If the form is used within a Community */
61
- isCommunity?: boolean;
62
67
  /** Force elements on the form to show, regardless of the form state */
63
68
  forceShow?: {
64
69
  /** If the cancel button should always show */
@@ -80,11 +85,15 @@ export interface IDiscussionForm {
80
85
  /** The language to use for the text */
81
86
  locale?: string;
82
87
  }
83
- export interface IDiscussionFormState {
84
- title: string;
85
- body: string;
86
- categories: string[] | string;
87
- data: {
88
+ export interface IRTEValues {
89
+ body?: string;
90
+ data?: {
88
91
  link?: false | IEnrichedUrlData;
89
92
  };
90
93
  }
94
+ export interface IDiscussionFormState {
95
+ status: false | 'submitting' | 'submitted';
96
+ title: string;
97
+ polls: number;
98
+ }
99
+ export {};
@@ -1,5 +1 @@
1
- export * from './author-section';
2
1
  export * from './blockquote';
3
- export * from './categories';
4
- export * from './poll-content';
5
- export * from './post-content';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
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';
2
+ import { IMemberComponentProps } from '../../../user';
3
+ import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, DiscussionListLikesFunction, IDiscussionFormFns } from '../../discussion';
4
+ import { type IForceHide, type IFullDiscussionContent } from '../../shared/interfaces';
5
+ import { IBadgesOption } from '../../../user/badges';
6
6
  export interface IPostContent extends IFullDiscussionContent {
7
7
  /** The post body */
8
8
  postBody?: string;
@@ -10,13 +10,6 @@ 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;
20
13
  }
21
14
  export interface IDiscussionPostProps {
22
15
  /** The element that will render around the content */
@@ -51,7 +44,6 @@ export interface IDiscussionPostProps {
51
44
  /** List the likes on the post */
52
45
  listLikes: DiscussionListLikesFunction;
53
46
  };
54
- polls?: IPollFunctions;
55
47
  comments: {
56
48
  /** Open comments on a post */
57
49
  openComments?: () => void;
@@ -97,5 +89,5 @@ export interface IDiscussionPostProps {
97
89
  /** The ID of the parent, used for slugs */
98
90
  parentId: string;
99
91
  }
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;
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;
101
93
  export default Post;
@@ -1,9 +1,5 @@
1
- import type { IMentions } from '../../../discussion/shared';
1
+ import { IMentions } from './../../discussion';
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;
@@ -216,3 +216,7 @@ export namespace question {
216
216
  let createdAt_5: string;
217
217
  export { createdAt_5 as createdAt };
218
218
  }
219
+ export const postCategories: {
220
+ name: string;
221
+ slug: string;
222
+ }[];
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { type IProfileFormProps } from '../../../form';
3
- import { type ICategory } from '../../../discussion/shared';
3
+ import { ICategory } from '../../../discussion/shared';
4
4
  import type { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
5
- import type { IDiscussionFormFns } from '../../../discussion/shared';
5
+ import type { IDiscussionFormFns } from '../../../discussion/discussion.d';
6
6
  import { type IQueryFns } from './cache';
7
7
  interface Props {
8
8
  /** The base path, used for slugs */
@@ -26,13 +26,9 @@ interface Props {
26
26
  /** Function to leave the community */
27
27
  leave: () => Promise<void>;
28
28
  likes: ILikesFeedQueryFns;
29
- /** Query functions for polls */
30
- polls: IQueryFns;
31
29
  };
32
30
  /** Props to pass into the profile form */
33
31
  profile: IProfileFormProps;
34
- /** The locale of the page */
35
- locale?: string;
36
32
  }
37
33
  declare const ActivitiesFeed: React.FC<Props>;
38
34
  export default ActivitiesFeed;
@@ -1,11 +1,9 @@
1
1
  export * from './create';
2
- export * from './create-vote';
3
2
  export * from './edit';
4
3
  export * from './feed';
5
4
  export * from './like';
6
5
  export * from './list';
7
6
  export * from './pin';
8
7
  export * from './remove';
9
- export * from './remove-vote';
10
8
  export * from './unlike';
11
9
  export * from './unpin';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { IDiscussionFormFns } from '../../../../../discussion/shared';
2
+ import type { IDiscussionFormFns } from '../../../../../discussion/discussion.d';
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 { IDiscussionFormFns } from '../../../../../discussion/shared';
3
+ import type { IDiscussionFormFns } from '../../../../discussion';
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';
4
3
  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 */
@@ -2,4 +2,5 @@ export * from './components';
2
2
  export * from './feeds';
3
3
  export * from './discussion.helpers';
4
4
  export * from './sections';
5
- export * from './shared/interfaces';
5
+ export type { IActivity, IFullDiscussionContent, IListMemberData, IMentionData, IMentions, IReaction, IUser, } from './shared/interfaces';
6
+ export type { IDiscussionFormFns } from './discussion.d';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type IProfileFormProps } from '../../../form';
3
- import { type IRepliesFeedQueryFns, type ILikesFeedQueryFns } from '../../../discussion/feeds';
4
- import type { IDiscussionFormFns } from '../../../discussion/shared';
3
+ import { type ILikesFeedQueryFns, type IRepliesFeedQueryFns } from '../../../discussion/feeds';
4
+ import type { IDiscussionFormFns } from './../../discussion.d';
5
5
  import { type IQueryFns } from './cache';
6
6
  import { ICategory } from '../../shared';
7
7
  interface IActivitySectionQueryFns extends IQueryFns {
@@ -1,4 +1,3 @@
1
1
  export declare const ACTIVITY_VERB = "post";
2
2
  export declare const REPLY_KIND = "reply";
3
3
  export declare const TMP_ID = "00000000-0000-0000-0000-000000000000";
4
- export declare const DEFAULT_LOCALE = "en";
@@ -1,5 +1,4 @@
1
1
  export * from './activity.helper';
2
- export * from './cache.helper';
3
- export * from './poll.helper';
4
2
  export * from './reply.helper';
3
+ export * from './cache.helper';
5
4
  export { default as triggerDiscussionPostAdded } from './trigger-discussion-post-added';
@@ -1,28 +1,13 @@
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
- }
8
3
  export interface IActivity extends FlatActivityEnriched {
9
4
  content: string;
10
5
  categories?: string[];
11
6
  feed_id?: string;
12
- title: string | {
13
- [key: string]: string;
14
- };
7
+ title: string;
15
8
  total_replies?: number;
16
9
  total_likes?: number;
17
10
  additional_data?: {
18
11
  link?: IEnrichedUrlData | false | undefined;
19
12
  };
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
- };
28
13
  }
@@ -1,12 +1,20 @@
1
- import type { MemberProps, MemberDetailsProps } from '../../../user';
1
+ import { 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 { ILikesFeedQueryFns } from '../../../discussion/feeds/likes-feed';
6
- export type IDiscussionContentType = 'answer' | 'post' | 'response' | 'reply' | 'question' | 'poll';
5
+ import type { IDiscussionFormFns } from '../../discussion';
6
+ export declare enum DiscussionContentType {
7
+ Answer = "answer",
8
+ Poll = "poll",
9
+ Post = "post",
10
+ Response = "response",
11
+ Reply = "reply",
12
+ Question = "question"
13
+ }
14
+ export type IDiscussionContentType = DiscussionContentType.Answer | DiscussionContentType.Poll | DiscussionContentType.Post | DiscussionContentType.Response | DiscussionContentType.Reply | DiscussionContentType.Question;
7
15
  export interface IDiscussionContent {
8
16
  /** The type of content */
9
- type: IDiscussionContentType;
17
+ type: IDiscussionContentType | undefined;
10
18
  /** The slugs we're dealing with - used in functions */
11
19
  slugs: {
12
20
  question?: string;
@@ -22,9 +30,7 @@ export interface IFullDiscussionContent extends IDiscussionContent {
22
30
  /** The content slug */
23
31
  slug: string;
24
32
  /** The title of the content post */
25
- title?: string | {
26
- [key: string]: string;
27
- };
33
+ title?: string;
28
34
  /** The body of the content post */
29
35
  body?: string;
30
36
  /** The author of the post */
@@ -66,7 +72,6 @@ export type IForceHide = {
66
72
  export type DiscussionCreateContentFunction = (args1: void | object, args2?: object) => void;
67
73
  export type DiscussionCreateLikeFunction = (args1: object) => void;
68
74
  export type DiscussionDeleteLikeFunction = (args: object) => void;
69
- export type DiscussionListLikesFunction = ILikesFeedQueryFns['list'];
70
75
  export interface IMentions {
71
76
  [key: string]: IMentionData;
72
77
  }
@@ -82,14 +87,6 @@ export interface IMentionData {
82
87
  /** An error message, shown if the user was deleted */
83
88
  error?: string;
84
89
  }
85
- export interface IDiscussionFormFns {
86
- /** A function to get a filtered list of members when the user starts typing a mention */
87
- listMembers: ListMembers;
88
- /** A function to call when the user clicks the mention fallback, e.g. to show an invite modal */
89
- clickMentionFallback: ClickMentionFallback;
90
- /** Get metadata about a link, to show an enriched URL */
91
- getLinkPreview?: (url: string) => Promise<IEnrichedUrlData>;
92
- }
93
90
  export interface IMentionsFns {
94
91
  listMembers: ListMembers;
95
92
  clickMentionFallback: ClickMentionFallback;
@@ -103,15 +100,21 @@ export interface IConversation {
103
100
  prepopulateForm?: string;
104
101
  mentionData?: IListMemberData;
105
102
  }
103
+ export interface ITransformedPollData {
104
+ [key: string]: string | number | {
105
+ [key: string]: string | number;
106
+ } | {
107
+ [key: string]: string | number;
108
+ }[];
109
+ }
106
110
  export interface IDiscussionFormFunctions extends IDiscussionFormFns {
107
111
  onChange?: (args: {
108
- [key: string]: string | boolean;
112
+ [key: string]: string | string[] | boolean;
109
113
  }) => void;
110
114
  create: DiscussionCreateContentFunction;
111
- handleSaveEdit?: (({ title, body }: {
112
- title: string;
113
- body: string;
114
- }) => Promise<void>) | (() => void);
115
+ createPoll?: (args: ITransformedPollData) => void;
116
+ handleSaveEdit?: // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
+ ((args: any) => Promise<void>) | (() => void);
115
118
  handleCancel?: () => void;
116
119
  callback?: (args: void) => void;
117
120
  onMention?: (value?: IListMemberData) => void;
@@ -1,5 +1,5 @@
1
1
  import type { EnrichedReaction } from 'getstream';
2
- import type { IMentions } from '../../../discussion/shared';
2
+ import type { IMentions } from './../../discussion.d';
3
3
  export interface IReaction extends EnrichedReaction {
4
4
  /** Details of users mentioned in the content */
5
5
  mentioned_users?: IMentions;
@@ -268,5 +268,7 @@ export interface IFieldWrapper extends IField {
268
268
  setFields: React.Dispatch<React.SetStateAction<IField[]>>;
269
269
  dispatch: React.Dispatch<IFormReducerAction>;
270
270
  };
271
+ /** Optional siblings to render alongside component */
272
+ siblings?: React.ReactNode;
271
273
  }
272
274
  export {};
@@ -1,6 +1,6 @@
1
1
  import { Dispatch } from 'react';
2
2
  import { Point } from 'slate';
3
- import type { IListMemberData } from '../../../../../discussion/shared';
3
+ import { IListMemberData } from '../../../../../discussion';
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/shared';
2
+ import type { IListMemberData, IMentions, IDiscussionFormFns } from '../../../discussion';
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,7 +113,6 @@ 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;
117
116
  discussion_action_post: string;
118
117
  discussion_action_response: string;
119
118
  discussion_action_reply: string;
@@ -124,7 +123,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
124
123
  discussion_delete_cancel: string;
125
124
  discussion_delete_delete: string;
126
125
  discussion_delete_error: string;
127
- discussion_pinned_post: string;
128
126
  discussion_reply: string;
129
127
  discussion_report_subject: string;
130
128
  discussion_report_body: string;
@@ -139,6 +137,12 @@ export declare const checkIntlPathExists: (path: string, language?: {
139
137
  discussion_form_titleField_label: string;
140
138
  discussion_form_titleField_placeholder: string;
141
139
  discussion_form_titleField_error: string;
140
+ discussion_form_question_label: string;
141
+ discussion_form_question_placeholder: string;
142
+ discussion_form_option_label: string;
143
+ discussion_form_option_placeholder: string;
144
+ discussion_form_option_cta: string;
145
+ discussion_form_multiplePollAnswers: string;
142
146
  discussion_form_placeholder: string;
143
147
  discussion_form_label: string;
144
148
  discussion_form_label_action: string;
@@ -238,6 +242,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
238
242
  form_multipleInputs_label: string;
239
243
  form_multipleInputs_filledInCount: string;
240
244
  form_multipleInputs_filledInCount_aria: string;
245
+ form_multipleInputs_remove: string;
241
246
  inviteForm_email_placeholder: string;
242
247
  inviteForm_title: string;
243
248
  inviteForm_label: string;
@@ -281,7 +286,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
281
286
  profileImageChange_error: string;
282
287
  publishArticleForm_title_label: string;
283
288
  publishArticleForm_title_placeholder: string;
284
- publishArticleForm_title_error: string;
285
289
  publishArticleForm_subtitle_label: string;
286
290
  publishArticleForm_subtitle_placeholder: string;
287
291
  publishArticleForm_body_label: string;
@@ -1,4 +1,4 @@
1
- import type { IMentions } from '../discussion/shared';
1
+ import { IMentions } from '../discussion';
2
2
  import { ListMembers } from '../form';
3
3
  declare const replaceMentionData: ({ text, template, mentions, listMembers, }: {
4
4
  text: string;