@livetiles/reach-plugin-types 0.5.0-preview.1033 → 0.5.0-preview.1035

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 +203 -122
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2098,7 +2098,8 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2098
2098
  export enum EventResponse {
2099
2099
  NotSet = 0,
2100
2100
  Registered = 1,
2101
- Declined = 2
2101
+ Declined = 2,
2102
+ WaitingList = 3
2102
2103
  }
2103
2104
  export interface EventItem extends SchedulableItem {
2104
2105
  startDate?: string;
@@ -2118,6 +2119,7 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2118
2119
  isAllDayEvent?: boolean;
2119
2120
  }
2120
2121
  export interface EventRegistrationSettings {
2122
+ enableWaitingList?: boolean;
2121
2123
  enabled?: boolean;
2122
2124
  showParticipantsToEverybody?: boolean;
2123
2125
  deadline?: string;
@@ -2523,7 +2525,9 @@ declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
2523
2525
  embeddedAudio = "embedded-audio",
2524
2526
  languageChange = "language-change",
2525
2527
  eventRegistration = "event-registration",
2528
+ eventWaitingList = "event-waiting-list",
2526
2529
  eventSeriesRegistration = "event-series-registration",
2530
+ eventSeriesWaitingList = "event-series-waiting-list",
2527
2531
  translateContent = "translate-content",
2528
2532
  downloadFile = "download-file",
2529
2533
  embeddedIframe = "embedded-iframe",
@@ -3170,6 +3174,7 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
3170
3174
  primary: "#0F0E0E";
3171
3175
  secondary: "#3E3938";
3172
3176
  tertiary: "#5C5653";
3177
+ themeIcon: "#663120";
3173
3178
  };
3174
3179
  export const strokeColors: {
3175
3180
  avatar: "#FFFFFF";
@@ -3177,6 +3182,12 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
3177
3182
  disabled: "#C2BCB9";
3178
3183
  focus: "#0F0E0E";
3179
3184
  primary: "#0F0E0E";
3185
+ theme: {
3186
+ default: "#FF7A50";
3187
+ focus: "#663120";
3188
+ hover: "#CC6240";
3189
+ pressed: "#994930";
3190
+ };
3180
3191
  };
3181
3192
  divider: {
3182
3193
  disabled: "#C2BCB9";
@@ -3197,7 +3208,11 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
3197
3208
  export const themeColors: {
3198
3209
  disabled: "#FFE4DC";
3199
3210
  hover: "#FF7A50";
3200
- interactionSelected: "#FFE4DC";
3211
+ interaction: {
3212
+ hover: "#FFCAB9";
3213
+ selected: "#FFE4DC";
3214
+ pressed: "#FFAF96";
3215
+ };
3201
3216
  inverted: {
3202
3217
  hover: "#FFE4DC";
3203
3218
  pressed: "#FFCAB9";
@@ -3380,6 +3395,7 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
3380
3395
  primary: "#0F0E0E";
3381
3396
  secondary: "#3E3938";
3382
3397
  tertiary: "#5C5653";
3398
+ themeIcon: "#663120";
3383
3399
  };
3384
3400
  stroke: {
3385
3401
  avatar: "#FFFFFF";
@@ -3387,6 +3403,12 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
3387
3403
  disabled: "#C2BCB9";
3388
3404
  focus: "#0F0E0E";
3389
3405
  primary: "#0F0E0E";
3406
+ theme: {
3407
+ default: "#FF7A50";
3408
+ focus: "#663120";
3409
+ hover: "#CC6240";
3410
+ pressed: "#994930";
3411
+ };
3390
3412
  };
3391
3413
  divider: {
3392
3414
  disabled: "#C2BCB9";
@@ -3407,7 +3429,11 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
3407
3429
  theme: {
3408
3430
  disabled: "#FFE4DC";
3409
3431
  hover: "#FF7A50";
3410
- interactionSelected: "#FFE4DC";
3432
+ interaction: {
3433
+ hover: "#FFCAB9";
3434
+ selected: "#FFE4DC";
3435
+ pressed: "#FFAF96";
3436
+ };
3411
3437
  inverted: {
3412
3438
  hover: "#FFE4DC";
3413
3439
  pressed: "#FFCAB9";
@@ -3595,6 +3621,7 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3595
3621
  primary: "#0F0E0E";
3596
3622
  secondary: "#3E3938";
3597
3623
  tertiary: "#5C5653";
3624
+ themeIcon: "#663120";
3598
3625
  };
3599
3626
  stroke: {
3600
3627
  avatar: "#FFFFFF";
@@ -3602,6 +3629,12 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3602
3629
  disabled: "#C2BCB9";
3603
3630
  focus: "#0F0E0E";
3604
3631
  primary: "#0F0E0E";
3632
+ theme: {
3633
+ default: "#FF7A50";
3634
+ focus: "#663120";
3635
+ hover: "#CC6240";
3636
+ pressed: "#994930";
3637
+ };
3605
3638
  };
3606
3639
  divider: {
3607
3640
  disabled: "#C2BCB9";
@@ -3622,7 +3655,11 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
3622
3655
  theme: {
3623
3656
  disabled: "#FFE4DC";
3624
3657
  hover: "#FF7A50";
3625
- interactionSelected: "#FFE4DC";
3658
+ interaction: {
3659
+ hover: "#FFCAB9";
3660
+ selected: "#FFE4DC";
3661
+ pressed: "#FFAF96";
3662
+ };
3626
3663
  inverted: {
3627
3664
  hover: "#FFE4DC";
3628
3665
  pressed: "#FFCAB9";
@@ -6378,6 +6415,7 @@ declare module "libs/reach/ui/common/src/reach-2/inputs/components/Legend" {
6378
6415
  }
6379
6416
  declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
6380
6417
  import React, { SVGProps } from 'react';
6418
+ export type TagSize = 'Large' | 'Small';
6381
6419
  interface TagProps {
6382
6420
  className?: string;
6383
6421
  error?: boolean;
@@ -6385,6 +6423,7 @@ declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
6385
6423
  label: string;
6386
6424
  onClick?: () => void;
6387
6425
  onClose?: () => void;
6426
+ size?: TagSize;
6388
6427
  }
6389
6428
  const Tag: React.FC<TagProps>;
6390
6429
  export default Tag;
@@ -6493,6 +6532,25 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
6493
6532
  }
6494
6533
  export const BasePopover: FC<BasePopoverProps>;
6495
6534
  }
6535
+ declare module "libs/reach/ui/common/src/reach-2/utils" {
6536
+ import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
6537
+ export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
6538
+ export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
6539
+ breakpoints: number[];
6540
+ initialBreakpoint: number;
6541
+ };
6542
+ export const getIsMobilePhone: () => boolean;
6543
+ export type TagValue = {
6544
+ id: string;
6545
+ label?: string;
6546
+ name?: string;
6547
+ };
6548
+ export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
6549
+ hasError?: (value: TagValue) => boolean;
6550
+ onClose?: (value: TagValue) => void;
6551
+ size?: TagSize;
6552
+ }) => any[];
6553
+ }
6496
6554
  declare module "libs/reach/ui/common/src/reach-2/select/Select" {
6497
6555
  import { IconProps } from "libs/reach/ui/common/src/reach-2/icons/index";
6498
6556
  type SelectSize = 'Large' | 'Small';
@@ -6589,10 +6647,11 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
6589
6647
  import { AnimationBuilder } from '@ionic/core';
6590
6648
  import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
6591
6649
  export type MobileInlineModalProps = BaseDialogProps & {
6650
+ customActionButton?: SVGProps<SVGElement>;
6592
6651
  enterAnimation?: AnimationBuilder;
6593
- leaveAnimation?: AnimationBuilder;
6652
+ footer?: JSX.Element;
6594
6653
  hideHeader?: boolean;
6595
- customActionButton?: SVGProps<SVGElement>;
6654
+ leaveAnimation?: AnimationBuilder;
6596
6655
  };
6597
6656
  export const MobileInlineModal: FC<MobileInlineModalProps>;
6598
6657
  }
@@ -6693,13 +6752,17 @@ declare module "libs/reach/ui/common/src/reach-2/table/Table" {
6693
6752
  const _default_2: import("react").ForwardRefExoticComponent<TableProps<any> & import("react").RefAttributes<any>>;
6694
6753
  export default _default_2;
6695
6754
  }
6696
- declare module "libs/reach/ui/common/src/reach-2/utils" {
6697
- export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
6698
- export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
6699
- initialBreakpoint: number;
6700
- breakpoints: number[];
6701
- };
6702
- export const getIsMobilePhone: () => boolean;
6755
+ declare module "libs/reach/ui/common/src/reach-2/tags/SelectableTag" {
6756
+ import { SVGProps } from 'react';
6757
+ export interface SelectableTagProps {
6758
+ className?: string;
6759
+ icon?: SVGProps<SVGElement>;
6760
+ isSelected?: boolean;
6761
+ label: string;
6762
+ onClick: () => void;
6763
+ }
6764
+ const SelectableTag: React.FC<SelectableTagProps>;
6765
+ export default SelectableTag;
6703
6766
  }
6704
6767
  declare module "libs/reach/ui/common/src/reach-2/index" {
6705
6768
  export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
@@ -6720,6 +6783,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
6720
6783
  export { default as Table } from "libs/reach/ui/common/src/reach-2/table/Table";
6721
6784
  export * from "libs/reach/ui/common/src/reach-2/table/Table";
6722
6785
  export { default as Tag } from "libs/reach/ui/common/src/reach-2/tags/Tag";
6786
+ export { default as SelectableTag } from "libs/reach/ui/common/src/reach-2/tags/SelectableTag";
6723
6787
  export { default as Typography } from "libs/reach/ui/common/src/reach-2/typography/Typography";
6724
6788
  export type { ITypographyProps } from "libs/reach/ui/common/src/reach-2/typography/Typography";
6725
6789
  export * from "libs/reach/ui/common/src/reach-2/utils";
@@ -7745,26 +7809,27 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
7745
7809
  }>;
7746
7810
  }
7747
7811
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7748
- import { FC } from 'react';
7749
7812
  import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7813
+ import { FC } from 'react';
7750
7814
  export const EventLocationInfo: FC<{
7751
- locations: EventLocation[];
7752
- itemId: string;
7753
7815
  className?: string;
7816
+ itemId: string;
7817
+ locations: EventLocation[];
7818
+ noWrap?: boolean;
7754
7819
  }>;
7755
7820
  export const EventPeopleInfo: FC<{
7756
- item: EventItem;
7821
+ className?: string;
7757
7822
  hideAnnouncer?: boolean;
7758
- showFirstContactOnly?: boolean;
7823
+ item: EventItem;
7759
7824
  labelResourceKey?: string;
7760
- className?: string;
7825
+ showFirstContactOnly?: boolean;
7761
7826
  }>;
7762
7827
  export const EventChannelsDisplay: FC<{
7763
- item: EventItem;
7764
- language: string;
7765
- className?: string;
7766
7828
  allowFilterByChannels?: boolean;
7767
7829
  channelBackgroundColor?: string;
7830
+ className?: string;
7831
+ item: EventItem;
7832
+ language: string;
7768
7833
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
7769
7834
  }>;
7770
7835
  export const RTLMetaInfoStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -7815,31 +7880,15 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7815
7880
  className?: string;
7816
7881
  }>;
7817
7882
  }
7818
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7819
- import { EventItem, EventLocation } from "libs/reach/util/common/src/index";
7820
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7821
- import { EventResponse } from "libs/reach/util/common/src/index";
7822
- export interface EventUserRegistrationContextType {
7823
- item: EventItem;
7824
- answers: PollQuestionAnswer[];
7825
- hasMissingAnswers: boolean;
7826
- isLoading: boolean;
7827
- submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7828
- reset: () => Promise<void>;
7829
- onBehalfOfUpn: string;
7830
- hasPollContext: boolean;
7831
- eventResponse: EventResponse;
7832
- setEventResponse: (response: EventResponse) => unknown;
7833
- seatsInfo: EventRegistrationSeatsInfo;
7834
- }
7835
- export interface EventLocationWithLeftSeats extends EventLocation {
7836
- seatsLeft: number;
7837
- }
7838
- export interface EventRegistrationSeatsInfo {
7839
- hasAnySeatsLeft: boolean;
7840
- locations?: EventLocationWithLeftSeats[];
7841
- }
7842
- export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7883
+ declare module "libs/reach/feature/content/src/events/eventUtils" {
7884
+ import { MessageDescriptor } from 'react-intl';
7885
+ import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7886
+ import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7887
+ export function getLocationQuestionId(item: EventItem): string;
7888
+ export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7889
+ question?: PollQuestion;
7890
+ translations?: TranslationItem[];
7891
+ };
7843
7892
  }
7844
7893
  declare module "libs/reach/feature/content/src/common/detail/events/eventUtils" {
7845
7894
  import { FeedbackItem, FeedbackItemType } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
@@ -7854,40 +7903,58 @@ declare module "libs/reach/feature/content/src/common/detail/events/eventUtils"
7854
7903
  isPastDeadline: boolean;
7855
7904
  };
7856
7905
  }
7906
+ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7907
+ import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7908
+ import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7909
+ import { EventResponse } from "libs/reach/util/common/src/index";
7910
+ export function useEventRegistrationApi(): {
7911
+ setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7912
+ getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7913
+ getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7914
+ };
7915
+ }
7857
7916
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton" {
7858
- import { FC } from 'react';
7859
7917
  import { PrimaryButton } from 'office-ui-fabric-react';
7918
+ import { FC } from 'react';
7860
7919
  export const EventRegistrationButton: FC<{
7861
- isRegistered: boolean;
7862
- eventId: string;
7863
- disabled?: boolean;
7864
7920
  className?: string;
7921
+ disabled?: boolean;
7922
+ eventId: string;
7923
+ infoMessageResourceKey?: string;
7924
+ isRegistered: boolean;
7925
+ isWaitingList: boolean;
7926
+ isWaitingListEnabled?: boolean;
7865
7927
  onClick?: () => void;
7866
7928
  showInfoMessage?: boolean;
7867
- infoMessageResourceKey?: string;
7868
7929
  }>;
7869
7930
  export const RegisterButton: import("styled-components").StyledComponent<typeof PrimaryButton, import("styled-components").DefaultTheme, {
7870
7931
  isRegistered?: boolean;
7871
7932
  }, never>;
7872
7933
  }
7873
- declare module "libs/reach/feature/content/src/events/eventUtils" {
7874
- import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7875
- import { MessageDescriptor } from 'react-intl';
7876
- import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7877
- export function getLocationQuestionId(item: EventItem): string;
7878
- export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7879
- question?: PollQuestion;
7880
- translations?: TranslationItem[];
7881
- };
7882
- }
7883
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7884
- import { FC } from 'react';
7885
- import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7886
- export const EventRegistrationLocationSeatsInfo: FC<{
7934
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7935
+ import { EventItem, EventLocation, EventResponse, PollQuestionAnswer } from "libs/reach/util/common/src/index";
7936
+ export interface EventUserRegistrationContextType {
7937
+ answers: PollQuestionAnswer[];
7938
+ eventResponse: EventResponse;
7939
+ hasMissingAnswers: boolean;
7940
+ hasPollContext: boolean;
7941
+ isLoading: boolean;
7942
+ isLoadingPollResult: boolean;
7943
+ item: EventItem;
7944
+ onBehalfOfUpn: string;
7945
+ reset: () => Promise<void>;
7946
+ seatsInfo: EventRegistrationSeatsInfo;
7947
+ setEventResponse: (response: EventResponse) => unknown;
7948
+ submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7949
+ }
7950
+ export interface EventLocationWithLeftSeats extends EventLocation {
7951
+ seatsLeft: number;
7952
+ }
7953
+ export interface EventRegistrationSeatsInfo {
7887
7954
  hasAnySeatsLeft: boolean;
7888
- locations: EventLocationWithLeftSeats[];
7889
- className?: string;
7890
- }>;
7955
+ locations?: EventLocationWithLeftSeats[];
7956
+ }
7957
+ export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7891
7958
  }
7892
7959
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationInfoDescription" {
7893
7960
  export const EventRegistrationInfoDescription: import("styled-components").StyledComponent<import("react").FC<{
@@ -7898,62 +7965,65 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7898
7965
  dir?: string;
7899
7966
  }>, import("styled-components").DefaultTheme, {}, never>;
7900
7967
  }
7901
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
7902
- import { FC } from 'react';
7903
- export const EventRegistrationRegisterStatusInfo: FC<{
7904
- isRegistered: boolean;
7905
- onBehalfOfUpn: string;
7906
- className?: string;
7907
- }>;
7908
- }
7909
7968
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationDeadlineInfo" {
7910
7969
  import { FC } from 'react';
7911
7970
  import { EventItem } from "libs/reach/util/common/src/index";
7912
7971
  export const EventRegistrationDeadlineInfo: FC<{
7913
- item: EventItem;
7914
- isRegistered: boolean;
7915
7972
  className?: string;
7973
+ isRegistered: boolean;
7974
+ item: EventItem;
7916
7975
  }>;
7917
7976
  }
7918
7977
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationFullSeriesDialog" {
7919
7978
  import { FC } from 'react';
7920
7979
  import { EventItem } from "libs/reach/util/common/src/index";
7921
7980
  export const EventUserRegistrationFullSeriesDialog: FC<{
7922
- item: EventItem;
7923
- visible: boolean;
7924
7981
  isRegistered: boolean;
7982
+ isWaitingList: boolean;
7983
+ isWaitingListEnabled?: boolean;
7984
+ item: EventItem;
7925
7985
  onClick: (doRegister: boolean) => unknown;
7926
7986
  onDismiss: () => unknown;
7987
+ visible: boolean;
7927
7988
  }>;
7928
7989
  }
7929
- declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7930
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7931
- import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7932
- import { EventResponse } from "libs/reach/util/common/src/index";
7933
- export function useEventRegistrationApi(): {
7934
- setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7935
- getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7936
- getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7937
- };
7990
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7991
+ import { FC } from 'react';
7992
+ import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7993
+ export const EventRegistrationLocationSeatsInfo: FC<{
7994
+ className?: string;
7995
+ hasAnySeatsLeft: boolean;
7996
+ isHidden: boolean;
7997
+ locations: EventLocationWithLeftSeats[];
7998
+ }>;
7999
+ }
8000
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
8001
+ import { FC } from 'react';
8002
+ export const EventRegistrationRegisterStatusInfo: FC<{
8003
+ className?: string;
8004
+ isRegistered: boolean;
8005
+ isWaitingList: boolean;
8006
+ onBehalfOfUpn: string;
8007
+ }>;
7938
8008
  }
7939
8009
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7940
8010
  import { FC } from 'react';
7941
8011
  import { EventResponse } from "libs/reach/util/common/src/index";
7942
8012
  export const EventUserRegistration: FC<{
8013
+ className?: string;
7943
8014
  disabled?: boolean;
7944
8015
  hideInfoMessage?: boolean;
7945
- onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7946
8016
  onRegistrationRedirect?: (url: string) => void;
7947
- className?: string;
8017
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7948
8018
  }>;
7949
8019
  }
7950
8020
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventCardUserRegistration" {
7951
8021
  import { FC } from 'react';
7952
8022
  import { EventItem, LanguageDirection } from "libs/reach/util/common/src/index";
7953
8023
  export const EventCardUserRegistration: FC<{
7954
- item: EventItem;
7955
- disabled?: boolean;
7956
8024
  className?: string;
8025
+ disabled?: boolean;
8026
+ item: EventItem;
7957
8027
  languageDirection?: LanguageDirection;
7958
8028
  onRegistrationRedirect?: (url: string) => void;
7959
8029
  }>;
@@ -8977,6 +9047,14 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8977
9047
  }>;
8978
9048
  export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8979
9049
  }
9050
+ declare module "libs/reach/feature/content/src/events/index" {
9051
+ export * from "libs/reach/feature/content/src/events/EventLocationLink";
9052
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
9053
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
9054
+ export * from "libs/reach/feature/content/src/events/eventUtils";
9055
+ export * from "libs/reach/feature/content/src/events/list/EventCard";
9056
+ export * from "libs/reach/feature/content/src/events/useEventsApi";
9057
+ }
8980
9058
  declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8981
9059
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8982
9060
  export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
@@ -9194,38 +9272,30 @@ declare module "libs/reach/feature/content/src/pages/index" {
9194
9272
  export * from "libs/reach/feature/content/src/pages/utils";
9195
9273
  export * from "libs/reach/feature/content/src/pages/DocumentDownloadButton";
9196
9274
  }
9197
- declare module "libs/reach/feature/content/src/events/index" {
9198
- export * from "libs/reach/feature/content/src/events/EventLocationLink";
9199
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
9200
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
9201
- export * from "libs/reach/feature/content/src/events/eventUtils";
9202
- export * from "libs/reach/feature/content/src/events/list/EventCard";
9203
- export * from "libs/reach/feature/content/src/events/useEventsApi";
9204
- }
9205
9275
  declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
9206
- import { FC, MouseEvent, ReactNode } from 'react';
9207
9276
  import { Channel, EventItem } from "libs/reach/util/common/src/index";
9277
+ import { FC, MouseEvent, ReactNode } from 'react';
9208
9278
  import { ItemTileLayoutMode } from "libs/reach/feature/content/src/common/item-tile/NewsItemTile";
9209
9279
  interface StyleDefinition {
9210
9280
  backgroundColor?: string;
9211
- noShadow?: boolean;
9212
- channelsBackgroundColor?: string;
9213
9281
  bannerContainerDefaultWidth?: number;
9282
+ channelsBackgroundColor?: string;
9283
+ noShadow?: boolean;
9214
9284
  showPlaceholderIfNoBannerInfo?: boolean;
9215
9285
  }
9216
9286
  interface Props {
9217
- item: EventItem;
9218
9287
  baseRoute: string;
9219
- layoutMode?: ItemTileLayoutMode;
9220
9288
  buttons?: ReactNode;
9221
- openTargetInNewWindow?: boolean;
9222
- onClick?: (event: MouseEvent<unknown>) => unknown;
9289
+ className?: string;
9290
+ item: EventItem;
9291
+ layoutMode?: ItemTileLayoutMode;
9223
9292
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
9224
- styleDefinition?: StyleDefinition;
9293
+ onClick?: (event: MouseEvent<unknown>) => unknown;
9294
+ onRegistrationRedirect?: (url: string) => void;
9295
+ openTargetInNewWindow?: boolean;
9225
9296
  showBanner?: boolean;
9226
9297
  showBannerAlwaysOnTheLeft?: boolean;
9227
- onRegistrationRedirect?: (url: string) => void;
9228
- className?: string;
9298
+ styleDefinition?: StyleDefinition;
9229
9299
  }
9230
9300
  export const EventItemTile: FC<Props>;
9231
9301
  }
@@ -9570,22 +9640,20 @@ declare module "libs/reach/feature/content/src/feedback/PollDisplay" {
9570
9640
  }
9571
9641
  declare module "libs/reach/feature/content/src/feedback/PollUserContextProvider" {
9572
9642
  import { FC } from 'react';
9573
- import { PublishableItem } from "libs/reach/util/common/src/index";
9574
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9575
- import { PollQuestion, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
9643
+ import { ItemResourceTypes, PollQuestion, PollQuestionAnswer, PollResult, PublishableItem } from "libs/reach/util/common/src/index";
9576
9644
  import { FeedbackItem } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
9577
9645
  import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
9578
9646
  export const PollUserContextProvider: FC<{
9579
- item: PublishableItem;
9580
- onBehalfOfUpn?: string;
9581
- resourceType: ItemResourceTypes;
9582
- language: string;
9583
9647
  getAdditionalQuestions?: (pollResult?: PollResult) => {
9584
9648
  questions: PollQuestion[];
9585
9649
  translations: TranslationItem[];
9586
9650
  };
9587
9651
  getAdditionalUserAnswers?: (records: FeedbackItem[]) => PollQuestionAnswer[];
9588
9652
  getPollResults: (itemId: string) => Promise<PollResult>;
9653
+ item: PublishableItem;
9654
+ language: string;
9655
+ onBehalfOfUpn?: string;
9656
+ resourceType: ItemResourceTypes;
9589
9657
  showResult?: boolean;
9590
9658
  }>;
9591
9659
  }
@@ -9622,9 +9690,9 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
9622
9690
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewUserRegistration" {
9623
9691
  import { FC } from 'react';
9624
9692
  export const EventDetailViewUserRegistration: FC<{
9693
+ className?: string;
9625
9694
  hideInfoMessage?: boolean;
9626
9695
  isReadOnly?: boolean;
9627
- className?: string;
9628
9696
  }>;
9629
9697
  }
9630
9698
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterSomeoneElseDialog" {
@@ -10549,10 +10617,16 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
10549
10617
  import { Channel } from "libs/reach/util/common/src/index";
10550
10618
  import { AfterPublishingDateFilterDefinition, BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, FilterWithLogicalOperator, ItemTypeFilterDefinition, ItemTypeFilterFlag, KeywordsFilterDefinition, OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/index";
10551
10619
  export enum StreamEventResponse {
10552
- NotSet = "NOTSET",
10620
+ NotSet = "NOT_SET",
10553
10621
  Registered = "REGISTERED",
10622
+ WaitingList = "WAITING_LIST",
10554
10623
  Declined = "DECLINED"
10555
10624
  }
10625
+ export enum StreamSeriesRegistrationMode {
10626
+ None = "NONE",
10627
+ FullSeries = "FULL_SERIES",
10628
+ PerInstance = "PER_INSTANCE"
10629
+ }
10556
10630
  export interface StreamFilterDefinition extends BeforePublishingDateFilterDefinition, AfterPublishingDateFilterDefinition, OwnerFilterDefinition, ChannelsFilterDefinition, KeywordsFilterDefinition, ItemTypeFilterDefinition {
10557
10631
  }
10558
10632
  export function useStreamItemsQuery<TItem extends StreamItem = StreamItem>(query: DocumentNode, searchText?: string, defaultPageSize?: number, doNotLoadOnEmpty?: boolean): {
@@ -10612,7 +10686,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
10612
10686
  export * from "libs/reach/feature/content/src/posts/utils";
10613
10687
  }
10614
10688
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
10615
- 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";
10689
+ 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";
10616
10690
  import { Post } from "libs/reach/feature/content/src/posts/index";
10617
10691
  import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
10618
10692
  export enum StreamItemTypes {
@@ -10938,6 +11012,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10938
11012
  };
10939
11013
  }) | (TItem & {
10940
11014
  userResponse: EventResponse;
11015
+ registrationSettings: {
11016
+ seriesMode: SeriesRegistrationMode;
11017
+ enableWaitingList?: boolean;
11018
+ enabled?: boolean;
11019
+ showParticipantsToEverybody?: boolean;
11020
+ deadline?: string;
11021
+ };
10941
11022
  cancelInformation: {
10942
11023
  reasons: {
10943
11024
  [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.5.0-preview.1033",
7
+ "version": "0.5.0-preview.1035",
8
8
  "dependencies": {}
9
9
  }