@livetiles/reach-components-react 0.3.89 → 0.3.93

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": "Selected Channels",
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.",
@@ -1341,10 +1344,14 @@ var en = {
1341
1344
  "PublishingSettings.expiryTimeErrorMessage": "The expiry time must be later than the publishing time",
1342
1345
  "PublishingSettings.publishingTimeErrorMessage": "The publishing time must be before the expiry time",
1343
1346
  "ImageDialog.fromUnsplash": "From unsplash.com",
1347
+ "ImageDialog.fromGetty": "From Getty Images",
1344
1348
  "ImageDialog.fromCanva": "Design on Canva",
1345
1349
  "PhotoLibrary.browseCategory": "Or pick a category",
1346
1350
  "PhotoLibrary.photoBy": "by",
1347
1351
  "PhotoLibrary.photosBy": "Photos by",
1352
+ "PhotoLibrary.source.getty": "Getty Images",
1353
+ "PhotoLibrary.terms.button": "Terms of Use",
1354
+ "PhotoLibrary.terms.back": "Back",
1348
1355
  "ExternalLinkButton.news.navigateTo": "This is an external news article. You will be redirected to {url}",
1349
1356
  "ExternalLinkButton.pages.navigateTo": "This is an external page. You will be redirected to {url}",
1350
1357
  "ExternalLinkButton.pages.noUrl.navigateTo": "This is an external page.",
@@ -1731,6 +1738,7 @@ var en = {
1731
1738
  "Event.editor.recurrence.editEntireSeries": "Edit the entire series",
1732
1739
  "Event.editor.recurrence.editOnlyThisEvent": "Edit only this event",
1733
1740
  "Events.contactsLabel": "{count, plural, one {Event contact} other {Event contacts}}",
1741
+ "Events.contactLabel": "{count, plural, one {Contact} other {Contacts}}",
1734
1742
  "Events.locationsLabel": "{count, plural, one {Location} other {Locations}}",
1735
1743
  "Events.authorLabel": "Announcement author",
1736
1744
  "Events.registration.sectionLabel": "Event registration",
@@ -1757,6 +1765,8 @@ var en = {
1757
1765
  "Events.editor.channelSettings.title": "Event channels",
1758
1766
  "Events.editor.missingChannels": "An event must have a least one channel selected",
1759
1767
  "Events.cancel.cancelled": "Event cancelled",
1768
+ "Events.cancel.cancelledIndicator": "Cancelled:",
1769
+ "Events.booked.iconTooltip": "You are registered for this event.",
1760
1770
  "Events.registration.deadline.title": "Registration {isPast, select, true {ended} false {ends}} {deadlineRelative}",
1761
1771
  "Events.registration.deadline.placeholder": "No deadline set, click here to specify one",
1762
1772
  "Events.registration.registerButtonCaption": "Register",
@@ -1769,6 +1779,7 @@ var en = {
1769
1779
  "Events.registration.onBehalfOfRegistrationSuccess.hiddenMail": "You successfully registered a user for the event",
1770
1780
  "Events.registration.onBehalfOfDeregistrationSuccess": "You successfully deregistered {mail} from the event",
1771
1781
  "Events.registration.exportResultsAsCsv": "Download responses as CSV file",
1782
+ "Events.registration.notRequired": "No registration required",
1772
1783
  "Events.registration.locations.questionTitle": "Which location will you attend?",
1773
1784
  "Events.registration.locations.onBehalfOfQuestionTitle": "Which location will the user attend?",
1774
1785
  "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 +1971,7 @@ var en = {
1960
1971
  "AriaLabel.editor.insertQuote.customAuthor": "Custom author",
1961
1972
  "AriaLabel.editor.externalUrl.input": "URL",
1962
1973
  "AriaLabel.editor.groupSelector": "Groups",
1974
+ "AriaLabel.editor.eventViewSelector": "Event views",
1963
1975
  "AriaLabel.managePagesEditor.title": "Title",
1964
1976
  "AriaLabel.managePagesEditor.toggleSelection": "Toggle selection",
1965
1977
  "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
@@ -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;
@@ -704,6 +837,33 @@ interface NewsGridProps {
704
837
  }
705
838
  declare const NewsGrid: FC<NewsGridProps>;
706
839
 
840
+ interface EventGridProps {
841
+ view?: EventView;
842
+ filter?: EventFilterDefinition;
843
+ searchText?: string;
844
+ hidePagination?: boolean;
845
+ columnCount?: number;
846
+ rowCount?: number;
847
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
848
+ onChannelClick?: (channel: string) => unknown;
849
+ className?: string;
850
+ }
851
+ declare const EventsGrid: FC<EventGridProps>;
852
+
853
+ interface EventsListProps {
854
+ view?: EventView;
855
+ filter?: EventFilterDefinition;
856
+ searchText?: string;
857
+ itemLayoutMode?: ItemLayoutMode;
858
+ onItemClick?: (item: EventItem, itemUrl?: string) => unknown;
859
+ onChannelClick?: (channel: string) => unknown;
860
+ hidePlaceholderIfNoBanner?: boolean;
861
+ hidePagination?: boolean;
862
+ pageSize?: number;
863
+ className?: string;
864
+ }
865
+ declare const EventsList: FC<EventsListProps>;
866
+
707
867
  interface NewsHeroFilterProps {
708
868
  channels?: string | FilterWithLogicalOperator;
709
869
  keywords?: string | FilterWithLogicalOperator;
@@ -728,6 +888,15 @@ interface NewsEditorDashboardProps {
728
888
  }
729
889
  declare const NewsEditorDashboard: FC<NewsEditorDashboardProps>;
730
890
 
891
+ interface EventsEditorDashboardProps {
892
+ groupId?: string;
893
+ className?: string;
894
+ onItemClick?: (item: EventItem) => unknown;
895
+ pageSize?: number;
896
+ hidePagination?: boolean;
897
+ }
898
+ declare const EventsEditorDashboard: FC<EventsEditorDashboardProps>;
899
+
731
900
  declare const NewsItemContextProvider: FC<{
732
901
  itemId: string;
733
902
  }>;
@@ -809,4 +978,4 @@ declare const ToolbarFilterSearch: styled_components.StyledComponent<FC<{
809
978
  className?: string;
810
979
  }>, any, {}, never>;
811
980
 
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 };
981
+ 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';