@apolitical/component-library 3.0.3-4117.1 → 3.0.3-ac.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,6 +1,6 @@
1
1
  import { ResponsiveImageType } from '../general';
2
2
  import { MemberProps } from '../user';
3
- export type CardContentType = 'customCard' | 'event' | 'learningHub' | 'listPage' | 'microcourse' | 'people' | 'qaQuestion' | 'solutionArticle';
3
+ export type CardContentType = 'customCard' | 'event' | 'learningHub' | 'listPage' | 'microcourse' | 'people' | 'qaQuestion' | 'solutionArticle' | 'community';
4
4
  export type CustomIconType = 'calendar' | 'cube' | 'document' | 'download' | 'globe' | 'graduationCap' | 'link' | 'person' | 'star' | 'speech';
5
5
  export interface CardCTAType {
6
6
  /** The text to show on the CTA button - different content types have different fallbacks */
@@ -62,6 +62,11 @@ export interface CardType {
62
62
  profile?: string;
63
63
  /** The number of answers */
64
64
  answers?: number;
65
+ /** Community cards */
66
+ members?: {
67
+ isMember: boolean;
68
+ count: number;
69
+ };
65
70
  }
66
71
  export interface MockCardType extends CardType {
67
72
  cardType?: string;
@@ -214,11 +214,35 @@ export namespace learningHub {
214
214
  let slug_6: string;
215
215
  export { slug_6 as slug };
216
216
  }
217
- export namespace custom {
217
+ export namespace community {
218
218
  let contentType_7: string;
219
219
  export { contentType_7 as contentType };
220
- let slug_7: null;
220
+ export namespace sys {
221
+ let id: string;
222
+ }
223
+ let title_10: string;
224
+ export { title_10 as title };
225
+ let slug_7: string;
221
226
  export { slug_7 as slug };
227
+ let _private: boolean;
228
+ export { _private as private };
229
+ export let visible: boolean;
230
+ export namespace bannerSection {
231
+ export let eyebrow: string;
232
+ let title_11: string;
233
+ export { title_11 as title };
234
+ let text_1: string;
235
+ export { text_1 as text };
236
+ export let ctaLink: null;
237
+ export let ctaText: null;
238
+ export let image: null;
239
+ }
240
+ }
241
+ export namespace custom {
242
+ let contentType_8: string;
243
+ export { contentType_8 as contentType };
244
+ let slug_8: null;
245
+ export { slug_8 as slug };
222
246
  export let customIcon: string;
223
247
  export let customLabel: string;
224
248
  let contributors_7: {
@@ -228,8 +252,8 @@ export namespace custom {
228
252
  };
229
253
  }[];
230
254
  export { contributors_7 as contributors };
231
- let text_1: string;
232
- export { text_1 as text };
255
+ let text_2: string;
256
+ export { text_2 as text };
233
257
  let secondaryText_1: string;
234
258
  export { secondaryText_1 as secondaryText };
235
259
  }
@@ -7,6 +7,7 @@ export declare const CONTENT_TYPES: {
7
7
  QUESTION: string;
8
8
  PEOPLE: string;
9
9
  LEARNING_HUB: string;
10
+ COMMUNITY: string;
10
11
  CUSTOM: string;
11
12
  };
12
13
  export declare const buildCard: (contentType: string, cardType?: string | null) => {
@@ -97,6 +98,7 @@ export declare const cardMapper: {
97
98
  people?: undefined;
98
99
  learningHub?: undefined;
99
100
  custom?: undefined;
101
+ community?: undefined;
100
102
  } | {
101
103
  premium: {
102
104
  contentType: string;
@@ -181,6 +183,7 @@ export declare const cardMapper: {
181
183
  people?: undefined;
182
184
  learningHub?: undefined;
183
185
  custom?: undefined;
186
+ community?: undefined;
184
187
  } | {
185
188
  upcoming: {
186
189
  contentType: string;
@@ -298,6 +301,7 @@ export declare const cardMapper: {
298
301
  people?: undefined;
299
302
  learningHub?: undefined;
300
303
  custom?: undefined;
304
+ community?: undefined;
301
305
  } | {
302
306
  list: {
303
307
  contentType: string;
@@ -332,6 +336,7 @@ export declare const cardMapper: {
332
336
  people?: undefined;
333
337
  learningHub?: undefined;
334
338
  custom?: undefined;
339
+ community?: undefined;
335
340
  } | {
336
341
  noAnswers: {
337
342
  contentType: string;
@@ -403,6 +408,7 @@ export declare const cardMapper: {
403
408
  people?: undefined;
404
409
  learningHub?: undefined;
405
410
  custom?: undefined;
411
+ community?: undefined;
406
412
  } | {
407
413
  people: {
408
414
  contentType: string;
@@ -431,6 +437,7 @@ export declare const cardMapper: {
431
437
  longQuestion?: undefined;
432
438
  learningHub?: undefined;
433
439
  custom?: undefined;
440
+ community?: undefined;
434
441
  } | {
435
442
  learningHub: {
436
443
  contentType: string;
@@ -460,6 +467,7 @@ export declare const cardMapper: {
460
467
  longQuestion?: undefined;
461
468
  people?: undefined;
462
469
  custom?: undefined;
470
+ community?: undefined;
463
471
  } | {
464
472
  custom: {
465
473
  contentType: string;
@@ -494,7 +502,48 @@ export declare const cardMapper: {
494
502
  longQuestion?: undefined;
495
503
  people?: undefined;
496
504
  learningHub?: undefined;
505
+ community?: undefined;
506
+ } | {
507
+ community: {
508
+ contentType: string;
509
+ sys: {
510
+ id: string;
511
+ };
512
+ title: string;
513
+ slug: string;
514
+ private: boolean;
515
+ visible: boolean;
516
+ bannerSection: {
517
+ eyebrow: string;
518
+ title: string;
519
+ text: string;
520
+ ctaLink: null;
521
+ ctaText: null;
522
+ image: null;
523
+ };
524
+ };
525
+ oneAuthor?: undefined;
526
+ twoAuthors?: undefined;
527
+ multipleAuthors?: undefined;
528
+ premium?: undefined;
529
+ free?: undefined;
530
+ partner?: undefined;
531
+ registered?: undefined;
532
+ upcoming?: undefined;
533
+ past?: undefined;
534
+ twoSpeakers?: undefined;
535
+ multipleSpeakers?: undefined;
536
+ list?: undefined;
537
+ noAnswers?: undefined;
538
+ oneAnswer?: undefined;
539
+ multipleAnswers?: undefined;
540
+ shortQuestion?: undefined;
541
+ longQuestion?: undefined;
542
+ people?: undefined;
543
+ learningHub?: undefined;
544
+ custom?: undefined;
497
545
  };
498
546
  };
499
547
  export declare const buildCardDataMock: (card: MockCardType) => Promise<unknown>;
500
548
  export declare const buildCustomCardData: (card: CardType) => () => Promise<unknown>;
549
+ export declare const buildCommunityCardData: (card: CardType) => () => Promise<unknown>;