@livetiles/reach-components-react 0.5.0-preview.69 → 0.5.0-preview.690

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 (68) hide show
  1. package/AnalyticsDummyContextProvider.d.ts +2 -0
  2. package/EmojiPicker.esm.esm.js +1 -1
  3. package/ErrorWrapper.d.ts +3 -2
  4. package/EventDetail.d.ts +9 -1
  5. package/EventGridCard.d.ts +4 -4
  6. package/EventItemContextProvider.d.ts +4 -0
  7. package/EventItemPreviewContextProvider.d.ts +5 -0
  8. package/NewsDetail.d.ts +4 -0
  9. package/NewsDetailViewMetaInfo.d.ts +3 -1
  10. package/NewsGrid.d.ts +1 -0
  11. package/NewsGridCard.d.ts +6 -5
  12. package/PageDetail.d.ts +9 -1
  13. package/PageGridCard.d.ts +1 -0
  14. package/PageItemContextProvider.d.ts +4 -0
  15. package/PageItemPreviewContextProvider.d.ts +5 -0
  16. package/PageTableOfContents.d.ts +3 -2
  17. package/PagesGrid.d.ts +1 -0
  18. package/PublishableItemGrid.d.ts +3 -2
  19. package/PublishableItemList.d.ts +3 -2
  20. package/ReachContext.d.ts +15 -0
  21. package/SharedItemDetailPreview.d.ts +16 -0
  22. package/ToolbarBookmarkButton.d.ts +4 -0
  23. package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
  24. package/{ToolbarManageNewsItemButton.d.ts → ToolbarManageItemButton.d.ts} +3 -0
  25. package/asn1.esm.js +1 -0
  26. package/auto-track-f51a2a4b.esm.js +1 -0
  27. package/common/CommentCountIconWithTooltip.d.ts +3 -1
  28. package/common/hero/Hero.d.ts +2 -3
  29. package/common/hooks/useBannerOnResize.d.ts +5 -0
  30. package/common/utils.d.ts +1 -3
  31. package/da.async.esm2.esm.js +1 -1
  32. package/de.async.esm2.esm.js +1 -1
  33. package/editor/EventEditorContextProvider.d.ts +9 -1
  34. package/editor/EventEditorToolbarRecurringControls.d.ts +0 -2
  35. package/editor/PageEditor.d.ts +6 -0
  36. package/editor/PageEditorContextProvider.d.ts +11 -0
  37. package/editor/PageEditorPanel.d.ts +5 -0
  38. package/editor/PageEditorToolbarStateActions.d.ts +2 -0
  39. package/en.async.esm.esm.js +1 -1
  40. package/es.async.esm2.esm.js +1 -1
  41. package/fr.async.esm2.esm.js +1 -1
  42. package/index-86828242.esm.js +1 -0
  43. package/index-9966489c.esm.js +1 -0
  44. package/index-b8e04782.esm.js +705 -0
  45. package/index-bb815ffc.esm.js +1 -0
  46. package/index-beff4bdb.esm.js +1 -0
  47. package/index-d4477314.esm.js +1 -0
  48. package/index.d.ts +343 -101
  49. package/index.esm.js +1 -1
  50. package/index.esm2.js +46 -21
  51. package/index.umd-3ae1841e.esm.js +1 -0
  52. package/index.umd.js +754 -25
  53. package/is-plan-event-enabled-d9660f36.esm.js +1 -0
  54. package/it.async.esm2.esm.js +1 -1
  55. package/ja.async.esm2.esm.js +1 -1
  56. package/javascript.esm.js +1 -0
  57. package/mllike.esm.js +1 -0
  58. package/package.json +1 -1
  59. package/python.esm.js +1 -0
  60. package/rpm.esm.js +1 -0
  61. package/sql.esm.js +1 -0
  62. package/tr.async.esm2.esm.js +1 -1
  63. package/ttcn-cfg.esm.js +1 -0
  64. package/zh-CN.async.esm2.esm.js +1 -1
  65. package/zh-TW.async.esm2.esm.js +1 -1
  66. package/NewsDetailPreview.d.ts +0 -7
  67. package/da.async.esm3.esm.js +0 -1
  68. package/da.esm.js +0 -1
package/index.d.ts CHANGED
@@ -1,18 +1,66 @@
1
+ /// <reference types="react" />
1
2
  import { FC, ReactNode } from 'react';
2
3
  import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
3
4
  import * as styled_components from 'styled-components';
4
5
 
6
+ declare enum AuthenticationType {
7
+ unknown = 0,
8
+ azuread = 1,
9
+ b2c = 3,
10
+ temporary = 4,
11
+ apiKey = 5,
12
+ teams = 6,
13
+ onPremKeycloak = 7,
14
+ openId = 8,
15
+ public = 99
16
+ }
17
+
18
+ declare enum IdentityProviderNames {
19
+ MicrosoftWork = "microsoft-work",
20
+ Google = "google",
21
+ EMail = "email",
22
+ Apple = "apple"
23
+ }
24
+ interface IdentityProviderSettings {
25
+ name: string;
26
+ issuer: string;
27
+ clientId: string;
28
+ realm: string;
29
+ url: string;
30
+ scope: string;
31
+ }
32
+
33
+ interface VideoSource$1 {
34
+ prefix: string;
35
+ name: string;
36
+ alwaysShowPlayer?: boolean;
37
+ }
38
+
5
39
  declare type ReachContextProps = {
6
40
  config?: {
7
41
  apiEndpoint?: string;
8
42
  webAppUrl?: string;
9
43
  api3Endpoint?: string;
10
44
  webSocketsEndpoint?: string;
45
+ additionalVideoSources?: VideoSource$1[];
11
46
  };
12
47
  onRequestToken?: () => Promise<string>;
13
48
  subscriptionId: string;
14
49
  language?: string;
15
50
  disableUiFabricThemeOverwrite?: boolean;
51
+ locale?: string;
52
+ /**
53
+ * These properties can be used to define the behavior of the analytics module.
54
+ *
55
+ * With `disableAnalytics` you can completely disable all analytics tracking.
56
+ * The `appName` is optional but highly encouraged to be set,
57
+ * in order to know where the components are used in. The value must be a non-empty string,
58
+ * only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
59
+ */
60
+ analyticsProps?: {
61
+ disableAnalytics?: boolean;
62
+ appName?: string;
63
+ };
16
64
  };
17
65
  declare const ReachContextProvider: FC<ReachContextProps>;
18
66
 
@@ -21,23 +69,29 @@ interface NewsDetailProps {
21
69
  hideComments?: boolean;
22
70
  hideLikes?: boolean;
23
71
  preventExternalContentAutoRedirect?: boolean;
72
+ onChannelClick?: (channel: string) => unknown;
73
+ onKeywordClick?: (keyword: string) => unknown;
24
74
  className?: string;
25
75
  }
26
76
  declare const NewsDetail: FC<NewsDetailProps>;
27
77
 
28
78
  interface PageDetailProps {
29
- itemId: string;
79
+ itemId?: string;
30
80
  hideComments?: boolean;
31
81
  hideLikes?: boolean;
32
82
  preventExternalContentAutoRedirect?: boolean;
83
+ homeBreadcrumbTargetUrl?: string;
84
+ onKeywordClick?: (keyword: string) => unknown;
33
85
  className?: string;
34
86
  }
35
87
  declare const PageDetail: FC<PageDetailProps>;
36
88
 
37
89
  interface EventDetailProps {
38
- itemId: string;
90
+ itemId?: string;
39
91
  hideComments?: boolean;
40
92
  hideLikes?: boolean;
93
+ onChannelClick?: (channel: string) => unknown;
94
+ onKeywordClick?: (keyword: string) => unknown;
41
95
  className?: string;
42
96
  }
43
97
  declare const EventDetail: FC<EventDetailProps>;
@@ -59,33 +113,6 @@ interface PaginatedList<TItem> {
59
113
  hasNextPage?: boolean;
60
114
  }
61
115
 
62
- declare enum AuthenticationType {
63
- unknown = 0,
64
- azuread = 1,
65
- b2c = 3,
66
- temporary = 4,
67
- apiKey = 5,
68
- teams = 6,
69
- onPremKeycloak = 7,
70
- openId = 8,
71
- public = 99
72
- }
73
-
74
- declare enum IdentityProviderNames {
75
- MicrosoftWork = "microsoft-work",
76
- Google = "google",
77
- EMail = "email",
78
- Apple = "apple"
79
- }
80
- interface IdentityProviderSettings {
81
- name: string;
82
- issuer: string;
83
- clientId: string;
84
- realm: string;
85
- url: string;
86
- scope: string;
87
- }
88
-
89
116
  interface Resources {
90
117
  [language: string]: Record<string, string>;
91
118
  }
@@ -156,6 +183,8 @@ interface NotificationTypeSettings {
156
183
  pluginNotifications: {
157
184
  [key: string]: NotificationType;
158
185
  };
186
+ newsEditor: NotificationType;
187
+ eventEditor: NotificationType;
159
188
  }
160
189
  interface CurrentUser extends Account {
161
190
  isEmailVerificationPending?: boolean;
@@ -187,6 +216,7 @@ interface CurrentUser extends Account {
187
216
  termsAndConditionsApprovedHash: string;
188
217
  isPublicUser?: boolean;
189
218
  hasUnreadChats?: boolean;
219
+ publicSubscriptionIds?: string[];
190
220
  }
191
221
  interface UserContact {
192
222
  tokenUniqueId: string;
@@ -284,6 +314,7 @@ interface SubscriptionSummary extends BaseSubscription {
284
314
  customDomain?: string;
285
315
  allowSelfRegistration?: boolean;
286
316
  brandFolderConfig?: BrandFolderConfig;
317
+ hideSubscriptionName?: boolean;
287
318
  }
288
319
  interface BrandFolderConfig {
289
320
  sections?: string[];
@@ -314,9 +345,21 @@ interface WebPluginDefinition {
314
345
  subscriptionId?: string;
315
346
  environment?: string;
316
347
  }
317
- interface PluginExtension {
318
- area: string;
319
- componentName: string;
348
+ declare enum ExtensionArea {
349
+ global = "Global",
350
+ page = "Page",
351
+ eventEditorFeedbackSection = "EventEditorFeedbackSection",
352
+ eventDetailViewSection = "EventDetailViewSection",
353
+ itemEditor = "ItemEditor",
354
+ newsEditorFeedbackSection = "NewsEditorFeedbackSection",
355
+ newsOverviewCardSection = "NewsOverviewCardSection"
356
+ }
357
+ declare type InlinePlugin = {
358
+ area: ExtensionArea.itemEditor;
359
+ objectButton: PluginObjectButton;
360
+ };
361
+ declare type PagePlugin = {
362
+ area: ExtensionArea.page;
320
363
  route: string;
321
364
  navigationNode?: {
322
365
  componentName?: string;
@@ -326,7 +369,20 @@ interface PluginExtension {
326
369
  [key: string]: string;
327
370
  };
328
371
  };
329
- }
372
+ };
373
+ declare type PluginExtension = {
374
+ area: ExtensionArea;
375
+ componentName: string;
376
+ } & (InlinePlugin | PagePlugin);
377
+ declare type PluginObjectButton = {
378
+ buttonLabel: {
379
+ defaultLabel: string;
380
+ translations?: {
381
+ [key: string]: string;
382
+ };
383
+ };
384
+ iconName: string;
385
+ };
330
386
  interface PluginNotificationDefinitions {
331
387
  key: string;
332
388
  title: string;
@@ -368,6 +424,14 @@ interface Channel {
368
424
  };
369
425
  }
370
426
 
427
+ interface KeywordGroup {
428
+ id: string;
429
+ name: string;
430
+ keywords: Keyword[];
431
+ translations: {
432
+ [key: string]: string;
433
+ };
434
+ }
371
435
  interface Keyword {
372
436
  id: string;
373
437
  name: string;
@@ -411,7 +475,7 @@ declare enum KnownNewsState {
411
475
  declare type VersionId = string;
412
476
  interface SchedulableItem extends PublishableItem {
413
477
  metadata?: NewsMetadata;
414
- channels?: SchedulableItemChannel[];
478
+ channels?: Channel[];
415
479
  }
416
480
  interface NewsItem extends SchedulableItem {
417
481
  source?: string;
@@ -420,19 +484,11 @@ interface NewsItem extends SchedulableItem {
420
484
  knownState: KnownNewsState;
421
485
  hasNewComments?: boolean;
422
486
  isLiked?: boolean;
423
- shareToken?: ShareToken;
424
- }
425
- interface ShareToken {
426
- published?: string;
427
- preview?: string;
428
487
  }
429
488
  interface NewsItemAlertOptions {
430
489
  duration?: string;
431
490
  endDate?: Date;
432
491
  expireAfter?: boolean;
433
- }
434
- interface SchedulableItemChannel {
435
- name: string;
436
492
  }
437
493
 
438
494
  declare enum VideoSource {
@@ -447,19 +503,6 @@ interface BaseItem {
447
503
  id?: string;
448
504
  statistics?: ItemStatistics;
449
505
  poll?: Poll;
450
- searchHighlights?: SearchHighlightSummary;
451
- }
452
- interface SearchHighlightSummary {
453
- title: SearchHighlight[];
454
- content: SearchHighlight[];
455
- }
456
- interface SearchHighlight {
457
- language: string;
458
- texts: {
459
- value: string;
460
- type: 'text' | 'hit';
461
- }[];
462
- score: number;
463
506
  }
464
507
  interface Poll {
465
508
  questions: PollQuestion[];
@@ -494,6 +537,7 @@ interface PublishableItemContent extends ContentDefinition {
494
537
  headline?: string;
495
538
  intro?: string;
496
539
  body?: string;
540
+ bodyRaw?: string;
497
541
  customProperties?: {
498
542
  [key: string]: any;
499
543
  };
@@ -599,6 +643,18 @@ interface Attachment extends BaseAttachment {
599
643
  type: AttachmentType;
600
644
  }
601
645
 
646
+ declare enum GraphQLAttachmentType {
647
+ Image = "IMAGE",
648
+ File = "FILE",
649
+ YouTubeVideo = "YOU_TUBE_VIDEO",
650
+ VimeoVideo = "VIMEO_VIDEO",
651
+ News = "NEWS",
652
+ Event = "EVENT",
653
+ Page = "PAGE",
654
+ Post = "POST",
655
+ Giphy = "GIPHY"
656
+ }
657
+
602
658
  interface ItemWithAttachments {
603
659
  attachments?: Attachment[];
604
660
  fileAccessToken?: string;
@@ -748,6 +804,7 @@ interface PageItem extends PublishableItem {
748
804
  isUnlinked?: boolean;
749
805
  pageType?: PageType;
750
806
  firstChildId?: string;
807
+ isGroupInheritanceBroken?: boolean;
751
808
  }
752
809
  interface ContentsSummary {
753
810
  [lang: string]: TitleContent & {
@@ -769,6 +826,7 @@ interface PageNavigationNode {
769
826
  hasAnyPageChild?: boolean;
770
827
  pageType?: PageType;
771
828
  useExternalContent?: boolean;
829
+ isGroupInheritanceBroken?: boolean;
772
830
  isSearchMatch?: boolean;
773
831
  topLevelFolderName?: string;
774
832
  uploadToken?: string;
@@ -783,6 +841,23 @@ declare enum PageType {
783
841
  Document = 1
784
842
  }
785
843
 
844
+ declare type KeywordsByGroupId = {
845
+ [key: string]: Keyword[];
846
+ };
847
+
848
+ interface SubscriptionData {
849
+ channels?: Channel[];
850
+ allKeywords?: Keyword[];
851
+ keywordsByGroupId?: KeywordsByGroupId;
852
+ selectedKeywordGroups?: KeywordGroup[];
853
+ }
854
+ interface LazySubscriptionContextType extends SubscriptionData {
855
+ getChannels: () => Promise<Channel[]>;
856
+ refreshSubscription: () => void;
857
+ }
858
+
859
+ declare function useLazySubscriptionContext(): LazySubscriptionContextType;
860
+
786
861
  declare const Dialog: FC<IDialogProps>;
787
862
 
788
863
  interface ToolbarProps {
@@ -800,6 +875,12 @@ interface ToolbarSearchProps {
800
875
  }
801
876
  declare const Toolbar: FC<ToolbarProps>;
802
877
 
878
+ declare type TokenType = string | number;
879
+
880
+ interface ItemLoader<TItem, TTokenType extends TokenType> {
881
+ (pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
882
+ }
883
+
803
884
  interface ToolbarChannelSelectorProps {
804
885
  getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
805
886
  allChannelsOption?: ToolbarChannelSelectorOption;
@@ -845,6 +926,15 @@ declare const ToolbarUnreadItemsButton: FC<{
845
926
  onClick: () => unknown;
846
927
  }>;
847
928
 
929
+ declare const ToolbarManageButton: FC<{
930
+ onClick?: () => unknown;
931
+ to?: {
932
+ url: string;
933
+ target?: string;
934
+ };
935
+ disabled?: boolean;
936
+ }>;
937
+
848
938
  interface ToolbarCloseButtonProps {
849
939
  onClick?: () => unknown;
850
940
  to?: {
@@ -873,8 +963,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
873
963
  interface Props extends IPersonaProps {
874
964
  upn: string;
875
965
  tenantId?: string;
876
- className?: string;
877
966
  displayName?: string;
967
+ forceShowSecondaryText?: boolean;
968
+ className?: string;
878
969
  }
879
970
  declare const Avatar: FC<Props>;
880
971
 
@@ -885,6 +976,13 @@ interface UserDetailsProps {
885
976
  }
886
977
  declare const UserDetails: FC<UserDetailsProps>;
887
978
 
979
+ declare enum ErrorType {
980
+ GenericError = "genericError",
981
+ Error404 = "error404",
982
+ Error403 = "error403",
983
+ LoginError = "loginError"
984
+ }
985
+
888
986
  interface PageViewTrackerSettings {
889
987
  disabled?: boolean;
890
988
  }
@@ -931,6 +1029,32 @@ declare enum LogicalOperator {
931
1029
  And = "AND"
932
1030
  }
933
1031
 
1032
+ interface Post extends BaseItem, ItemWithAttachments {
1033
+ id: string;
1034
+ comments?: PaginatedList<Comment>;
1035
+ groupId: string;
1036
+ content: string;
1037
+ permalink?: string;
1038
+ author: Account;
1039
+ publishingDate: string;
1040
+ modified?: string;
1041
+ statistics: ItemStatistics;
1042
+ keywords?: {
1043
+ [key: string]: Keyword[];
1044
+ };
1045
+ contentLanguageCode?: string;
1046
+ isLiked?: boolean;
1047
+ isUnread?: boolean;
1048
+ isDemoContent?: boolean;
1049
+ isFollowing?: boolean;
1050
+ }
1051
+ interface PostFilterDefinition {
1052
+ token?: string;
1053
+ pageSize?: string;
1054
+ search?: string;
1055
+ keywords?: FilterWithLogicalOperator;
1056
+ }
1057
+
934
1058
  interface AuthorFilterDefinition extends IndexableFilterDefinition {
935
1059
  author?: string;
936
1060
  }
@@ -939,6 +1063,20 @@ interface ChannelsFilterDefinition extends IndexableFilterDefinition {
939
1063
  channels?: FilterWithLogicalOperator;
940
1064
  }
941
1065
 
1066
+ interface EventContactsFilterDefinition extends IndexableFilterDefinition {
1067
+ contacts?: string[];
1068
+ }
1069
+
1070
+ interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
1071
+ startsAfter?: string;
1072
+ startsBefore?: string;
1073
+ }
1074
+
1075
+ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
1076
+ excludePastEvents?: boolean;
1077
+ pastEventsOnly?: boolean;
1078
+ }
1079
+
942
1080
  interface StateFilterDefinition extends IndexableFilterDefinition {
943
1081
  state?: WorkflowStatus;
944
1082
  }
@@ -950,26 +1088,90 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
950
1088
  includeExpired?: boolean;
951
1089
  }
952
1090
 
1091
+ declare enum StreamEventResponse {
1092
+ NotSet = "NOTSET",
1093
+ Registered = "REGISTERED",
1094
+ Declined = "DECLINED"
1095
+ }
1096
+
1097
+ declare enum StreamItemTypes {
1098
+ Post = "POST",
1099
+ News = "NEWS",
1100
+ Event = "EVENT",
1101
+ Page = "PAGE"
1102
+ }
1103
+ declare enum StreamConversationScope {
1104
+ Public = "PUBLIC",
1105
+ Editor = "EDITOR",
1106
+ Posts = "POSTS"
1107
+ }
1108
+ interface PostStreamItem extends Post {
1109
+ type: StreamItemTypes.Post;
1110
+ isUnread: boolean;
1111
+ keywordsList?: Keyword[];
1112
+ groupIds?: string[];
1113
+ postAttachments?: StreamAttachment[];
1114
+ postComments?: PaginatedList<StreamPostComment>;
1115
+ hasMoreUnreadComments: boolean;
1116
+ }
1117
+ interface StreamPostComment extends Comment {
1118
+ postCommentAttachments?: StreamAttachment[];
1119
+ streamConversationScope?: StreamConversationScope;
1120
+ }
1121
+ interface StreamAttachment extends BaseAttachment {
1122
+ type: GraphQLAttachmentType;
1123
+ }
1124
+ interface NewsStreamItem extends NewsItem {
1125
+ type: StreamItemTypes.News;
1126
+ contentsList: StreamPublishableItemContents[];
1127
+ channelsList: string[];
1128
+ isUnread: boolean;
1129
+ keywordsList?: Keyword[];
1130
+ knownNewsState?: StreamKnownNewsState[];
1131
+ }
1132
+ declare enum StreamKnownNewsState {
1133
+ Unconfirmed = "UNCONFIRMED",
1134
+ Alert = "ALERT"
1135
+ }
1136
+ interface EventStreamItem extends EventItem {
1137
+ type: StreamItemTypes.Event;
1138
+ contentsList: StreamPublishableItemContents[];
1139
+ channelsList: string[];
1140
+ isUnread: boolean;
1141
+ keywordsList?: Keyword[];
1142
+ userResponseType?: StreamEventResponse;
1143
+ eventCancelInformation?: StreamEventCancelInformation;
1144
+ }
1145
+ interface PageStreamItem extends PageItem {
1146
+ type: StreamItemTypes.Page;
1147
+ contentsList: StreamPublishableItemContents[];
1148
+ channelsList: string[];
1149
+ isUnread: boolean;
1150
+ keywordsList?: Keyword[];
1151
+ streamPageType?: string;
1152
+ path?: (PageNavigationNode & {
1153
+ parentId?: string;
1154
+ contentsList: StreamPublishableItemContents[];
1155
+ })[];
1156
+ }
1157
+ interface StreamPublishableItemContents {
1158
+ language: string;
1159
+ title: string;
1160
+ intro?: string;
1161
+ headline?: string;
1162
+ }
1163
+ interface StreamEventCancelInformation extends EventCancelInformation {
1164
+ cancellationReasons?: {
1165
+ [key: string]: string;
1166
+ }[];
1167
+ }
1168
+
953
1169
  interface TargetLinkOverrideContextProps {
954
1170
  onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
955
1171
  onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
956
1172
  }
957
1173
  declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
958
1174
 
959
- interface EventContactsFilterDefinition extends IndexableFilterDefinition {
960
- contacts?: string[];
961
- }
962
-
963
- interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
964
- startsAfter?: string;
965
- startsBefore?: string;
966
- }
967
-
968
- interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
969
- excludePastEvents?: boolean;
970
- pastEventsOnly?: boolean;
971
- }
972
-
973
1175
  interface KeywordPickerProps {
974
1176
  value?: Keyword[] | string[];
975
1177
  onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
@@ -990,35 +1192,17 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
990
1192
  pageType?: PageType;
991
1193
  }
992
1194
 
993
- interface Post extends BaseItem, ItemWithAttachments {
994
- id: string;
995
- comments?: PaginatedList<Comment>;
996
- groupId: string;
997
- content: string;
998
- permalink?: string;
999
- author: Account;
1000
- publishingDate: string;
1001
- modified?: string;
1002
- statistics: ItemStatistics;
1003
- keywords?: {
1004
- [key: string]: Keyword[];
1005
- };
1006
- contentLanguageCode?: string;
1007
- isLiked?: boolean;
1008
- isUnread?: boolean;
1009
- isDemoContent?: boolean;
1010
- isFollowing?: boolean;
1011
- }
1012
- interface PostFilterDefinition {
1013
- token?: string;
1014
- pageSize?: string;
1015
- search?: string;
1016
- keywords?: FilterWithLogicalOperator;
1017
- }
1195
+ declare function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
1196
+
1197
+ declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
1018
1198
 
1019
1199
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1020
1200
  }
1021
1201
 
1202
+ declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
1203
+
1204
+ declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
1205
+
1022
1206
  interface LibNewsFilterDefinition extends Omit<NewsFilterDefinition, 'channels' | 'keywords'> {
1023
1207
  channels?: string | FilterWithLogicalOperator;
1024
1208
  keywords?: string | FilterWithLogicalOperator;
@@ -1071,6 +1255,7 @@ interface NewsGridProps {
1071
1255
  onKeywordClick?: (keyword: string) => unknown;
1072
1256
  includeAllItems?: boolean;
1073
1257
  className?: string;
1258
+ hideIntro?: boolean;
1074
1259
  }
1075
1260
  declare const NewsGrid: FC<NewsGridProps>;
1076
1261
 
@@ -1148,27 +1333,52 @@ declare const NewsItemContextProvider: FC<{
1148
1333
  itemId: string;
1149
1334
  }>;
1150
1335
 
1151
- declare const ToolbarNewsLanguageSelector: FC<{
1336
+ declare const PageItemContextProvider: FC<{
1337
+ itemId: string;
1338
+ }>;
1339
+
1340
+ declare const EventItemContextProvider: FC<{
1341
+ itemId: string;
1342
+ }>;
1343
+
1344
+ declare const ToolbarLanguageSelector: FC<{
1152
1345
  showEditLanguagePreferences?: boolean;
1153
1346
  onEditLanguagePreferences?: () => unknown;
1154
1347
  }>;
1155
1348
 
1349
+ declare const ToolbarManageItemButton: FC<{
1350
+ onClick?: (itemId: string) => unknown;
1351
+ }>;
1156
1352
  declare const ToolbarManageNewsItemButton: FC<{
1157
1353
  onClick?: (itemId: string) => unknown;
1158
1354
  }>;
1159
1355
 
1160
- interface NewsDetailPreviewProps {
1356
+ interface SharedItemDetailPreviewProps {
1161
1357
  itemId?: string;
1162
1358
  versionId?: string;
1163
1359
  className?: string;
1360
+ hideLikes?: boolean;
1361
+ hideComments?: boolean;
1164
1362
  }
1165
- declare const NewsDetailPreview: FC<NewsDetailPreviewProps>;
1363
+ declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
1364
+ declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
1365
+ declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
1166
1366
 
1167
1367
  declare const NewsItemPreviewContextProvider: FC<{
1168
1368
  itemId: string;
1169
1369
  versionId?: string;
1170
1370
  }>;
1171
1371
 
1372
+ declare const PageItemPreviewContextProvider: FC<{
1373
+ itemId: string;
1374
+ versionId?: string;
1375
+ }>;
1376
+
1377
+ declare const EventItemPreviewContextProvider: FC<{
1378
+ itemId: string;
1379
+ versionId?: string;
1380
+ }>;
1381
+
1172
1382
  interface FilterProps {
1173
1383
  filter: IndexableFilterDefinition;
1174
1384
  onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
@@ -1326,6 +1536,7 @@ interface PagesGridProps {
1326
1536
  rowCount?: number;
1327
1537
  onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
1328
1538
  onKeywordClick?: (keyword: string) => unknown;
1539
+ hideIntro?: boolean;
1329
1540
  className?: string;
1330
1541
  }
1331
1542
  declare const PagesGrid: FC<PagesGridProps>;
@@ -1366,10 +1577,41 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
1366
1577
  declare const EventEditorToolbarStateActions: FC;
1367
1578
 
1368
1579
  interface EventEditorToolbarRecurringControlsProps {
1369
- onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
1370
- onResetModifiedInstance: () => void;
1371
1580
  className?: string;
1372
1581
  }
1373
1582
  declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
1374
1583
 
1375
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, isFilterActive, useCurrentUser };
1584
+ interface PageEditorContextProviderProps {
1585
+ itemId?: string;
1586
+ groupId?: string;
1587
+ parentId?: string;
1588
+ onSuccessfulCreate?: (itemId: string) => void;
1589
+ onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
1590
+ onSuccessfulDeletePermanently?: (itemId: number | string) => void;
1591
+ }
1592
+ declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
1593
+
1594
+ interface PageEditorProps {
1595
+ homeBreadcrumbTargetUrl?: string;
1596
+ className?: string;
1597
+ }
1598
+ declare const PageEditor: FC<PageEditorProps>;
1599
+
1600
+ declare const PageEditorToolbarStateActions: FC;
1601
+
1602
+ interface PageEditorPanelProps {
1603
+ className?: string;
1604
+ }
1605
+ declare const PageEditorPanel: FC<PageEditorPanelProps>;
1606
+
1607
+ interface ErrorWrapperProps {
1608
+ errorType: ErrorType;
1609
+ isList?: boolean;
1610
+ }
1611
+ declare const ErrorWrapper: FC<ErrorWrapperProps>;
1612
+
1613
+ declare const ToolbarBookmarkButton: FC<{
1614
+ onClick?: () => unknown;
1615
+ }>;
1616
+
1617
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };