@apolitical/component-library 8.7.23-re.2 → 8.7.23

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/index.mjs CHANGED
@@ -8232,7 +8232,7 @@ const Eu = "emailHelperTextBox_", F6 = ({
8232
8232
  break;
8233
8233
  case "nonGov":
8234
8234
  g += "unrecognisedEmail", m = "error", y = {
8235
- href: "https://about.apolitical.co/who-can-join-the-community",
8235
+ href: "/pages/who-can-join-the-community",
8236
8236
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
8237
8237
  "data-gtm-event-type": "LearnMoreClick"
8238
8238
  };
@@ -8269,7 +8269,7 @@ const Eu = "emailHelperTextBox_", F6 = ({
8269
8269
  break;
8270
8270
  default:
8271
8271
  g += "default", y = {
8272
- href: "https://about.apolitical.co/who-can-join-the-community",
8272
+ href: "/pages/who-can-join-the-community",
8273
8273
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
8274
8274
  "data-gtm-event-type": "LearnMoreClick"
8275
8275
  };
@@ -24962,7 +24962,7 @@ const xR = ({
24962
24962
  terms: (p) => /* @__PURE__ */ f.jsx(
24963
24963
  "a",
24964
24964
  {
24965
- href: "https://about.apolitical.co/terms-and-conditions",
24965
+ href: "/pages/terms-and-conditions",
24966
24966
  "data-gtm-event-context": "SignupForm",
24967
24967
  "data-gtm-event-type": "terms-of-service-click",
24968
24968
  className: "gtm-trackable",
@@ -24972,7 +24972,7 @@ const xR = ({
24972
24972
  privacy: (p) => /* @__PURE__ */ f.jsx(
24973
24973
  "a",
24974
24974
  {
24975
- href: "https://about.apolitical.co/privacy-policy",
24975
+ href: "/pages/privacy-policy",
24976
24976
  "data-gtm-event-context": "SignupForm",
24977
24977
  "data-gtm-event-type": "privacy-policy-click",
24978
24978
  className: "gtm-trackable",
@@ -27109,11 +27109,11 @@ const Jd = "cookieBanner_", ef = [
27109
27109
  legal: {
27110
27110
  order: ["privacy", "terms", "cookie", "accessibility", "ai"],
27111
27111
  privacy: {
27112
- href: "https://about.apolitical.co/privacy-policy",
27112
+ href: "/pages/privacy-policy",
27113
27113
  gtmType: "privacy-policy-link"
27114
27114
  },
27115
27115
  terms: {
27116
- href: "https://about.apolitical.co/terms-and-conditions",
27116
+ href: "/pages/terms-and-conditions",
27117
27117
  gtmType: "terms-conditions-link"
27118
27118
  },
27119
27119
  cookie: { href: "/pages/cookie-policy", gtmType: "cookie-policy-link" },
@@ -27139,14 +27139,7 @@ const Jd = "cookieBanner_", ef = [
27139
27139
  },
27140
27140
  contact: {
27141
27141
  text: {
27142
- order: [
27143
- "london",
27144
- "washington",
27145
- "berlin",
27146
- "registered",
27147
- "support",
27148
- "business"
27149
- ],
27142
+ order: ["london", "washington", "berlin", "registered", "support", "business"],
27150
27143
  london: { address: !0 },
27151
27144
  washington: { address: !0 },
27152
27145
  registered: { address: !0 },
@@ -51164,7 +51157,6 @@ export {
51164
51157
  Op as useHomepagePath,
51165
51158
  ql as useLocale,
51166
51159
  R7 as useOverlay,
51167
- _T as useRepliesFeed,
51168
51160
  l7 as useScrollListener,
51169
51161
  c4 as useScrollToHash,
51170
51162
  z4 as useScrollToPost,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.7.23-re.2",
3
+ "version": "8.7.23",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,48 +0,0 @@
1
- import { QueryKey } from '@tanstack/react-query';
2
- import { IUserContext } from '../../../../../../context';
3
- import { DiscussionType } from '../../../../../../discussion/shared';
4
- import type { ICacheItem, ICachePage, ICacheSubitem, IParsedReplies } from '../..';
5
- export interface IQueryFns {
6
- create: (_: unknown) => Promise<ICacheItem>;
7
- edit: (_: unknown) => Promise<ICacheItem>;
8
- like: (_: unknown) => Promise<ICacheSubitem>;
9
- list: (_: unknown) => Promise<ICachePage>;
10
- remove: (_: unknown) => Promise<void>;
11
- unlike: (_: unknown) => Promise<ICacheSubitem>;
12
- }
13
- interface IRepliesFeedArgs {
14
- queryFns: IQueryFns;
15
- queryKey: QueryKey;
16
- type?: DiscussionType;
17
- }
18
- export interface IRepliesFeedReturn {
19
- replies: IParsedReplies[];
20
- mutations: {
21
- create: (vars: {
22
- activityId: string;
23
- content: string;
24
- replyId?: string;
25
- }) => void;
26
- edit: (vars: {
27
- replyId: string;
28
- content: string;
29
- }) => void;
30
- remove: (vars: {
31
- replyId: string;
32
- }) => void;
33
- like: (vars: {
34
- replyId: string;
35
- }) => void;
36
- unlike: (vars: {
37
- replyId: string;
38
- reactionId: string;
39
- }) => void;
40
- };
41
- user: IUserContext;
42
- error: Error | null;
43
- isLoading: boolean;
44
- hasNextPage: boolean;
45
- fetchNextPage: () => void;
46
- }
47
- export declare function useRepliesFeed({ queryFns: { create, edit, like, list, remove, unlike }, queryKey, type, }: IRepliesFeedArgs): IRepliesFeedReturn;
48
- export {};