@apolitical/component-library 4.1.12-beta.1 → 4.1.12-beta.3

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.
@@ -0,0 +1 @@
1
+ export declare const GET_STREAM_PRESTRING = "SU:";
@@ -1,6 +1,7 @@
1
1
  export * from './assets';
2
2
  export * from './contact-details';
3
3
  export * from './courses';
4
+ export * from './discussion';
4
5
  export * from './error-messages';
5
6
  export * from './regex';
6
7
  export * from './stats';
@@ -1,11 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type GetUsers } from '../../../form';
3
3
  import { DiscussionCreateContentFunction, DiscussionCreateLikeFunction, DiscussionDeleteLikeFunction, IForceHide, IFullDiscussionContent } from '../../discussion';
4
+ interface PostContent extends IFullDiscussionContent {
5
+ /** The post body */
6
+ postBody?: string;
7
+ }
4
8
  interface Props {
5
9
  /** The element that will render around the content */
6
10
  element?: 'li' | 'div' | 'section' | 'article';
7
11
  /** Information about the content being posted */
8
- content: IFullDiscussionContent;
12
+ content: PostContent;
9
13
  /** If the user has permission to interact with the post box and content, e.g. if they're a member of the community */
10
14
  userHasPermissions?: boolean;
11
15
  /** If the post is still loading */
@@ -1,2 +1,3 @@
1
1
  import { IMentions } from './../../discussion';
2
- export declare const getPostBody: (body: string, isTruncated: boolean, mentions?: IMentions) => string;
2
+ import { GetUsers } from '../../../form';
3
+ export declare const getPostBody: (body: string, isTruncated: boolean, mentions?: IMentions, getUsers?: GetUsers) => Promise<string>;
@@ -1,3 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './feeds';
3
3
  export * from './sections';
4
+ export type { IMentionData, IMentions } from './discussion.d';
@@ -1,2 +1 @@
1
1
  export { default as deserialize } from './deserialize';
2
- export { default as deserializeMentions } from './deserialize-mentions';
@@ -7,12 +7,12 @@ export default function transform<T extends InputNodeTypes>(node: MdastNode, opt
7
7
  }[];
8
8
  } | {
9
9
  value?: string | undefined;
10
- position?: any;
11
- url?: string | undefined;
12
10
  alt?: string | undefined;
11
+ url?: string | undefined;
12
+ position?: any;
13
13
  checked?: any;
14
14
  ordered?: boolean | undefined;
15
- depth?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
15
+ depth?: 1 | 2 | 3 | 4 | 6 | 5 | undefined;
16
16
  lang?: string | undefined;
17
17
  spread?: any;
18
18
  indent?: any;
@@ -0,0 +1,8 @@
1
+ import { IMentions } from '../discussion';
2
+ import { GetUsers } from '../form';
3
+ export declare const replaceMentionData: ({ text, template, mentions, getUsers, }: {
4
+ text: string;
5
+ template: string;
6
+ mentions?: IMentions | undefined;
7
+ getUsers: GetUsers;
8
+ }) => Promise<string>;
@@ -4,6 +4,7 @@ export * from './cases';
4
4
  export * from './inline-styling';
5
5
  export * from './dates';
6
6
  export { default as delay } from './delay';
7
+ export * from './discussion';
7
8
  export * from './in-development';
8
9
  export * from './intl';
9
10
  export * from './numbers';