@apolitical/component-library 4.1.12-beta.4 → 4.1.12

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 (50) hide show
  1. package/accessibility/visually-hidden/visually-hidden.d.ts +0 -2
  2. package/constants/index.d.ts +0 -2
  3. package/discussion/components/form/form.d.ts +2 -9
  4. package/discussion/components/post/components/share-link/index.d.ts +1 -0
  5. package/discussion/components/post/components/share-link/share-link.d.ts +6 -0
  6. package/discussion/components/post/post.d.ts +2 -11
  7. package/discussion/components/post/post.helpers.d.ts +1 -2
  8. package/discussion/components/post/post.mock.d.ts +0 -3
  9. package/discussion/feeds/activities-feed/activities-feed.d.ts +0 -3
  10. package/discussion/feeds/replies-feed/index.d.ts +1 -1
  11. package/discussion/feeds/replies-feed/nested-replies-feed/nested-replies-feed.d.ts +2 -4
  12. package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -3
  13. package/discussion/index.d.ts +0 -1
  14. package/discussion/sections/activity-section/activity-section.d.ts +1 -2
  15. package/form/components/rich-text-editor/components/context/context.d.ts +1 -3
  16. package/form/components/rich-text-editor/components/editor/index.d.ts +0 -1
  17. package/form/components/rich-text-editor/helpers/ast-types/ast-types.d.ts +1 -4
  18. package/form/components/rich-text-editor/helpers/index.d.ts +0 -1
  19. package/form/components/rich-text-editor/helpers/transform/transform.d.ts +3 -3
  20. package/form/components/rich-text-editor/index.d.ts +0 -1
  21. package/form/components/rich-text-editor/plugins/index.d.ts +0 -1
  22. package/form/components/rich-text-editor/rich-text-editor.d.ts +2 -10
  23. package/form/components/rich-text-editor/rich-text-editor.types.d.ts +2 -28
  24. package/general/buttons/button/button.d.ts +4 -0
  25. package/general/index.d.ts +0 -1
  26. package/helpers/cases.d.ts +0 -1
  27. package/helpers/index.d.ts +0 -1
  28. package/helpers/intl.d.ts +2 -1
  29. package/index.js +60 -60
  30. package/index.mjs +7492 -7765
  31. package/package.json +1 -1
  32. package/style.css +1 -1
  33. package/styles/base/buttons/_icons.scss +1 -0
  34. package/styles/variables/colors/theme/_discussion.scss +0 -1
  35. package/styles/variables/colors/theme/_form.scss +0 -1
  36. package/styles/variables/colors/theme/_general.scss +0 -3
  37. package/user/member/member.d.ts +2 -9
  38. package/constants/discussion.d.ts +0 -1
  39. package/constants/regex.d.ts +0 -1
  40. package/form/components/rich-text-editor/components/editor/mention-popover/index.d.ts +0 -1
  41. package/form/components/rich-text-editor/components/editor/mention-popover/mention-popover.d.ts +0 -2
  42. package/form/components/rich-text-editor/helpers/mentions/index.d.ts +0 -2
  43. package/form/components/rich-text-editor/helpers/mentions/insert-mention.d.ts +0 -5
  44. package/form/components/rich-text-editor/helpers/mentions/should-show-mentions-popover.d.ts +0 -5
  45. package/form/components/rich-text-editor/plugins/with-mentions/index.d.ts +0 -1
  46. package/form/components/rich-text-editor/plugins/with-mentions/with-mentions.d.ts +0 -6
  47. package/form/components/rich-text-editor/rich-text-editor.const.d.ts +0 -11
  48. package/general/popover/index.d.ts +0 -1
  49. package/general/popover/popover.d.ts +0 -11
  50. package/helpers/discussion.d.ts +0 -8
@@ -30,6 +30,7 @@ $icons: ('arrow_left', (d, d, 3, 8), (d, d, 3, 8), (d, d, 4, 7)),
30
30
  ('flag', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
31
31
  ('heart', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
32
32
  ('heart_empty', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
33
+ ('link_chain', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
33
34
  ('navigation_arrow', (d, d, 4, 10), (d, d, d, d), (14, 14, d, 10)),
34
35
  ('pencil', (d, d, d, d), (d, d, d, 11), (d, d, 3, 9)),
35
36
  ('pencil-paper', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
@@ -6,7 +6,6 @@ $c: $default-colors;
6
6
  $discussion: (
7
7
  discussion-post_highlighted_bg: get-map($c, 'g50'),
8
8
  discussion-post_fading_bg: color.adjust(get-map($c, 'g50'), $alpha: -0.9),
9
- discussion-post_member_hover_bg: get-map($c, 'n100'),
10
9
  discussion-actions: get-map($c, 'n600'),
11
10
  discussion-actions_hover_bg: get-map($c, 'b100'),
12
11
  discussion-actions_likes_liked: get-map($c, 'p500'),
@@ -15,7 +15,6 @@ $form: (
15
15
  invite_form_email_color: get-map($c, 'n700'),
16
16
  invite_form_email_input_border: get-map($c, 'n200'),
17
17
  link-editor_divider_bg: #7583a0,
18
- mention-popover_hover_bg: get-map($c, 'n100'),
19
18
  password-rules: get-map($c, 'error600'),
20
19
  password-rules_matches: get-map($c, 'success500'),
21
20
  password-rules_small: get-map($c, 'n600'),
@@ -6,9 +6,6 @@ $c: $default-colors;
6
6
  $general: (
7
7
  image_container_bg: get-map($c, 'n50'),
8
8
  image_container_bg_empty: get-map($c, 'white'),
9
- popover_border: get-map($c, 'n100'),
10
- popover_bg: get-map($c, 'white'),
11
- popover_shadow: rgba(0, 0, 0, 0.10),
12
9
  return_to_nav_box_shadow: get-map($c, 'black'),
13
10
  return_to_nav_bg_focus_active: get-map($c, 'white'),
14
11
  return_to_nav_bg_before_after: get-map($c, 'b700'),
@@ -35,11 +35,6 @@ interface Props {
35
35
  /** The size of the component */
36
36
  size?: 'medium' | 'large';
37
37
  };
38
- /** Optional functions for the wrapper */
39
- functions?: {
40
- /** Optional onclick function */
41
- onClick?: (e: React.MouseEvent) => void;
42
- };
43
38
  /** The GTM context to use */
44
39
  gtmContext?: string;
45
40
  /** The GTM event to use */
@@ -49,10 +44,8 @@ interface Props {
49
44
  /** The language to use for the text */
50
45
  locale?: string;
51
46
  }
52
- declare const Member: ({ element, member: memberDetails, additionalContent, styling, functions, gtmContext, gtmType, className, }: Props) => React.DetailedReactHTMLElement<{
53
- children: import("react/jsx-runtime").JSX.Element;
54
- /** Optional onclick function */
55
- onClick?: ((e: React.MouseEvent) => void) | undefined;
47
+ declare const Member: ({ element, member: memberDetails, additionalContent, styling, gtmContext, gtmType, className, }: Props) => React.DetailedReactHTMLElement<{
56
48
  className: string;
49
+ children: import("react/jsx-runtime").JSX.Element;
57
50
  }, HTMLElement>;
58
51
  export default Member;
@@ -1 +0,0 @@
1
- export declare const GET_STREAM_PRESTRING = "SU:";
@@ -1 +0,0 @@
1
- export declare const UUID_V4_REGEX: RegExp;
@@ -1 +0,0 @@
1
- export { default as MentionPopover } from './mention-popover';
@@ -1,2 +0,0 @@
1
- declare const MentionPopover: () => import("react/jsx-runtime").JSX.Element | null;
2
- export default MentionPopover;
@@ -1,2 +0,0 @@
1
- export { default as insertMention } from './insert-mention';
2
- export { default as shouldShowMentionsPopover } from './should-show-mentions-popover';
@@ -1,5 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { BaseEditor } from 'slate';
3
- import { IMentionPopOver } from './../../rich-text-editor.types';
4
- declare const insertMention: (editor: BaseEditor, mentionPopover: IMentionPopOver, dispatch: Dispatch<any>) => void;
5
- export default insertMention;
@@ -1,5 +0,0 @@
1
- import { Dispatch } from 'react';
2
- import { BaseEditor } from 'slate';
3
- import { type GetUsers } from './../../rich-text-editor.types';
4
- declare const shouldShowMentionsPopover: (editor: BaseEditor, isShowing: boolean, getUsers: GetUsers | undefined, dispatch: Dispatch<any>) => Promise<void>;
5
- export default shouldShowMentionsPopover;
@@ -1 +0,0 @@
1
- export { default as withMentions } from './with-mentions';
@@ -1,6 +0,0 @@
1
- import { BaseEditor } from 'slate';
2
- import { HistoryEditor } from 'slate-history';
3
- import { ReactEditor } from 'slate-react';
4
- import { ReportError } from './../../rich-text-editor.types';
5
- declare const withMentions: (editor: BaseEditor & ReactEditor & HistoryEditor, reportError: ReportError) => BaseEditor & ReactEditor & HistoryEditor;
6
- export default withMentions;
@@ -1,11 +0,0 @@
1
- export declare const mentionIdentifier = "MENTION: ";
2
- export declare const fallbackPosition: {
3
- anchor: {
4
- offset: number;
5
- path: number[];
6
- };
7
- focus: {
8
- offset: number;
9
- path: number[];
10
- };
11
- };
@@ -1 +0,0 @@
1
- export { default as Popover } from './popover';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- /** Additional className */
4
- className?: string;
5
- /** The content of the popover */
6
- children: React.ReactNode;
7
- /** Optional keydown event */
8
- onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
9
- }
10
- declare const Popover: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement | null>>;
11
- export default Popover;
@@ -1,8 +0,0 @@
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>;