@apolitical/component-library 8.3.27 → 8.3.28-ST.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.
@@ -1 +1,2 @@
1
1
  export { default as MarketingBlock } from './marketing-block';
2
+ export type { MarketingBlockProps } from './marketing-block';
@@ -1,5 +1,5 @@
1
1
  import { type ButtonVariantType } from '../../general';
2
- interface Props {
2
+ export interface MarketingBlockProps {
3
3
  /** The colour variant to use */
4
4
  variant?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
5
5
  /** If `button` is provided, with `link` and `text` strings, a button will be rendered on the component */
@@ -15,5 +15,5 @@ interface Props {
15
15
  /** The GTM event context */
16
16
  gtmContext?: string;
17
17
  }
18
- declare const MarketingBlock: ({ variant, button, title, text, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element | null;
18
+ declare const MarketingBlock: ({ variant, button, title, text, gtmContext, }: MarketingBlockProps) => import("react/jsx-runtime").JSX.Element | null;
19
19
  export default MarketingBlock;
@@ -1,24 +1,16 @@
1
1
  import React from 'react';
2
- export type LanguageType = keyof typeof supportedLanguages;
2
+ import { TLocale } from '@apolitical/contracts';
3
3
  export interface IIntlContext {
4
- locale?: LanguageType;
4
+ locale?: TLocale;
5
5
  messages?: Record<string, string>;
6
6
  }
7
7
  interface Props extends IIntlContext {
8
8
  children: React.ReactNode;
9
9
  }
10
10
  interface ILanguageContext {
11
- language?: LanguageType;
12
- updateLanguage?: (lang: string) => void;
11
+ language?: TLocale;
12
+ updateLanguage?: (lang: TLocale) => void;
13
13
  }
14
14
  export declare const IntlProvider: ({ children, locale, messages }: Props) => import("react/jsx-runtime").JSX.Element;
15
15
  export declare const LanguageContext: React.Context<ILanguageContext>;
16
- export declare const supportedLanguages: {
17
- en: string;
18
- es: string;
19
- fr: string;
20
- pt: string;
21
- id: string;
22
- 'pt-BR': string;
23
- };
24
16
  export {};
@@ -1,2 +1,3 @@
1
1
  export { default as ActivitiesFeed } from './activities-feed';
2
2
  export type { ICreatePollVars } from './cache';
3
+ export { useActivitiesFeed } from './cache';
@@ -20,12 +20,7 @@ export declare const courseDiscussionActivitySectionMock: {
20
20
  };
21
21
  categories: never[];
22
22
  content: {
23
- en: string;
24
- es: string;
25
- fr: string;
26
- pt: string;
27
- id: string;
28
- 'pt-BR': string;
23
+ [k: string]: string;
29
24
  };
30
25
  feed_id: string;
31
26
  foreign_id: string;