@apolitical/component-library 4.7.5-ac.5 → 4.7.5-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 (36) hide show
  1. package/discussion/components/index.d.ts +1 -0
  2. package/discussion/components/post/post.d.ts +1 -9
  3. package/discussion/components/profile-modal-launcher/index.d.ts +1 -0
  4. package/discussion/components/profile-modal-launcher/profile-modal-launcher.d.ts +7 -0
  5. package/discussion/components/profile-modal-launcher/profile-modal-launcher.mock.d.ts +24 -0
  6. package/discussion/feeds/activities-feed/activities-feed.d.ts +3 -2
  7. package/discussion/feeds/activities-feed/cache/hooks/index.d.ts +0 -2
  8. package/discussion/feeds/activities-feed/mocks/activities-feed.mock.d.ts +3 -36
  9. package/discussion/feeds/replies-feed/replies-feed.d.ts +4 -1
  10. package/discussion/sections/activity-section/activity-section.d.ts +4 -3
  11. package/discussion/sections/activity-section/cache/hooks/index.d.ts +0 -2
  12. package/discussion/shared/helpers/activity.helper.d.ts +0 -2
  13. package/discussion/shared/mocks/reaction.mock.d.ts +0 -20
  14. package/enums/custom-events.d.ts +1 -0
  15. package/form/components/form/form.types.d.ts +1 -1
  16. package/form/types/profile-form/profile-form.mock.d.ts +19 -0
  17. package/helpers/index.d.ts +1 -0
  18. package/helpers/intl.d.ts +3 -2
  19. package/helpers/profile-is-complete/index.d.ts +1 -0
  20. package/helpers/profile-is-complete/profile-is-complete.d.ts +3 -0
  21. package/index.js +61 -61
  22. package/index.mjs +8497 -8575
  23. package/modals/types/profile-modal/index.d.ts +1 -0
  24. package/modals/types/profile-modal/profile-modal.d.ts +2 -2
  25. package/package.json +1 -1
  26. package/style.css +1 -1
  27. package/styles/base/buttons/_icons.scss +1 -3
  28. package/styles/variables/colors/theme/_discussion.scss +0 -2
  29. package/discussion/feeds/activities-feed/cache/hooks/pin/index.d.ts +0 -1
  30. package/discussion/feeds/activities-feed/cache/hooks/pin/pin.hook.d.ts +0 -7
  31. package/discussion/feeds/activities-feed/cache/hooks/unpin/index.d.ts +0 -1
  32. package/discussion/feeds/activities-feed/cache/hooks/unpin/unpin.hook.d.ts +0 -8
  33. package/discussion/sections/activity-section/cache/hooks/pin/index.d.ts +0 -1
  34. package/discussion/sections/activity-section/cache/hooks/pin/pin.hook.d.ts +0 -8
  35. package/discussion/sections/activity-section/cache/hooks/unpin/index.d.ts +0 -1
  36. package/discussion/sections/activity-section/cache/hooks/unpin/unpin.hook.d.ts +0 -8
@@ -35,7 +35,6 @@ $icons: ('arrow_left', (d, d, 3, 8), (d, d, 3, 8), (d, d, 4, 7)),
35
35
  ('navigation_arrow', (d, d, 4, 10), (d, d, d, d), (14, 14, d, 10)),
36
36
  ('pencil', (d, d, d, d), (d, d, d, 11), (d, d, 3, 9)),
37
37
  ('pencil-paper', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
38
- ('pin', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
39
38
  ('plus', (d, d, 4, d), (d, d, 2, d), (11, 11, 3, d)),
40
39
  ('share', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
41
40
  ('share_copy-link', (30, 29, d, d), (22, 21, d, d), (d, d, d, d)),
@@ -48,5 +47,4 @@ $icons: ('arrow_left', (d, d, 3, 8), (d, d, 3, 8), (d, d, 4, 7)),
48
47
  ('star', (16, 16, 0, 0), (d, d, 0, 0), (16, 16, 0, 0)),
49
48
  ('star_empty', (16, 16, 0, 0), (d, d, 0, 0), (16, 16, 0, 0)),
50
49
  ('tick', (14, 11, 8, 10), (14, 11, 5, 8), (9, 7, 6, 6)),
51
- ('trash', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10)),
52
- ('unpin', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10));
50
+ ('trash', (22, 22, 0, 10), (18, 18, 1, d), (d, d, 3, 10));
@@ -18,9 +18,7 @@ $discussion: (
18
18
  discussion-form_label: get-map($c, 'n700'),
19
19
  discussion-form_placeholder: get-map($c, 'n500'),
20
20
  discussion-form_small: get-map($c, 'n700'),
21
- discussion-pin_bg: get-map($c, 'n700'),
22
21
  discussion-post_bg: get-map($c, 'white'),
23
- discussion-post-pinned_bg: get-map($c, 'n50'),
24
22
  discussion-post-border: get-map($c, 'n100'),
25
23
  discussion-post-hover-shadow: rgb(42 49 65 / 10%),
26
24
  discussion-question_bg: get-map($c, 'sand'),
@@ -1 +0,0 @@
1
- export * from './pin.hook';
@@ -1,7 +0,0 @@
1
- import type { IMutationContext } from '../../../../../../discussion/shared';
2
- import type { ICache, ICacheSubitem } from '../..';
3
- interface IPinVars {
4
- activityId: string;
5
- }
6
- export declare function usePinActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, queryClient, queryKey, }: IMutationContext<ICacheSubitem, Error, IPinVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<import('../../../../../../discussion/shared').IReaction, Error, IPinVars, ICache>;
7
- export {};
@@ -1 +0,0 @@
1
- export * from './unpin.hook';
@@ -1,8 +0,0 @@
1
- import type { IMutationContext } from '../../../../../../discussion/shared';
2
- import type { ICache } from '../..';
3
- interface IUnpinVars {
4
- activityId: string;
5
- reactionId?: string;
6
- }
7
- export declare function useUnpinActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, user, }: IMutationContext<unknown, Error, IUnpinVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, Error, IUnpinVars, ICache>;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './pin.hook';
@@ -1,8 +0,0 @@
1
- import type { IMutationContext } from '../../../../../../discussion/shared';
2
- import type { ICache, ICacheSubitem } from '../..';
3
- interface IPinVars {
4
- activityId: string;
5
- reactionId?: string;
6
- }
7
- export declare function usePinActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, queryClient, queryKey, }: IMutationContext<ICacheSubitem, Error, IPinVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<import('../../../../../../discussion/shared').IReaction, Error, IPinVars, import('../../../../../../discussion/shared').IActivity>;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './unpin.hook';
@@ -1,8 +0,0 @@
1
- import type { IMutationContext } from '../../../../../../discussion/shared';
2
- import type { ICache } from '../..';
3
- interface IUnpinVars {
4
- activityId: string;
5
- reactionId?: string;
6
- }
7
- export declare function useUnpinActivity({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, user, }: IMutationContext<unknown, Error, IUnpinVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateFunction<unknown, Error, IUnpinVars, import('../../../../../../discussion/shared').IActivity>;
8
- export {};