@livetiles/reach-plugin-types 0.4.138 → 0.4.140

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 (2) hide show
  1. package/lib/index.d.ts +339 -301
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2054,7 +2054,8 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2054
2054
  export enum EventResponse {
2055
2055
  NotSet = 0,
2056
2056
  Registered = 1,
2057
- Declined = 2
2057
+ Declined = 2,
2058
+ WaitingList = 3
2058
2059
  }
2059
2060
  export interface EventItem extends SchedulableItem {
2060
2061
  startDate?: string;
@@ -2074,6 +2075,7 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2074
2075
  isAllDayEvent?: boolean;
2075
2076
  }
2076
2077
  export interface EventRegistrationSettings {
2078
+ enableWaitingList?: boolean;
2077
2079
  enabled?: boolean;
2078
2080
  showParticipantsToEverybody?: boolean;
2079
2081
  deadline?: string;
@@ -2477,7 +2479,9 @@ declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
2477
2479
  embeddedAudio = "embedded-audio",
2478
2480
  languageChange = "language-change",
2479
2481
  eventRegistration = "event-registration",
2482
+ eventWaitingList = "event-waiting-list",
2480
2483
  eventSeriesRegistration = "event-series-registration",
2484
+ eventSeriesWaitingList = "event-series-waiting-list",
2481
2485
  translateContent = "translate-content",
2482
2486
  downloadFile = "download-file",
2483
2487
  embeddedIframe = "embedded-iframe",
@@ -7069,7 +7073,7 @@ declare module "libs/reach/feature/content/src/news/NewsApiService" {
7069
7073
  getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
7070
7074
  private getNewsFromCache;
7071
7075
  get: (newsId: string) => Observable<NewsItem>;
7072
- getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number) => string;
7076
+ getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number, shouldCropImage?: boolean) => string;
7073
7077
  getStatistics: (newsId: string) => Promise<ItemStatistics>;
7074
7078
  refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
7075
7079
  private static getUpdatedStatistics;
@@ -7601,26 +7605,27 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
7601
7605
  }>;
7602
7606
  }
7603
7607
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7604
- import { FC } from 'react';
7605
7608
  import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7609
+ import { FC } from 'react';
7606
7610
  export const EventLocationInfo: FC<{
7607
- locations: EventLocation[];
7608
- itemId: string;
7609
7611
  className?: string;
7612
+ itemId: string;
7613
+ locations: EventLocation[];
7614
+ noWrap?: boolean;
7610
7615
  }>;
7611
7616
  export const EventPeopleInfo: FC<{
7612
- item: EventItem;
7617
+ className?: string;
7613
7618
  hideAnnouncer?: boolean;
7614
- showFirstContactOnly?: boolean;
7619
+ item: EventItem;
7615
7620
  labelResourceKey?: string;
7616
- className?: string;
7621
+ showFirstContactOnly?: boolean;
7617
7622
  }>;
7618
7623
  export const EventChannelsDisplay: FC<{
7619
- item: EventItem;
7620
- language: string;
7621
- className?: string;
7622
7624
  allowFilterByChannels?: boolean;
7623
7625
  channelBackgroundColor?: string;
7626
+ className?: string;
7627
+ item: EventItem;
7628
+ language: string;
7624
7629
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
7625
7630
  }>;
7626
7631
  export const RTLMetaInfoStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -7671,31 +7676,15 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7671
7676
  className?: string;
7672
7677
  }>;
7673
7678
  }
7674
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7675
- import { EventItem, EventLocation } from "libs/reach/util/common/src/index";
7676
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7677
- import { EventResponse } from "libs/reach/util/common/src/index";
7678
- export interface EventUserRegistrationContextType {
7679
- item: EventItem;
7680
- answers: PollQuestionAnswer[];
7681
- hasMissingAnswers: boolean;
7682
- isLoading: boolean;
7683
- submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7684
- reset: () => Promise<void>;
7685
- onBehalfOfUpn: string;
7686
- hasPollContext: boolean;
7687
- eventResponse: EventResponse;
7688
- setEventResponse: (response: EventResponse) => unknown;
7689
- seatsInfo: EventRegistrationSeatsInfo;
7690
- }
7691
- export interface EventLocationWithLeftSeats extends EventLocation {
7692
- seatsLeft: number;
7693
- }
7694
- export interface EventRegistrationSeatsInfo {
7695
- hasAnySeatsLeft: boolean;
7696
- locations?: EventLocationWithLeftSeats[];
7697
- }
7698
- export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7679
+ declare module "libs/reach/feature/content/src/events/eventUtils" {
7680
+ import { MessageDescriptor } from 'react-intl';
7681
+ import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7682
+ import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7683
+ export function getLocationQuestionId(item: EventItem): string;
7684
+ export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7685
+ question?: PollQuestion;
7686
+ translations?: TranslationItem[];
7687
+ };
7699
7688
  }
7700
7689
  declare module "libs/reach/feature/content/src/common/detail/events/eventUtils" {
7701
7690
  import { FeedbackItem, FeedbackItemType } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
@@ -7710,40 +7699,58 @@ declare module "libs/reach/feature/content/src/common/detail/events/eventUtils"
7710
7699
  isPastDeadline: boolean;
7711
7700
  };
7712
7701
  }
7702
+ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7703
+ import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7704
+ import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7705
+ import { EventResponse } from "libs/reach/util/common/src/index";
7706
+ export function useEventRegistrationApi(): {
7707
+ setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7708
+ getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7709
+ getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7710
+ };
7711
+ }
7713
7712
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton" {
7714
- import { FC } from 'react';
7715
7713
  import { PrimaryButton } from 'office-ui-fabric-react';
7714
+ import { FC } from 'react';
7716
7715
  export const EventRegistrationButton: FC<{
7717
- isRegistered: boolean;
7718
- eventId: string;
7719
- disabled?: boolean;
7720
7716
  className?: string;
7717
+ disabled?: boolean;
7718
+ eventId: string;
7719
+ infoMessageResourceKey?: string;
7720
+ isRegistered: boolean;
7721
+ isWaitingList: boolean;
7722
+ isWaitingListEnabled?: boolean;
7721
7723
  onClick?: () => void;
7722
7724
  showInfoMessage?: boolean;
7723
- infoMessageResourceKey?: string;
7724
7725
  }>;
7725
7726
  export const RegisterButton: import("styled-components").StyledComponent<typeof PrimaryButton, import("styled-components").DefaultTheme, {
7726
7727
  isRegistered?: boolean;
7727
7728
  }, never>;
7728
7729
  }
7729
- declare module "libs/reach/feature/content/src/events/eventUtils" {
7730
- import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7731
- import { MessageDescriptor } from 'react-intl';
7732
- import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7733
- export function getLocationQuestionId(item: EventItem): string;
7734
- export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7735
- question?: PollQuestion;
7736
- translations?: TranslationItem[];
7737
- };
7738
- }
7739
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7740
- import { FC } from 'react';
7741
- import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7742
- export const EventRegistrationLocationSeatsInfo: FC<{
7730
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7731
+ import { EventItem, EventLocation, EventResponse, PollQuestionAnswer } from "libs/reach/util/common/src/index";
7732
+ export interface EventUserRegistrationContextType {
7733
+ answers: PollQuestionAnswer[];
7734
+ eventResponse: EventResponse;
7735
+ hasMissingAnswers: boolean;
7736
+ hasPollContext: boolean;
7737
+ isLoading: boolean;
7738
+ isLoadingPollResult: boolean;
7739
+ item: EventItem;
7740
+ onBehalfOfUpn: string;
7741
+ reset: () => Promise<void>;
7742
+ seatsInfo: EventRegistrationSeatsInfo;
7743
+ setEventResponse: (response: EventResponse) => unknown;
7744
+ submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7745
+ }
7746
+ export interface EventLocationWithLeftSeats extends EventLocation {
7747
+ seatsLeft: number;
7748
+ }
7749
+ export interface EventRegistrationSeatsInfo {
7743
7750
  hasAnySeatsLeft: boolean;
7744
- locations: EventLocationWithLeftSeats[];
7745
- className?: string;
7746
- }>;
7751
+ locations?: EventLocationWithLeftSeats[];
7752
+ }
7753
+ export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7747
7754
  }
7748
7755
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationInfoDescription" {
7749
7756
  export const EventRegistrationInfoDescription: import("styled-components").StyledComponent<import("react").FC<{
@@ -7754,62 +7761,65 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7754
7761
  dir?: string;
7755
7762
  }>, import("styled-components").DefaultTheme, {}, never>;
7756
7763
  }
7757
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
7758
- import { FC } from 'react';
7759
- export const EventRegistrationRegisterStatusInfo: FC<{
7760
- isRegistered: boolean;
7761
- onBehalfOfUpn: string;
7762
- className?: string;
7763
- }>;
7764
- }
7765
7764
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationDeadlineInfo" {
7766
7765
  import { FC } from 'react';
7767
7766
  import { EventItem } from "libs/reach/util/common/src/index";
7768
7767
  export const EventRegistrationDeadlineInfo: FC<{
7769
- item: EventItem;
7770
- isRegistered: boolean;
7771
7768
  className?: string;
7769
+ isRegistered: boolean;
7770
+ item: EventItem;
7772
7771
  }>;
7773
7772
  }
7774
7773
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationFullSeriesDialog" {
7775
7774
  import { FC } from 'react';
7776
7775
  import { EventItem } from "libs/reach/util/common/src/index";
7777
7776
  export const EventUserRegistrationFullSeriesDialog: FC<{
7778
- item: EventItem;
7779
- visible: boolean;
7780
7777
  isRegistered: boolean;
7778
+ isWaitingList: boolean;
7779
+ isWaitingListEnabled?: boolean;
7780
+ item: EventItem;
7781
7781
  onClick: (doRegister: boolean) => unknown;
7782
7782
  onDismiss: () => unknown;
7783
+ visible: boolean;
7783
7784
  }>;
7784
7785
  }
7785
- declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7786
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7787
- import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7788
- import { EventResponse } from "libs/reach/util/common/src/index";
7789
- export function useEventRegistrationApi(): {
7790
- setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7791
- getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7792
- getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7793
- };
7786
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7787
+ import { FC } from 'react';
7788
+ import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7789
+ export const EventRegistrationLocationSeatsInfo: FC<{
7790
+ className?: string;
7791
+ hasAnySeatsLeft: boolean;
7792
+ isHidden: boolean;
7793
+ locations: EventLocationWithLeftSeats[];
7794
+ }>;
7795
+ }
7796
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
7797
+ import { FC } from 'react';
7798
+ export const EventRegistrationRegisterStatusInfo: FC<{
7799
+ className?: string;
7800
+ isRegistered: boolean;
7801
+ isWaitingList: boolean;
7802
+ onBehalfOfUpn: string;
7803
+ }>;
7794
7804
  }
7795
7805
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7796
7806
  import { FC } from 'react';
7797
7807
  import { EventResponse } from "libs/reach/util/common/src/index";
7798
7808
  export const EventUserRegistration: FC<{
7809
+ className?: string;
7799
7810
  disabled?: boolean;
7800
7811
  hideInfoMessage?: boolean;
7801
- onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7802
7812
  onRegistrationRedirect?: (url: string) => void;
7803
- className?: string;
7813
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7804
7814
  }>;
7805
7815
  }
7806
7816
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventCardUserRegistration" {
7807
7817
  import { FC } from 'react';
7808
7818
  import { EventItem, LanguageDirection } from "libs/reach/util/common/src/index";
7809
7819
  export const EventCardUserRegistration: FC<{
7810
- item: EventItem;
7811
- disabled?: boolean;
7812
7820
  className?: string;
7821
+ disabled?: boolean;
7822
+ item: EventItem;
7813
7823
  languageDirection?: LanguageDirection;
7814
7824
  onRegistrationRedirect?: (url: string) => void;
7815
7825
  }>;
@@ -8245,19 +8255,20 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
8245
8255
  import { BannerInfo, ItemResourceTypes } from "libs/reach/util/common/src/index";
8246
8256
  import { BannerImageLoading } from "libs/reach/feature/content/src/common/banner/banner-image/BannerImage";
8247
8257
  interface Props {
8248
- itemId: string;
8249
8258
  bannerInfo: BannerInfo;
8250
- useEditorRoutes?: boolean;
8251
- width: number;
8252
- resourceType: ItemResourceTypes;
8253
- token?: string;
8254
8259
  canOpenImage?: boolean;
8255
- onPlayButtonClick?: () => unknown;
8256
- height?: number;
8257
- hidePlayerIfActive?: boolean;
8258
8260
  className?: string;
8259
8261
  documentIconName?: string;
8262
+ height?: number;
8263
+ hidePlayerIfActive?: boolean;
8260
8264
  imageLoading?: BannerImageLoading;
8265
+ itemId: string;
8266
+ onPlayButtonClick?: () => unknown;
8267
+ resourceType: ItemResourceTypes;
8268
+ shouldCropImage?: boolean;
8269
+ token?: string;
8270
+ width: number;
8271
+ useEditorRoutes?: boolean;
8261
8272
  }
8262
8273
  export const PublishableItemBanner: FC<Props>;
8263
8274
  }
@@ -8340,25 +8351,26 @@ declare module "libs/reach/feature/content/src/common/item-tile/PageItemTile" {
8340
8351
  contentPadding?: string;
8341
8352
  }
8342
8353
  interface Props {
8343
- item: PageItem;
8344
- baseRoute: string;
8345
- targetUrl?: string;
8346
- layoutMode?: ItemTileLayoutMode;
8347
- filterBaseUrl?: string;
8348
- styleDefinition?: StyleDefinition;
8349
- readOnly?: boolean;
8350
8354
  additionalMetadata?: ReactNode;
8351
- buttons?: ReactNode;
8352
8355
  additionalContent?: ReactNode;
8353
- showBannerPlaceholder?: boolean;
8354
- showBreadcrumb?: boolean;
8355
- showIntro?: boolean;
8356
+ baseRoute: string;
8357
+ buttons?: ReactNode;
8358
+ contentGap?: number;
8359
+ className?: string;
8360
+ enableModalRouting?: boolean;
8361
+ filterBaseUrl?: string;
8362
+ item: PageItem;
8363
+ layoutMode?: ItemTileLayoutMode;
8356
8364
  onClick?: (event: React.MouseEvent<unknown>, isTitleClicked?: boolean) => unknown;
8357
8365
  onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
8358
8366
  openTargetInNewWindow?: boolean;
8359
- enableModalRouting?: boolean;
8367
+ readOnly?: boolean;
8360
8368
  showBanner?: boolean;
8361
- className?: string;
8369
+ showBannerPlaceholder?: boolean;
8370
+ showBreadcrumb?: boolean;
8371
+ showIntro?: boolean;
8372
+ styleDefinition?: StyleDefinition;
8373
+ targetUrl?: string;
8362
8374
  }
8363
8375
  export const PageItemTile: FC<Props>;
8364
8376
  }
@@ -8735,31 +8747,188 @@ declare module "libs/reach/feature/content/src/common/cards/CardStatisticItem" {
8735
8747
  };
8736
8748
  }>;
8737
8749
  }
8738
- declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
8739
- import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8750
+ declare module "libs/reach/feature/content/src/common/cards/CardCommentButton" {
8751
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8752
+ import { FC } from 'react';
8753
+ export const CardCommentButton: FC<{
8754
+ item: NewsItem | EventItem;
8755
+ itemResourceType: ItemResourceTypes;
8756
+ targetRoute: string;
8757
+ enableModalRouting?: boolean;
8758
+ }>;
8759
+ }
8760
+ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8761
+ import { FC } from 'react';
8762
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8763
+ export const CardFooter: FC<{
8764
+ item: NewsItem | EventItem;
8765
+ targetRoute: string;
8766
+ itemResourceType: ItemResourceTypes;
8767
+ enableModalRouting?: boolean;
8768
+ className?: string;
8769
+ }>;
8770
+ export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8771
+ }
8772
+ declare module "libs/reach/feature/content/src/events/index" {
8773
+ export * from "libs/reach/feature/content/src/events/EventLocationLink";
8774
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
8775
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
8776
+ export * from "libs/reach/feature/content/src/events/eventUtils";
8777
+ export * from "libs/reach/feature/content/src/events/list/EventCard";
8778
+ export * from "libs/reach/feature/content/src/events/useEventsApi";
8779
+ }
8780
+ declare module "libs/reach/feature/content/src/news/DateInfo" {
8781
+ import { FC } from 'react';
8782
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8783
+ interface DateInfoProps {
8784
+ item: Partial<PublishableItem>;
8785
+ dateMode: DateMode;
8786
+ expiryDate?: string;
8787
+ className?: string;
8788
+ }
8789
+ export enum DateMode {
8790
+ Published = 0,
8791
+ Modified = 1
8792
+ }
8793
+ export const DateInfo: FC<DateInfoProps>;
8794
+ }
8795
+ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8796
+ import { FC } from 'react';
8797
+ import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8798
+ import { Account, Channel, PublishableItem } from "libs/reach/util/common/src/index";
8799
+ export const getAuthor: (item: Partial<PublishableItem>) => Account;
8800
+ export const ItemMetaInfo: FC<{
8801
+ item: Partial<PublishableItem>;
8802
+ className?: string;
8803
+ expiryDate?: string;
8804
+ channels?: Channel[];
8805
+ showChannels?: boolean;
8806
+ dateMode: DateMode;
8807
+ readOnly?: boolean;
8808
+ hideAvatar?: boolean;
8809
+ hideDisplayName?: boolean;
8810
+ language?: string;
8811
+ buildChannelFilterUrl?: (channelName: string) => string;
8812
+ clickableAvatar?: boolean;
8813
+ onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
8814
+ }>;
8815
+ }
8816
+ declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
8817
+ import { FC } from 'react';
8818
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8819
+ export const ExternalNewsLinkButton: FC<{
8820
+ item: PublishableItem;
8821
+ disabled?: boolean;
8822
+ onClick?: (e: React.MouseEvent<unknown>) => unknown;
8823
+ className?: string;
8824
+ }>;
8825
+ }
8826
+ declare module "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton" {
8827
+ import { FC, MouseEvent } from 'react';
8828
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8829
+ import { PageNavigationNode } from "libs/reach/util/common/src/index";
8830
+ export const ExternalPagesLinkButton: FC<{
8831
+ item: PublishableItem | PageNavigationNode;
8832
+ disabled?: boolean;
8833
+ onClick?: (e: MouseEvent) => unknown;
8834
+ className?: string;
8835
+ }>;
8836
+ }
8837
+ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8838
+ import { FC } from 'react';
8839
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8840
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8841
+ interface Props {
8842
+ id: string;
8843
+ item: PublishableItem;
8844
+ itemResourceType: ItemResourceTypes;
8845
+ }
8846
+ export const CardBanner: FC<Props>;
8847
+ }
8848
+ declare module "libs/reach/feature/content/src/common/cards/Card" {
8849
+ import { FC, ReactNode } from 'react';
8850
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8851
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8852
+ import { CurrentUser } from "libs/reach/util/common/src/index";
8853
+ interface CardProps {
8854
+ item: PublishableItem;
8855
+ itemResourceType: ItemResourceTypes;
8856
+ additionalMetadata?: ReactNode;
8857
+ highlight?: boolean;
8858
+ languageDirection?: string;
8859
+ className?: string;
8860
+ }
8861
+ export const Card: FC<CardProps>;
8862
+ export interface CardItem<TItem = PublishableItem> {
8863
+ item: TItem;
8864
+ language: string;
8865
+ }
8866
+ export function getCardItems<TItem extends PublishableItem>(items: TItem[], user: CurrentUser): CardItem<TItem>[];
8867
+ }
8868
+ declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8869
+ export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8870
+ export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8871
+ }
8872
+ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
8873
+ import { FC } from 'react';
8874
+ import { NewsItem } from "libs/reach/util/common/src/index";
8875
+ interface NewsCardProps {
8876
+ item: NewsItem;
8877
+ baseRoute: string;
8878
+ language: string;
8879
+ highlight: boolean;
8880
+ className?: string;
8881
+ }
8882
+ export const NewsCard: FC<NewsCardProps>;
8883
+ }
8884
+ declare module "libs/reach/feature/content/src/news/list-view/EmptyChannelsView" {
8885
+ import { FC } from 'react';
8886
+ export const EmptyChannelsView: FC;
8887
+ }
8888
+ declare module "libs/reach/feature/content/src/news/list-view/PromotedNewsItem" {
8740
8889
  import { FC } from 'react';
8741
- export const CardCommentButton: FC<{
8742
- item: NewsItem | EventItem;
8743
- itemResourceType: ItemResourceTypes;
8744
- targetRoute: string;
8745
- enableModalRouting?: boolean;
8746
- }>;
8890
+ import { NewsItem } from "libs/reach/util/common/src/index";
8891
+ interface Props {
8892
+ item: NewsItem;
8893
+ iconName: string;
8894
+ iconTooltipStringResource: string;
8895
+ baseItemRoute: string;
8896
+ msColorName: string;
8897
+ }
8898
+ export const PromotedNewsItem: FC<Props>;
8747
8899
  }
8748
- declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8900
+ declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
8749
8901
  import { FC } from 'react';
8750
- import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8751
- export const CardFooter: FC<{
8752
- item: NewsItem | EventItem;
8753
- targetRoute: string;
8754
- itemResourceType: ItemResourceTypes;
8755
- enableModalRouting?: boolean;
8756
- className?: string;
8902
+ import { NewsItem } from "libs/reach/util/common/src/index";
8903
+ import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/index";
8904
+ export const NewsList: FC<{
8905
+ items: NewsItem[];
8906
+ baseItemRoute: string;
8907
+ isLoading: boolean;
8908
+ isLastPage: boolean;
8909
+ unreadOnly?: boolean;
8910
+ filter?: NewsFilterDefinition;
8911
+ activeChannel?: string;
8757
8912
  }>;
8758
- export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8759
8913
  }
8760
- declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8761
- export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8762
- export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8914
+ declare module "libs/reach/feature/content/src/news/useTranslateApi" {
8915
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8916
+ import { PublishableItemContent } from "libs/reach/util/common/src/index";
8917
+ export function useTranslateApi(): {
8918
+ translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
8919
+ };
8920
+ }
8921
+ declare module "libs/reach/feature/content/src/news/index" {
8922
+ export * from "libs/reach/feature/content/src/news/DateInfo";
8923
+ export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
8924
+ export * from "libs/reach/feature/content/src/news/NewsService";
8925
+ export * from "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton";
8926
+ export * from "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton";
8927
+ export * from "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton";
8928
+ export * from "libs/reach/feature/content/src/news/list-view/NewsCard";
8929
+ export * from "libs/reach/feature/content/src/news/list-view/NewsList";
8930
+ export * from "libs/reach/feature/content/src/news/useNewsApi";
8931
+ export * from "libs/reach/feature/content/src/news/useTranslateApi";
8763
8932
  }
8764
8933
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
8765
8934
  import { FC } from 'react';
@@ -8833,17 +9002,6 @@ declare module "libs/reach/feature/content/src/pages/pageTocUtils" {
8833
9002
  import { PageNavigationNode } from "libs/reach/util/common/src/index";
8834
9003
  export function filterChildren(page: PageNavigationNode, activePage: PageNavigationNode): boolean;
8835
9004
  }
8836
- declare module "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton" {
8837
- import { FC, MouseEvent } from 'react';
8838
- import { PublishableItem } from "libs/reach/util/common/src/index";
8839
- import { PageNavigationNode } from "libs/reach/util/common/src/index";
8840
- export const ExternalPagesLinkButton: FC<{
8841
- item: PublishableItem | PageNavigationNode;
8842
- disabled?: boolean;
8843
- onClick?: (e: MouseEvent) => unknown;
8844
- className?: string;
8845
- }>;
8846
- }
8847
9005
  declare module "libs/reach/feature/content/src/pages/PageTocNode" {
8848
9006
  import { FC } from 'react';
8849
9007
  import { PageNavigationContext, PageNavigationNode } from "libs/reach/util/common/src/index";
@@ -8967,176 +9125,31 @@ declare module "libs/reach/feature/content/src/pages/index" {
8967
9125
  export * from "libs/reach/feature/content/src/pages/utils";
8968
9126
  export * from "libs/reach/feature/content/src/pages/DocumentDownloadButton";
8969
9127
  }
8970
- declare module "libs/reach/feature/content/src/news/DateInfo" {
8971
- import { FC } from 'react';
8972
- import { PublishableItem } from "libs/reach/util/common/src/index";
8973
- interface DateInfoProps {
8974
- item: Partial<PublishableItem>;
8975
- dateMode: DateMode;
8976
- expiryDate?: string;
8977
- className?: string;
8978
- }
8979
- export enum DateMode {
8980
- Published = 0,
8981
- Modified = 1
8982
- }
8983
- export const DateInfo: FC<DateInfoProps>;
8984
- }
8985
- declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8986
- import { FC } from 'react';
8987
- import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8988
- import { Account, Channel, PublishableItem } from "libs/reach/util/common/src/index";
8989
- export const getAuthor: (item: Partial<PublishableItem>) => Account;
8990
- export const ItemMetaInfo: FC<{
8991
- item: Partial<PublishableItem>;
8992
- className?: string;
8993
- expiryDate?: string;
8994
- channels?: Channel[];
8995
- showChannels?: boolean;
8996
- dateMode: DateMode;
8997
- readOnly?: boolean;
8998
- hideAvatar?: boolean;
8999
- hideDisplayName?: boolean;
9000
- language?: string;
9001
- buildChannelFilterUrl?: (channelName: string) => string;
9002
- clickableAvatar?: boolean;
9003
- onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
9004
- }>;
9005
- }
9006
- declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
9007
- import { FC } from 'react';
9008
- import { PublishableItem } from "libs/reach/util/common/src/index";
9009
- export const ExternalNewsLinkButton: FC<{
9010
- item: PublishableItem;
9011
- disabled?: boolean;
9012
- onClick?: (e: React.MouseEvent<unknown>) => unknown;
9013
- className?: string;
9014
- }>;
9015
- }
9016
- declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
9017
- import { FC } from 'react';
9018
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9019
- import { PublishableItem } from "libs/reach/util/common/src/index";
9020
- interface Props {
9021
- id: string;
9022
- item: PublishableItem;
9023
- itemResourceType: ItemResourceTypes;
9024
- }
9025
- export const CardBanner: FC<Props>;
9026
- }
9027
- declare module "libs/reach/feature/content/src/common/cards/Card" {
9028
- import { FC, ReactNode } from 'react';
9029
- import { PublishableItem } from "libs/reach/util/common/src/index";
9030
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9031
- import { CurrentUser } from "libs/reach/util/common/src/index";
9032
- interface CardProps {
9033
- item: PublishableItem;
9034
- itemResourceType: ItemResourceTypes;
9035
- additionalMetadata?: ReactNode;
9036
- highlight?: boolean;
9037
- languageDirection?: string;
9038
- className?: string;
9039
- }
9040
- export const Card: FC<CardProps>;
9041
- export interface CardItem<TItem = PublishableItem> {
9042
- item: TItem;
9043
- language: string;
9044
- }
9045
- export function getCardItems<TItem extends PublishableItem>(items: TItem[], user: CurrentUser): CardItem<TItem>[];
9046
- }
9047
- declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
9048
- import { FC } from 'react';
9049
- import { NewsItem } from "libs/reach/util/common/src/index";
9050
- interface NewsCardProps {
9051
- item: NewsItem;
9052
- baseRoute: string;
9053
- language: string;
9054
- highlight: boolean;
9055
- className?: string;
9056
- }
9057
- export const NewsCard: FC<NewsCardProps>;
9058
- }
9059
- declare module "libs/reach/feature/content/src/news/list-view/EmptyChannelsView" {
9060
- import { FC } from 'react';
9061
- export const EmptyChannelsView: FC;
9062
- }
9063
- declare module "libs/reach/feature/content/src/news/list-view/PromotedNewsItem" {
9064
- import { FC } from 'react';
9065
- import { NewsItem } from "libs/reach/util/common/src/index";
9066
- interface Props {
9067
- item: NewsItem;
9068
- iconName: string;
9069
- iconTooltipStringResource: string;
9070
- baseItemRoute: string;
9071
- msColorName: string;
9072
- }
9073
- export const PromotedNewsItem: FC<Props>;
9074
- }
9075
- declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
9076
- import { FC } from 'react';
9077
- import { NewsItem } from "libs/reach/util/common/src/index";
9078
- import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/index";
9079
- export const NewsList: FC<{
9080
- items: NewsItem[];
9081
- baseItemRoute: string;
9082
- isLoading: boolean;
9083
- isLastPage: boolean;
9084
- unreadOnly?: boolean;
9085
- filter?: NewsFilterDefinition;
9086
- activeChannel?: string;
9087
- }>;
9088
- }
9089
- declare module "libs/reach/feature/content/src/news/useTranslateApi" {
9090
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9091
- import { PublishableItemContent } from "libs/reach/util/common/src/index";
9092
- export function useTranslateApi(): {
9093
- translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
9094
- };
9095
- }
9096
- declare module "libs/reach/feature/content/src/news/index" {
9097
- export * from "libs/reach/feature/content/src/news/DateInfo";
9098
- export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
9099
- export * from "libs/reach/feature/content/src/news/NewsService";
9100
- export * from "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton";
9101
- export * from "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton";
9102
- export * from "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton";
9103
- export * from "libs/reach/feature/content/src/news/list-view/NewsCard";
9104
- export * from "libs/reach/feature/content/src/news/list-view/NewsList";
9105
- export * from "libs/reach/feature/content/src/news/useNewsApi";
9106
- export * from "libs/reach/feature/content/src/news/useTranslateApi";
9107
- }
9108
- declare module "libs/reach/feature/content/src/events/index" {
9109
- export * from "libs/reach/feature/content/src/events/EventLocationLink";
9110
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
9111
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
9112
- export * from "libs/reach/feature/content/src/events/eventUtils";
9113
- export * from "libs/reach/feature/content/src/events/list/EventCard";
9114
- export * from "libs/reach/feature/content/src/events/useEventsApi";
9115
- }
9116
9128
  declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
9117
- import { FC, MouseEvent, ReactNode } from 'react';
9118
9129
  import { Channel, EventItem } from "libs/reach/util/common/src/index";
9130
+ import { FC, MouseEvent, ReactNode } from 'react';
9119
9131
  import { ItemTileLayoutMode } from "libs/reach/feature/content/src/common/item-tile/NewsItemTile";
9120
9132
  interface StyleDefinition {
9121
9133
  backgroundColor?: string;
9122
- noShadow?: boolean;
9123
- channelsBackgroundColor?: string;
9124
9134
  bannerContainerDefaultWidth?: number;
9135
+ channelsBackgroundColor?: string;
9136
+ noShadow?: boolean;
9125
9137
  showPlaceholderIfNoBannerInfo?: boolean;
9126
9138
  }
9127
9139
  interface Props {
9128
- item: EventItem;
9129
9140
  baseRoute: string;
9130
- layoutMode?: ItemTileLayoutMode;
9131
9141
  buttons?: ReactNode;
9132
- openTargetInNewWindow?: boolean;
9133
- onClick?: (event: MouseEvent<unknown>) => unknown;
9142
+ className?: string;
9143
+ contentGap?: number;
9144
+ item: EventItem;
9145
+ layoutMode?: ItemTileLayoutMode;
9134
9146
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
9135
- styleDefinition?: StyleDefinition;
9147
+ onClick?: (event: MouseEvent<unknown>) => unknown;
9148
+ onRegistrationRedirect?: (url: string) => void;
9149
+ openTargetInNewWindow?: boolean;
9136
9150
  showBanner?: boolean;
9137
9151
  showBannerAlwaysOnTheLeft?: boolean;
9138
- onRegistrationRedirect?: (url: string) => void;
9139
- className?: string;
9152
+ styleDefinition?: StyleDefinition;
9140
9153
  }
9141
9154
  export const EventItemTile: FC<Props>;
9142
9155
  }
@@ -9474,22 +9487,20 @@ declare module "libs/reach/feature/content/src/feedback/PollDisplay" {
9474
9487
  }
9475
9488
  declare module "libs/reach/feature/content/src/feedback/PollUserContextProvider" {
9476
9489
  import { FC } from 'react';
9477
- import { PublishableItem } from "libs/reach/util/common/src/index";
9478
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9479
- import { PollQuestion, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
9490
+ import { ItemResourceTypes, PollQuestion, PollQuestionAnswer, PollResult, PublishableItem } from "libs/reach/util/common/src/index";
9480
9491
  import { FeedbackItem } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
9481
9492
  import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
9482
9493
  export const PollUserContextProvider: FC<{
9483
- item: PublishableItem;
9484
- onBehalfOfUpn?: string;
9485
- resourceType: ItemResourceTypes;
9486
- language: string;
9487
9494
  getAdditionalQuestions?: (pollResult?: PollResult) => {
9488
9495
  questions: PollQuestion[];
9489
9496
  translations: TranslationItem[];
9490
9497
  };
9491
9498
  getAdditionalUserAnswers?: (records: FeedbackItem[]) => PollQuestionAnswer[];
9492
9499
  getPollResults: (itemId: string) => Promise<PollResult>;
9500
+ item: PublishableItem;
9501
+ language: string;
9502
+ onBehalfOfUpn?: string;
9503
+ resourceType: ItemResourceTypes;
9493
9504
  showResult?: boolean;
9494
9505
  }>;
9495
9506
  }
@@ -9526,9 +9537,9 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
9526
9537
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewUserRegistration" {
9527
9538
  import { FC } from 'react';
9528
9539
  export const EventDetailViewUserRegistration: FC<{
9540
+ className?: string;
9529
9541
  hideInfoMessage?: boolean;
9530
9542
  isReadOnly?: boolean;
9531
- className?: string;
9532
9543
  }>;
9533
9544
  }
9534
9545
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterSomeoneElseDialog" {
@@ -10258,10 +10269,16 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
10258
10269
  import { Channel } from "libs/reach/util/common/src/index";
10259
10270
  import { AfterPublishingDateFilterDefinition, BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, FilterWithLogicalOperator, ItemTypeFilterDefinition, ItemTypeFilterFlag, KeywordsFilterDefinition, OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/index";
10260
10271
  export enum StreamEventResponse {
10261
- NotSet = "NOTSET",
10272
+ NotSet = "NOT_SET",
10262
10273
  Registered = "REGISTERED",
10274
+ WaitingList = "WAITING_LIST",
10263
10275
  Declined = "DECLINED"
10264
10276
  }
10277
+ export enum StreamSeriesRegistrationMode {
10278
+ None = "NONE",
10279
+ FullSeries = "FULL_SERIES",
10280
+ PerInstance = "PER_INSTANCE"
10281
+ }
10265
10282
  export interface StreamFilterDefinition extends BeforePublishingDateFilterDefinition, AfterPublishingDateFilterDefinition, OwnerFilterDefinition, ChannelsFilterDefinition, KeywordsFilterDefinition, ItemTypeFilterDefinition {
10266
10283
  }
10267
10284
  export function useStreamItemsQuery(query: DocumentNode, searchText?: string, defaultPageSize?: number, doNotLoadOnEmpty?: boolean): {
@@ -10321,7 +10338,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
10321
10338
  export * from "libs/reach/feature/content/src/posts/utils";
10322
10339
  }
10323
10340
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
10324
- import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, ItemResourceTypes, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
10341
+ import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, ItemResourceTypes, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList, SeriesRegistrationMode } from "libs/reach/util/common/src/index";
10325
10342
  import { Post } from "libs/reach/feature/content/src/posts/index";
10326
10343
  import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
10327
10344
  export enum StreamItemTypes {
@@ -10962,6 +10979,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10962
10979
  poll?: import("@livetiles/reach/util/common").Poll;
10963
10980
  } | {
10964
10981
  userResponse: EventResponse;
10982
+ registrationSettings: {
10983
+ seriesMode: SeriesRegistrationMode;
10984
+ enableWaitingList?: boolean;
10985
+ enabled?: boolean;
10986
+ showParticipantsToEverybody?: boolean;
10987
+ deadline?: string;
10988
+ };
10965
10989
  cancelInformation: {
10966
10990
  reasons: {
10967
10991
  [key: string]: string;
@@ -11013,6 +11037,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11013
11037
  attachmentContainerId?: string;
11014
11038
  } | {
11015
11039
  userResponse: EventResponse;
11040
+ registrationSettings: {
11041
+ seriesMode: SeriesRegistrationMode;
11042
+ enableWaitingList?: boolean;
11043
+ enabled?: boolean;
11044
+ showParticipantsToEverybody?: boolean;
11045
+ deadline?: string;
11046
+ };
11016
11047
  cancelInformation: {
11017
11048
  reasons: {
11018
11049
  [key: string]: string;
@@ -11078,6 +11109,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11078
11109
  poll?: import("@livetiles/reach/util/common").Poll;
11079
11110
  } | {
11080
11111
  userResponse: EventResponse;
11112
+ registrationSettings: {
11113
+ seriesMode: SeriesRegistrationMode;
11114
+ enableWaitingList?: boolean;
11115
+ enabled?: boolean;
11116
+ showParticipantsToEverybody?: boolean;
11117
+ deadline?: string;
11118
+ };
11081
11119
  cancelInformation: {
11082
11120
  reasons: {
11083
11121
  [key: string]: string;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.138",
7
+ "version": "0.4.140",
8
8
  "dependencies": {}
9
9
  }