@livetiles/reach-components-react 0.3.91 → 0.3.92

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.
@@ -0,0 +1,8 @@
1
+ import { PublishableItem } from '@livetiles/reach/util/common';
2
+ interface CompactLayoutListProps<TItem extends PublishableItem = PublishableItem> {
3
+ items: TItem[];
4
+ onRenderCard: (item: TItem) => unknown;
5
+ className?: string;
6
+ }
7
+ export declare const CompactLayoutList: <TItem extends PublishableItem>({ items, onRenderCard, className, }: CompactLayoutListProps<TItem>) => JSX.Element;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { EventItem } from '@livetiles/reach/util/common';
3
+ export interface EventGridCardProps {
4
+ item: EventItem;
5
+ baseRoute?: string;
6
+ openTargetInNewWindow?: boolean;
7
+ onCardClick?: (event: React.MouseEvent<unknown>) => unknown;
8
+ onChannelClick?: (channel: string) => unknown;
9
+ className?: string;
10
+ }
11
+ export declare const EventGridCard: FC<EventGridCardProps>;
12
+ export declare const Host: import("styled-components").StyledComponent<"div", any, {
13
+ showHighlight?: boolean;
14
+ }, never>;
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { EventItem } from '@livetiles/reach/util/common';
3
+ export interface EventsEditorDashboardProps {
4
+ groupId?: string;
5
+ className?: string;
6
+ onItemClick?: (item: EventItem) => unknown;
7
+ pageSize?: number;
8
+ hidePagination?: boolean;
9
+ }
10
+ export declare const EventsEditorDashboard: FC<EventsEditorDashboardProps>;
11
+ export declare const EventDropdown: FC<{
12
+ onSelect: (isPast: boolean) => void;
13
+ }>;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ import { EventItem } from '@livetiles/reach/util/common';
3
+ import { EventFilterDefinition } from '@livetiles/reach/feature/content';
4
+ import { EventView } from '@livetiles/reach/ui/common';
5
+ export interface EventGridProps {
6
+ view?: EventView;
7
+ filter?: EventFilterDefinition;
8
+ searchText?: string;
9
+ hidePagination?: boolean;
10
+ columnCount?: number;
11
+ rowCount?: number;
12
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
13
+ onChannelClick?: (channel: string) => unknown;
14
+ className?: string;
15
+ }
16
+ export declare const EventsGrid: FC<EventGridProps>;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { EventItem } from '@livetiles/reach/util/common';
3
+ import { EventFilterDefinition } from '@livetiles/reach/feature/content';
4
+ import { ItemLayoutMode } from './NewsList';
5
+ import { EventView } from '@livetiles/reach/ui/common';
6
+ export interface EventsListProps {
7
+ view?: EventView;
8
+ filter?: EventFilterDefinition;
9
+ searchText?: string;
10
+ itemLayoutMode?: ItemLayoutMode;
11
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
12
+ onChannelClick?: (channel: string) => unknown;
13
+ hidePlaceholderIfNoBanner?: boolean;
14
+ hidePagination?: boolean;
15
+ pageSize?: number;
16
+ className?: string;
17
+ }
18
+ export declare const EventsList: FC<EventsListProps>;
@@ -0,0 +1,20 @@
1
+ import { FC, ReactNode, MouseEvent } from 'react';
2
+ import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common';
3
+ export interface PublishableItemCompactCardProps {
4
+ item: PublishableItem;
5
+ itemResourceType: ItemResourceTypes;
6
+ highlight: boolean;
7
+ date: ReactNode;
8
+ locations?: ReactNode;
9
+ icon?: {
10
+ name: string;
11
+ backgroundColor: string;
12
+ color: string;
13
+ tooltipText: string;
14
+ };
15
+ onCardClick?: (e: MouseEvent<unknown>) => unknown;
16
+ onTitleClick?: (e: MouseEvent<unknown>) => unknown;
17
+ className?: string;
18
+ }
19
+ export declare const PublishableItemCompactCard: FC<PublishableItemCompactCardProps>;
20
+ export declare const Host: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common';
3
+ import { PublishableItemFilterDefinition } from '@livetiles/reach/feature/content';
4
+ interface LibraryProps<TItem extends PublishableItem = PublishableItem> {
5
+ pageSize: number;
6
+ itemResourceType: ItemResourceTypes;
7
+ onItemClick: (item: TItem) => unknown;
8
+ onRenderContent: (item: TItem, title: string) => unknown;
9
+ initialGroupId?: string;
10
+ hidePagination?: boolean;
11
+ emptyMessageResources: string[];
12
+ emptyListIcon: string;
13
+ additionalFilterComponents?: ReactNode;
14
+ additionalFilters?: PublishableItemFilterDefinition;
15
+ className?: string;
16
+ }
17
+ export declare const PublishableItemEditorDashboard: <TItem extends PublishableItem>({ initialGroupId, itemResourceType, onItemClick, onRenderContent, pageSize, hidePagination, emptyMessageResources, emptyListIcon, additionalFilterComponents, additionalFilters: incomingFilters, className, }: LibraryProps<TItem>) => JSX.Element;
18
+ export {};
@@ -0,0 +1,15 @@
1
+ import { PublishableItem } from '@livetiles/reach/util/common';
2
+ import { ItemLoader } from '@livetiles/reach/ui/common';
3
+ interface LibraryProps<TItem extends PublishableItem = PublishableItem, TTokenType = unknown> {
4
+ onRenderCard: (item: TItem) => unknown;
5
+ dataLoader: ItemLoader<TItem, TTokenType>;
6
+ minColumnWidth: number;
7
+ emptyMessageResources: string[];
8
+ emptyListIcon: string;
9
+ hidePagination?: boolean;
10
+ columnCount?: number;
11
+ rowCount?: number;
12
+ className?: string;
13
+ }
14
+ export declare const PublishableItemGrid: <TItem extends PublishableItem, TTokenType = unknown>({ onRenderCard, dataLoader, minColumnWidth, emptyMessageResources, emptyListIcon, hidePagination, columnCount, rowCount, className, }: LibraryProps<TItem, TTokenType>) => JSX.Element;
15
+ export {};
@@ -0,0 +1,12 @@
1
+ import { PublishableItem } from '@livetiles/reach/util/common';
2
+ import { ItemLoader } from '@livetiles/reach/ui/common';
3
+ interface LibraryProps<TItem extends PublishableItem = PublishableItem, TTokenType = unknown> {
4
+ onRenderList: (items: TItem[]) => unknown;
5
+ dataLoader: ItemLoader<TItem, TTokenType>;
6
+ emptyMessageResources: string[];
7
+ emptyListIcon: string;
8
+ hidePagination?: boolean;
9
+ pageSize?: number;
10
+ }
11
+ export declare const PublishableItemList: <TItem extends PublishableItem, TTokenType = unknown>({ onRenderList, dataLoader, emptyMessageResources, emptyListIcon, hidePagination, pageSize, }: LibraryProps<TItem, TTokenType>) => JSX.Element;
12
+ export {};
@@ -1,6 +1,16 @@
1
1
  import { FC } from 'react';
2
+ import { IDropdownOption } from 'office-ui-fabric-react';
2
3
  export declare const GroupsDropdown: FC<{
3
4
  onGroupSelect: (groupId?: string) => void;
4
5
  initialGroupId?: string;
5
6
  className?: string;
6
7
  }>;
8
+ export declare const EditorDashboardDropdown: FC<{
9
+ icon: string;
10
+ options: IDropdownOption[];
11
+ onSelect: (optionId?: string) => void;
12
+ selectedKey?: string;
13
+ initialSelectedKey?: string;
14
+ ariaLabel?: string;
15
+ className?: string;
16
+ }>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { ItemResourceTypes } from '@livetiles/reach/util/common';
3
+ export declare const NewPublishableItemButton: FC<{
4
+ itemResourceType: ItemResourceTypes;
5
+ groupId?: string;
6
+ className?: string;
7
+ }>;
package/common/utils.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { NewsItem } from '@livetiles/reach/util/common';
2
- import { NewsFilterDefinition } from '@livetiles/reach/feature/content';
1
+ import { ItemResourceTypes, PublishableItem } from '@livetiles/reach/util/common';
2
+ import { EventView } from '@livetiles/reach/ui/common';
3
+ import { EventFilterDefinition, NewsFilterDefinition, PublishableItemFilterDefinition } from '@livetiles/reach/feature/content';
3
4
  import { LibNewsFilterDefinition } from './filter/LibNewsFilterDefinition';
4
- export declare function useNewsItemClickHandler(): (e: React.MouseEvent<unknown>, item: NewsItem, shouldHandleExternalContent: boolean, onItemClick?: (item: NewsItem, itemUrl?: string) => unknown, newTab?: boolean) => void;
5
+ export declare function useItemClickHandler<TItem extends PublishableItem>(): (e: React.MouseEvent<unknown>, item: TItem, shouldHandleExternalContent: boolean, onItemClick?: (item: TItem, itemUrl?: string) => unknown, newTab?: boolean) => void;
5
6
  export declare function useNewsLoaderWithFiltersAndPagination(pageSize: number, filter?: LibNewsFilterDefinition, searchText?: string): {
6
7
  items: any[];
7
8
  isInitialLoading: boolean;
@@ -14,7 +15,8 @@ export declare function useNewsLoaderWithFiltersAndPagination(pageSize: number,
14
15
  isLastPage: boolean;
15
16
  isEmpty: boolean;
16
17
  };
17
- export declare function useEditorNewsLoaderWithFiltersAndPagination(pageSize: number, filter?: NewsFilterDefinition): {
18
+ export declare function getNewsFilterDefinition(filter?: LibNewsFilterDefinition): NewsFilterDefinition;
19
+ export declare function useEventsLoaderWithFiltersAndPagination(pageSize: number, filter?: EventFilterDefinition, searchText?: string): {
18
20
  items: any[];
19
21
  isInitialLoading: boolean;
20
22
  isLoadingNextPage: boolean;
@@ -26,3 +28,16 @@ export declare function useEditorNewsLoaderWithFiltersAndPagination(pageSize: nu
26
28
  isLastPage: boolean;
27
29
  isEmpty: boolean;
28
30
  };
31
+ export declare function useEditorItemsWithFiltersAndPagination<TItem extends PublishableItem = PublishableItem>(pageSize: number, type: ItemResourceTypes, filter?: PublishableItemFilterDefinition): {
32
+ items: any[];
33
+ isInitialLoading: boolean;
34
+ isLoadingNextPage: boolean;
35
+ error: any;
36
+ getFirstPage: () => void;
37
+ getPrevPage: () => void;
38
+ getNextPage: () => Promise<void>;
39
+ isFirstPage: boolean;
40
+ isLastPage: boolean;
41
+ isEmpty: boolean;
42
+ };
43
+ export declare function getEventsFilterByView(filter: EventFilterDefinition, view: EventView): EventFilterDefinition;
@@ -1,7 +1,6 @@
1
1
  import './de.esm.js';
2
2
 
3
3
  var de = {
4
- "Channels.callout.title": "Ausgewählte Kanäle",
5
4
  "Generic.Ok": "Ok",
6
5
  "Generic.Save": "Speichern",
7
6
  "Generic.Cancel": "Abbrechen",
@@ -1139,6 +1138,7 @@ var de = {
1139
1138
  "Channels.TogglePinnedOn": "Zur Navigation hinzufügen",
1140
1139
  "Channels.TogglePinnedOff": "Aus Navigation entfernen",
1141
1140
  "Channels.Placeholder": "Kanäle auswählen",
1141
+ "Channels.callout.title": "Ausgewählte Kanäle",
1142
1142
  "Channels.All": "Alle Kanäle",
1143
1143
  "WebHooks.title": "Web Hooks",
1144
1144
  "WebHooks.infoMsg1": "Hier können Sie URLs hinzufügen, welche für verschiedene Ereignisse von LiveTiles Reach aufgerufen werden.",
@@ -703,6 +703,9 @@ var en = {
703
703
  "EditorList.dashboard.reviseItems.news": "{count, plural, one {1 article} other {{count} articles}} to revise",
704
704
  "EditorList.dashboard.finishDrafts.news": "{count, plural, one {1 article} other {{count} articles}} to finish",
705
705
  "EditorList.dashboard.approveItems.news": "{count, plural, one {1 article} other {{count} articles}} to approve",
706
+ "EditorList.dashboard.reviseItems.events": "{count, plural, one {1 event} other {{count} events}} to revise",
707
+ "EditorList.dashboard.finishDrafts.events": "{count, plural, one {1 event} other {{count} events}} to finish",
708
+ "EditorList.dashboard.approveItems.events": "{count, plural, one {1 event} other {{count} events}} to approve",
706
709
  "EditorList.noItems1": "This is the news management view.",
707
710
  "EditorList.noItems2": "It shows a list of all articles, but at the moment there are none.",
708
711
  "EditorList.noItems3": "You can create one by clicking on the \"New Article\" button.",
@@ -1731,6 +1734,7 @@ var en = {
1731
1734
  "Event.editor.recurrence.editEntireSeries": "Edit the entire series",
1732
1735
  "Event.editor.recurrence.editOnlyThisEvent": "Edit only this event",
1733
1736
  "Events.contactsLabel": "{count, plural, one {Event contact} other {Event contacts}}",
1737
+ "Events.contactLabel": "{count, plural, one {Contact} other {Contacts}}",
1734
1738
  "Events.locationsLabel": "{count, plural, one {Location} other {Locations}}",
1735
1739
  "Events.authorLabel": "Announcement author",
1736
1740
  "Events.registration.sectionLabel": "Event registration",
@@ -1757,6 +1761,8 @@ var en = {
1757
1761
  "Events.editor.channelSettings.title": "Event channels",
1758
1762
  "Events.editor.missingChannels": "An event must have a least one channel selected",
1759
1763
  "Events.cancel.cancelled": "Event cancelled",
1764
+ "Events.cancel.cancelledIndicator": "Cancelled:",
1765
+ "Events.booked.iconTooltip": "You are registered for this event.",
1760
1766
  "Events.registration.deadline.title": "Registration {isPast, select, true {ended} false {ends}} {deadlineRelative}",
1761
1767
  "Events.registration.deadline.placeholder": "No deadline set, click here to specify one",
1762
1768
  "Events.registration.registerButtonCaption": "Register",
@@ -1769,6 +1775,7 @@ var en = {
1769
1775
  "Events.registration.onBehalfOfRegistrationSuccess.hiddenMail": "You successfully registered a user for the event",
1770
1776
  "Events.registration.onBehalfOfDeregistrationSuccess": "You successfully deregistered {mail} from the event",
1771
1777
  "Events.registration.exportResultsAsCsv": "Download responses as CSV file",
1778
+ "Events.registration.notRequired": "No registration required",
1772
1779
  "Events.registration.locations.questionTitle": "Which location will you attend?",
1773
1780
  "Events.registration.locations.onBehalfOfQuestionTitle": "Which location will the user attend?",
1774
1781
  "Events.registration.locations.leftSeats": "{available, plural, =0 {<b>0 seats</b>} one {<b>1 seat</b>} other {<b>{available} seats</b>}} available (total {total})",
@@ -1960,6 +1967,7 @@ var en = {
1960
1967
  "AriaLabel.editor.insertQuote.customAuthor": "Custom author",
1961
1968
  "AriaLabel.editor.externalUrl.input": "URL",
1962
1969
  "AriaLabel.editor.groupSelector": "Groups",
1970
+ "AriaLabel.editor.eventViewSelector": "Event views",
1963
1971
  "AriaLabel.managePagesEditor.title": "Title",
1964
1972
  "AriaLabel.managePagesEditor.toggleSelection": "Toggle selection",
1965
1973
  "AriaLabel.filter.filterByChannel": "Filter by channel",
@@ -1,7 +1,6 @@
1
1
  import './es.esm.js';
2
2
 
3
3
  var es = {
4
- "Channels.callout.title": "Selected Channels",
5
4
  "Generic.Ok": "Ok",
6
5
  "Generic.Save": "Guardar",
7
6
  "Generic.Cancel": "Cancelar",
@@ -1139,6 +1138,7 @@ var es = {
1139
1138
  "Channels.TogglePinnedOn": "Agregar al menú",
1140
1139
  "Channels.TogglePinnedOff": "Quitar del menú",
1141
1140
  "Channels.Placeholder": "Seleccionar canales",
1141
+ "Channels.callout.title": "Selected Channels",
1142
1142
  "Channels.All": "Todos los canales",
1143
1143
  "WebHooks.title": "Web Hooks",
1144
1144
  "WebHooks.infoMsg1": "Aquí puede agregar URL a las que se llamará en LiveTiles Reach en función de los eventos suscritos.",
@@ -1,7 +1,6 @@
1
1
  import './fr.esm.js';
2
2
 
3
3
  var fr = {
4
- "Channels.callout.title": "Selected Channels",
5
4
  "Generic.Ok": "Ok",
6
5
  "Generic.Save": "Sauvegarder",
7
6
  "Generic.Cancel": "Annuler",
@@ -1139,6 +1138,7 @@ var fr = {
1139
1138
  "Channels.TogglePinnedOn": "Add to menu",
1140
1139
  "Channels.TogglePinnedOff": "Remove from menu",
1141
1140
  "Channels.Placeholder": "Sélectionner les canaux",
1141
+ "Channels.callout.title": "Selected Channels",
1142
1142
  "Channels.All": "All Channels",
1143
1143
  "WebHooks.title": "Web Hooks",
1144
1144
  "WebHooks.infoMsg1": "Ici, vous pouvez ajouter des URL qui seront appelées dans LiveTiles Reach en fonction des événements souscrits.",
package/index.d.ts CHANGED
@@ -530,6 +530,105 @@ interface ChoiceTranslations {
530
530
 
531
531
  declare function useCurrentUser(): CurrentUser;
532
532
 
533
+ declare enum EventResponse {
534
+ NotSet = 0,
535
+ Registered = 1,
536
+ Declined = 2
537
+ }
538
+ interface EventItem extends SchedulableItem {
539
+ startDate?: string;
540
+ endDate?: string;
541
+ timeZone?: string;
542
+ contacts?: Account[];
543
+ registrationSettings?: EventRegistrationSettings;
544
+ userResponse?: EventResponse;
545
+ cancelInformation?: EventCancelInformation;
546
+ locations?: EventLocation[];
547
+ hasNewComments?: boolean;
548
+ isLiked?: boolean;
549
+ recurrenceSettings?: EventRecurrenceSettings;
550
+ recurrenceSeriesId?: string;
551
+ isSeriesMaster?: string;
552
+ isVirtual?: boolean;
553
+ }
554
+ interface EventRegistrationSettings {
555
+ enabled?: boolean;
556
+ showParticipantsToEverybody?: boolean;
557
+ deadline?: string;
558
+ seriesMode?: SeriesRegistrationMode;
559
+ }
560
+ declare enum SeriesRegistrationMode {
561
+ None = 0,
562
+ FullSeries = 1,
563
+ PerInstance = 2
564
+ }
565
+ interface EventCancelInformation {
566
+ isCancelled?: boolean;
567
+ modifiedOn?: string;
568
+ modifiedBy?: Account;
569
+ reasons?: EventCancelReasons;
570
+ }
571
+ interface EventCancelReasons {
572
+ [language: string]: string;
573
+ }
574
+ interface EventLocation {
575
+ locationId: string;
576
+ name: string;
577
+ locationOnMap?: string;
578
+ url?: string;
579
+ maxNumberOfSeats?: number;
580
+ readOnly?: boolean;
581
+ }
582
+ interface EventRecurrenceSettings {
583
+ frequency: RecurrenceFrequency;
584
+ interval: number;
585
+ weekDays: WeekDay;
586
+ monthlyOccurrence: MonthlyOccurrence;
587
+ yearlyOccurrence: MonthNumber;
588
+ dayOfMonth: number;
589
+ endDate?: string;
590
+ }
591
+ declare enum RecurrenceFrequency {
592
+ NotSet = 0,
593
+ Daily = 1,
594
+ Weekly = 2,
595
+ Monthly = 3,
596
+ Yearly = 4
597
+ }
598
+ declare enum WeekDay {
599
+ None = 0,
600
+ Monday = 1,
601
+ Tuesday = 2,
602
+ Wednesday = 4,
603
+ Thursday = 8,
604
+ Friday = 16,
605
+ Saturday = 32,
606
+ Sunday = 64
607
+ }
608
+ declare enum MonthlyOccurrence {
609
+ Unknown = 0,
610
+ First = 1,
611
+ Second = 2,
612
+ Third = 3,
613
+ Fourth = 4,
614
+ Last = 5
615
+ }
616
+ declare enum MonthNumber {
617
+ None = 0,
618
+ January = 1,
619
+ February = 2,
620
+ March = 3,
621
+ April = 4,
622
+ May = 5,
623
+ June = 6,
624
+ July = 7,
625
+ August = 8,
626
+ September = 9,
627
+ October = 10,
628
+ November = 11,
629
+ December = 12
630
+ }
631
+
533
632
  interface ToolbarProps {
534
633
  leftSide?: ReactNode;
535
634
  hideLeftSide?: boolean;
@@ -594,6 +693,22 @@ interface ToolbarCloseButtonProps {
594
693
  }
595
694
  declare const ToolbarCloseButton: FC<ToolbarCloseButtonProps>;
596
695
 
696
+ declare enum EventView {
697
+ UpcomingEvents = "upcoming",
698
+ MyBookedEvents = "booked",
699
+ PastEvents = "past"
700
+ }
701
+ interface ToolbarEventViewSelectorProps {
702
+ value?: EventView;
703
+ onChange?: (view: EventView) => void;
704
+ viewOptions?: {
705
+ hideUpcomingEventsView?: boolean;
706
+ hideMyBookedEventsView?: boolean;
707
+ hidePastEventsView?: boolean;
708
+ };
709
+ }
710
+ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
711
+
597
712
  interface Props extends IPersonaProps {
598
713
  upn: string;
599
714
  tenantId?: string;
@@ -663,6 +778,20 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
663
778
  unreadOnly?: boolean;
664
779
  }
665
780
 
781
+ interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
782
+ startsAfter?: string;
783
+ startsBefore?: string;
784
+ }
785
+
786
+ interface EventContactsFilterDefinition extends IndexableFilterDefinition {
787
+ contacts?: string[];
788
+ }
789
+
790
+ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
791
+ excludePastEvents?: boolean;
792
+ pastEventsOnly?: boolean;
793
+ }
794
+
666
795
  interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
667
796
  channels?: string | FilterWithLogicalOperator;
668
797
  keywords?: string | FilterWithLogicalOperator;
@@ -704,6 +833,33 @@ interface NewsGridProps {
704
833
  }
705
834
  declare const NewsGrid: FC<NewsGridProps>;
706
835
 
836
+ interface EventGridProps {
837
+ view?: EventView;
838
+ filter?: EventFilterDefinition;
839
+ searchText?: string;
840
+ hidePagination?: boolean;
841
+ columnCount?: number;
842
+ rowCount?: number;
843
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
844
+ onChannelClick?: (channel: string) => unknown;
845
+ className?: string;
846
+ }
847
+ declare const EventsGrid: FC<EventGridProps>;
848
+
849
+ interface EventsListProps {
850
+ view?: EventView;
851
+ filter?: EventFilterDefinition;
852
+ searchText?: string;
853
+ itemLayoutMode?: ItemLayoutMode;
854
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
855
+ onChannelClick?: (channel: string) => unknown;
856
+ hidePlaceholderIfNoBanner?: boolean;
857
+ hidePagination?: boolean;
858
+ pageSize?: number;
859
+ className?: string;
860
+ }
861
+ declare const EventsList: FC<EventsListProps>;
862
+
707
863
  interface NewsHeroFilterProps {
708
864
  channels?: string | FilterWithLogicalOperator;
709
865
  keywords?: string | FilterWithLogicalOperator;
@@ -728,6 +884,15 @@ interface NewsEditorDashboardProps {
728
884
  }
729
885
  declare const NewsEditorDashboard: FC<NewsEditorDashboardProps>;
730
886
 
887
+ interface EventsEditorDashboardProps {
888
+ groupId?: string;
889
+ className?: string;
890
+ onItemClick?: (item: EventItem) => unknown;
891
+ pageSize?: number;
892
+ hidePagination?: boolean;
893
+ }
894
+ declare const EventsEditorDashboard: FC<EventsEditorDashboardProps>;
895
+
731
896
  declare const NewsItemContextProvider: FC<{
732
897
  itemId: string;
733
898
  }>;
@@ -809,4 +974,4 @@ declare const ToolbarFilterSearch: styled_components.StyledComponent<FC<{
809
974
  className?: string;
810
975
  }>, any, {}, never>;
811
976
 
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 };
977
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, 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, 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';