@livetiles/reach-components-react 0.3.91 → 0.3.95

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.d.ts CHANGED
@@ -266,6 +266,10 @@ interface SubscriptionSummary extends BaseSubscription {
266
266
  userPropertyDefinitions: UserPropertyDefinition[];
267
267
  customDomain?: string;
268
268
  allowSelfRegistration?: boolean;
269
+ brandFolderConfig?: BrandFolderConfig;
270
+ }
271
+ interface BrandFolderConfig {
272
+ sections?: string[];
269
273
  }
270
274
  interface Theme {
271
275
  name: string;
@@ -530,6 +534,105 @@ interface ChoiceTranslations {
530
534
 
531
535
  declare function useCurrentUser(): CurrentUser;
532
536
 
537
+ declare enum EventResponse {
538
+ NotSet = 0,
539
+ Registered = 1,
540
+ Declined = 2
541
+ }
542
+ interface EventItem extends SchedulableItem {
543
+ startDate?: string;
544
+ endDate?: string;
545
+ timeZone?: string;
546
+ contacts?: Account[];
547
+ registrationSettings?: EventRegistrationSettings;
548
+ userResponse?: EventResponse;
549
+ cancelInformation?: EventCancelInformation;
550
+ locations?: EventLocation[];
551
+ hasNewComments?: boolean;
552
+ isLiked?: boolean;
553
+ recurrenceSettings?: EventRecurrenceSettings;
554
+ recurrenceSeriesId?: string;
555
+ isSeriesMaster?: string;
556
+ isVirtual?: boolean;
557
+ }
558
+ interface EventRegistrationSettings {
559
+ enabled?: boolean;
560
+ showParticipantsToEverybody?: boolean;
561
+ deadline?: string;
562
+ seriesMode?: SeriesRegistrationMode;
563
+ }
564
+ declare enum SeriesRegistrationMode {
565
+ None = 0,
566
+ FullSeries = 1,
567
+ PerInstance = 2
568
+ }
569
+ interface EventCancelInformation {
570
+ isCancelled?: boolean;
571
+ modifiedOn?: string;
572
+ modifiedBy?: Account;
573
+ reasons?: EventCancelReasons;
574
+ }
575
+ interface EventCancelReasons {
576
+ [language: string]: string;
577
+ }
578
+ interface EventLocation {
579
+ locationId: string;
580
+ name: string;
581
+ locationOnMap?: string;
582
+ url?: string;
583
+ maxNumberOfSeats?: number;
584
+ readOnly?: boolean;
585
+ }
586
+ interface EventRecurrenceSettings {
587
+ frequency: RecurrenceFrequency;
588
+ interval: number;
589
+ weekDays: WeekDay;
590
+ monthlyOccurrence: MonthlyOccurrence;
591
+ yearlyOccurrence: MonthNumber;
592
+ dayOfMonth: number;
593
+ endDate?: string;
594
+ }
595
+ declare enum RecurrenceFrequency {
596
+ NotSet = 0,
597
+ Daily = 1,
598
+ Weekly = 2,
599
+ Monthly = 3,
600
+ Yearly = 4
601
+ }
602
+ declare enum WeekDay {
603
+ None = 0,
604
+ Monday = 1,
605
+ Tuesday = 2,
606
+ Wednesday = 4,
607
+ Thursday = 8,
608
+ Friday = 16,
609
+ Saturday = 32,
610
+ Sunday = 64
611
+ }
612
+ declare enum MonthlyOccurrence {
613
+ Unknown = 0,
614
+ First = 1,
615
+ Second = 2,
616
+ Third = 3,
617
+ Fourth = 4,
618
+ Last = 5
619
+ }
620
+ declare enum MonthNumber {
621
+ None = 0,
622
+ January = 1,
623
+ February = 2,
624
+ March = 3,
625
+ April = 4,
626
+ May = 5,
627
+ June = 6,
628
+ July = 7,
629
+ August = 8,
630
+ September = 9,
631
+ October = 10,
632
+ November = 11,
633
+ December = 12
634
+ }
635
+
533
636
  interface ToolbarProps {
534
637
  leftSide?: ReactNode;
535
638
  hideLeftSide?: boolean;
@@ -594,6 +697,22 @@ interface ToolbarCloseButtonProps {
594
697
  }
595
698
  declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
596
699
 
700
+ declare enum EventView {
701
+ UpcomingEvents = "upcoming",
702
+ MyBookedEvents = "booked",
703
+ PastEvents = "past"
704
+ }
705
+ interface ToolbarEventViewSelectorProps {
706
+ value?: EventView;
707
+ onChange?: (view: EventView) => void;
708
+ viewOptions?: {
709
+ hideUpcomingEventsView?: boolean;
710
+ hideMyBookedEventsView?: boolean;
711
+ hidePastEventsView?: boolean;
712
+ };
713
+ }
714
+ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
715
+
597
716
  interface Props extends IPersonaProps {
598
717
  upn: string;
599
718
  tenantId?: string;
@@ -663,6 +782,20 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
663
782
  unreadOnly?: boolean;
664
783
  }
665
784
 
785
+ interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
786
+ startsAfter?: string;
787
+ startsBefore?: string;
788
+ }
789
+
790
+ interface EventContactsFilterDefinition extends IndexableFilterDefinition {
791
+ contacts?: string[];
792
+ }
793
+
794
+ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
795
+ excludePastEvents?: boolean;
796
+ pastEventsOnly?: boolean;
797
+ }
798
+
666
799
  interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
667
800
  channels?: string | FilterWithLogicalOperator;
668
801
  keywords?: string | FilterWithLogicalOperator;
@@ -691,6 +824,13 @@ interface ManageChannelsProps {
691
824
  }
692
825
  declare const ManageChannels: FC<ManageChannelsProps>;
693
826
 
827
+ interface ChannelSelectorWrapperProps {
828
+ onChannelsChanged: (channels: Channel[]) => void;
829
+ defaultSelectedChannels?: string[];
830
+ className?: string;
831
+ }
832
+ declare const ChannelSelectorWrapper: FC<ChannelSelectorWrapperProps>;
833
+
694
834
  interface NewsGridProps {
695
835
  filter?: LibNewsFilterDefinition;
696
836
  searchText?: string;
@@ -704,6 +844,33 @@ interface NewsGridProps {
704
844
  }
705
845
  declare const NewsGrid: FC<NewsGridProps>;
706
846
 
847
+ interface EventGridProps {
848
+ view?: EventView;
849
+ filter?: EventFilterDefinition;
850
+ searchText?: string;
851
+ hidePagination?: boolean;
852
+ columnCount?: number;
853
+ rowCount?: number;
854
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
855
+ onChannelClick?: (channel: string) => unknown;
856
+ className?: string;
857
+ }
858
+ declare const EventsGrid: FC<EventGridProps>;
859
+
860
+ interface EventsListProps {
861
+ view?: EventView;
862
+ filter?: EventFilterDefinition;
863
+ searchText?: string;
864
+ itemLayoutMode?: ItemLayoutMode;
865
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
866
+ onChannelClick?: (channel: string) => unknown;
867
+ hidePlaceholderIfNoBanner?: boolean;
868
+ hidePagination?: boolean;
869
+ pageSize?: number;
870
+ className?: string;
871
+ }
872
+ declare const EventsList: FC<EventsListProps>;
873
+
707
874
  interface NewsHeroFilterProps {
708
875
  channels?: string | FilterWithLogicalOperator;
709
876
  keywords?: string | FilterWithLogicalOperator;
@@ -728,6 +895,15 @@ interface NewsEditorDashboardProps {
728
895
  }
729
896
  declare const NewsEditorDashboard: FC<NewsEditorDashboardProps>;
730
897
 
898
+ interface EventsEditorDashboardProps {
899
+ groupId?: string;
900
+ className?: string;
901
+ onItemClick?: (item: EventItem) => unknown;
902
+ pageSize?: number;
903
+ hidePagination?: boolean;
904
+ }
905
+ declare const EventsEditorDashboard: FC<EventsEditorDashboardProps>;
906
+
731
907
  declare const NewsItemContextProvider: FC<{
732
908
  itemId: string;
733
909
  }>;
@@ -809,4 +985,4 @@ declare const ToolbarFilterSearch: styled_components.StyledComponent<FC<{
809
985
  className?: string;
810
986
  }>, any, {}, never>;
811
987
 
812
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, EventDetail, EventDetailProps, FilterProps, FilterSearch, ItemLayoutMode, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, useCurrentUser };
988
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, EventDetail, EventDetailProps, EventGridProps, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, ItemLayoutMode, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllItemsAsReadButtonProps, ToolbarMarkAllNewsAsReadButton, ToolbarNewsLanguageSelector, ToolbarProps, ToolbarSearchProps, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, useCurrentUser };
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Q as AuthorFilter, O as AuthorToolbarFilter, A as Avatar, D as ChannelFilter, F as ChannelToolbarFilter, J as ClearAllFiltersButton, E as EventDetail, S as FilterSearch, I as ItemLayoutMode, K as KeywordsFilter, L as KeywordsToolbarFilter, M as ManageChannels, N as NewsDetail, x as NewsDetailPreview, l as NewsEditorDashboard, i as NewsGrid, k as NewsHero, t as NewsItemContextProvider, y as NewsItemPreviewContextProvider, h as NewsList, g as PageDetail, H as PublishingDateFilter, G as PublishingDateToolbarFilter, R as ReachContextProvider, n as Toolbar, p as ToolbarChannelSelector, s as ToolbarCloseButton, B as ToolbarFilterModal, C as ToolbarFilterModalButton, z as ToolbarFilterPanel, W as ToolbarFilterSearch, o as ToolbarIconButton, w as ToolbarManageNewsItemButton, q as ToolbarMarkAllEventsAsReadButton, r as ToolbarMarkAllNewsAsReadButton, v as ToolbarNewsLanguageSelector, U as UserDetails, V as VerticalFilterPanel, j as useCurrentUser } from './index.esm2.js';
1
+ export { X as AuthorFilter, W as AuthorToolbarFilter, A as Avatar, H as ChannelFilter, a1 as ChannelSelector, J as ChannelToolbarFilter, O as ClearAllFiltersButton, E as EventDetail, a0 as EventView, p as EventsEditorDashboard, j as EventsGrid, k as EventsList, Y as FilterSearch, I as ItemLayoutMode, Q as KeywordsFilter, S as KeywordsToolbarFilter, M as ManageChannels, N as NewsDetail, B as NewsDetailPreview, o as NewsEditorDashboard, i as NewsGrid, n as NewsHero, x as NewsItemContextProvider, C as NewsItemPreviewContextProvider, h as NewsList, g as PageDetail, L as PublishingDateFilter, K as PublishingDateToolbarFilter, R as ReachContextProvider, q as Toolbar, s as ToolbarChannelSelector, w as ToolbarCloseButton, $ as ToolbarEventViewSelector, F as ToolbarFilterModal, G as ToolbarFilterModalButton, D as ToolbarFilterPanel, Z as ToolbarFilterSearch, r as ToolbarIconButton, z as ToolbarManageNewsItemButton, t as ToolbarMarkAllEventsAsReadButton, v as ToolbarMarkAllNewsAsReadButton, y as ToolbarNewsLanguageSelector, U as UserDetails, V as VerticalFilterPanel, l as useCurrentUser } from './index.esm2.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'events';
4
4
  import 'react';