@livetiles/reach-components-react 0.4.0-preview.991 → 0.5.0-preview.3
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/PageGridCard.d.ts +13 -0
- package/PagesGrid.d.ts +14 -0
- package/PagesList.d.ts +16 -0
- package/common/utils.d.ts +1 -1
- package/da.async.esm.esm.js +1 -1
- package/da.async.esm2.esm.js +1 -0
- package/da.esm.js +1 -0
- package/en.async.esm.esm.js +1 -1
- package/index.d.ts +108 -14
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -17
- package/index.umd.js +22 -22
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -447,6 +447,19 @@ interface BaseItem {
|
|
|
447
447
|
id?: string;
|
|
448
448
|
statistics?: ItemStatistics;
|
|
449
449
|
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;
|
|
450
463
|
}
|
|
451
464
|
interface Poll {
|
|
452
465
|
questions: PollQuestion[];
|
|
@@ -481,7 +494,6 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
481
494
|
headline?: string;
|
|
482
495
|
intro?: string;
|
|
483
496
|
body?: string;
|
|
484
|
-
bodyRaw?: string;
|
|
485
497
|
customProperties?: {
|
|
486
498
|
[key: string]: any;
|
|
487
499
|
};
|
|
@@ -496,6 +508,10 @@ interface DocumentFileInfo {
|
|
|
496
508
|
extension: string;
|
|
497
509
|
shouldOpenInBrowser?: boolean;
|
|
498
510
|
}
|
|
511
|
+
interface TitleContent extends ContentDefinition {
|
|
512
|
+
title?: string;
|
|
513
|
+
headline?: string;
|
|
514
|
+
}
|
|
499
515
|
interface BannerInfo {
|
|
500
516
|
type: 'image' | 'video' | null;
|
|
501
517
|
videoSource?: VideoSource;
|
|
@@ -722,6 +738,51 @@ declare enum MonthNumber {
|
|
|
722
738
|
December = 12
|
|
723
739
|
}
|
|
724
740
|
|
|
741
|
+
interface PageItem extends PublishableItem {
|
|
742
|
+
feedbackSettings?: FeedbackSettings;
|
|
743
|
+
parentId?: string;
|
|
744
|
+
pathIds?: string[];
|
|
745
|
+
position?: number;
|
|
746
|
+
navigationContext?: PageNavigationContext;
|
|
747
|
+
hasHiddenAncestor?: boolean;
|
|
748
|
+
isUnlinked?: boolean;
|
|
749
|
+
pageType?: PageType;
|
|
750
|
+
firstChildId?: string;
|
|
751
|
+
}
|
|
752
|
+
interface ContentsSummary {
|
|
753
|
+
[lang: string]: TitleContent & {
|
|
754
|
+
fileInfo?: DocumentFileInfo;
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
interface PageNavigationNode {
|
|
758
|
+
id: string;
|
|
759
|
+
contents?: ContentsSummary;
|
|
760
|
+
parent?: PageNavigationNode;
|
|
761
|
+
firstChildId?: string;
|
|
762
|
+
children?: PageNavigationNode[];
|
|
763
|
+
position?: number;
|
|
764
|
+
status?: WorkflowStatus;
|
|
765
|
+
hasPublishedVersion?: boolean;
|
|
766
|
+
groupIds?: string[];
|
|
767
|
+
hasHiddenAncestor?: boolean;
|
|
768
|
+
isUnlinked?: boolean;
|
|
769
|
+
hasAnyPageChild?: boolean;
|
|
770
|
+
pageType?: PageType;
|
|
771
|
+
useExternalContent?: boolean;
|
|
772
|
+
isSearchMatch?: boolean;
|
|
773
|
+
topLevelFolderName?: string;
|
|
774
|
+
uploadToken?: string;
|
|
775
|
+
}
|
|
776
|
+
interface PageNavigationContext {
|
|
777
|
+
parent?: PageNavigationNode;
|
|
778
|
+
siblings?: PageNavigationNode[];
|
|
779
|
+
children?: PageNavigationNode[];
|
|
780
|
+
}
|
|
781
|
+
declare enum PageType {
|
|
782
|
+
Page = 0,
|
|
783
|
+
Document = 1
|
|
784
|
+
}
|
|
785
|
+
|
|
725
786
|
declare const Dialog: FC<IDialogProps>;
|
|
726
787
|
|
|
727
788
|
interface ToolbarProps {
|
|
@@ -918,6 +979,14 @@ interface KeywordPickerProps {
|
|
|
918
979
|
}
|
|
919
980
|
declare const ScrollableKeywordPicker: styled_components.StyledComponent<FC<KeywordPickerProps>, styled_components.DefaultTheme, {}, never>;
|
|
920
981
|
|
|
982
|
+
interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
983
|
+
pageContextId?: string;
|
|
984
|
+
restrictToPageContext?: boolean;
|
|
985
|
+
rootPagesOnly?: boolean;
|
|
986
|
+
parentId?: string;
|
|
987
|
+
pageType?: PageType;
|
|
988
|
+
}
|
|
989
|
+
|
|
921
990
|
interface Post extends BaseItem, ItemWithAttachments {
|
|
922
991
|
id: string;
|
|
923
992
|
comments?: PaginatedList<Comment>;
|
|
@@ -1156,6 +1225,18 @@ interface NewsEditorProps {
|
|
|
1156
1225
|
}
|
|
1157
1226
|
declare const NewsEditor: FC<NewsEditorProps>;
|
|
1158
1227
|
|
|
1228
|
+
interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1229
|
+
filter?: LibNewsFilterDefinition;
|
|
1230
|
+
searchText?: string;
|
|
1231
|
+
}
|
|
1232
|
+
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
|
|
1233
|
+
|
|
1234
|
+
interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1235
|
+
filter?: EventFilterDefinition;
|
|
1236
|
+
searchText?: string;
|
|
1237
|
+
}
|
|
1238
|
+
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1239
|
+
|
|
1159
1240
|
interface EditorToolbarIndicatorsProps {
|
|
1160
1241
|
className?: string;
|
|
1161
1242
|
}
|
|
@@ -1176,18 +1257,6 @@ declare const NewsEditorPanel: FC<{
|
|
|
1176
1257
|
className?: string;
|
|
1177
1258
|
}>;
|
|
1178
1259
|
|
|
1179
|
-
interface ToolbarMarkNewsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1180
|
-
filter?: LibNewsFilterDefinition;
|
|
1181
|
-
searchText?: string;
|
|
1182
|
-
}
|
|
1183
|
-
declare const ToolbarMarkAllNewsAsReadButton: FC<ToolbarMarkNewsItemsAsReadButtonProps>;
|
|
1184
|
-
|
|
1185
|
-
interface ToolbarMarkEventsItemsAsReadButtonProps extends ToolbarMarkAllItemsAsReadButtonProps {
|
|
1186
|
-
filter?: EventFilterDefinition;
|
|
1187
|
-
searchText?: string;
|
|
1188
|
-
}
|
|
1189
|
-
declare const ToolbarMarkAllEventsAsReadButton: FC<ToolbarMarkEventsItemsAsReadButtonProps>;
|
|
1190
|
-
|
|
1191
1260
|
interface PostInputBoxProps {
|
|
1192
1261
|
onBeforeSave?: (post: Post) => void;
|
|
1193
1262
|
onAfterSave?: (post: Post) => void;
|
|
@@ -1243,4 +1312,29 @@ interface EventDatesToolbarFilterProps {
|
|
|
1243
1312
|
}
|
|
1244
1313
|
declare const EventDatesToolbarFilter: FC<EventDatesToolbarFilterProps>;
|
|
1245
1314
|
|
|
1246
|
-
|
|
1315
|
+
interface PagesGridProps {
|
|
1316
|
+
filter?: PageFilterDefinition;
|
|
1317
|
+
searchText?: string;
|
|
1318
|
+
hidePagination?: boolean;
|
|
1319
|
+
maxColumnCount?: number;
|
|
1320
|
+
rowCount?: number;
|
|
1321
|
+
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1322
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
1323
|
+
className?: string;
|
|
1324
|
+
}
|
|
1325
|
+
declare const PagesGrid: FC<PagesGridProps>;
|
|
1326
|
+
|
|
1327
|
+
interface PagesListProps {
|
|
1328
|
+
filter?: PageFilterDefinition;
|
|
1329
|
+
searchText?: string;
|
|
1330
|
+
itemLayoutMode?: ItemLayoutMode;
|
|
1331
|
+
onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => void;
|
|
1332
|
+
onKeywordClick?: (keyword: string) => void;
|
|
1333
|
+
hidePlaceholderIfNoBanner?: boolean;
|
|
1334
|
+
hidePagination?: boolean;
|
|
1335
|
+
pageSize?: number;
|
|
1336
|
+
className?: string;
|
|
1337
|
+
}
|
|
1338
|
+
declare const PagesList: FC<PagesListProps>;
|
|
1339
|
+
|
|
1340
|
+
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, 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, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, 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 };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a0 as AuthorFilter,$ as AuthorToolbarFilter,A as Avatar,O as ChannelFilter,a5 as ChannelSelector,Q as ChannelToolbarFilter,X as ClearAllFiltersButton,ap as ContactToolbarFilter,
|
|
1
|
+
export{a0 as AuthorFilter,$ as AuthorToolbarFilter,A as Avatar,O as ChannelFilter,a5 as ChannelSelector,Q as ChannelToolbarFilter,X as ClearAllFiltersButton,ap as ContactToolbarFilter,ad as EditorToolbarIndicators,aq as EventDatesToolbarFilter,E as EventDetail,a4 as EventView,s as EventsEditorDashboard,n as EventsGrid,o as EventsList,a1 as FilterSearch,ak as GroupNotificationsSettings,I as ItemLayoutMode,aa as ItemResourceTypes,ab as KeywordPicker,Y as KeywordsFilter,Z as KeywordsToolbarFilter,ar as LogicalOperator,M as ManageChannels,N as NewsDetail,G as NewsDetailPreview,a6 as NewsEditor,a7 as NewsEditorContextProvider,r as NewsEditorDashboard,af as NewsEditorPanel,ae as NewsEditorToolbarStateActions,l as NewsGrid,q as NewsHero,C as NewsItemContextProvider,H as NewsItemPreviewContextProvider,k as NewsList,i as PageDetail,a8 as PageViewTrackerSettingsContextProvider,as as PagesGrid,at as PagesList,j as PostDetail,aj as PostGroupSelector,am as PostGroupSelectorButton,ai as PostGroupsPicker,ag as PostInputBox,ah as PostList,h as PostListContextProvider,W as PublishingDateFilter,S as PublishingDateToolbarFilter,R as ReachContextProvider,ac as ReachDialog,a9 as TargetLinkOverrideContextProvider,t as Toolbar,x as ToolbarChannelSelector,B as ToolbarCloseButton,a3 as ToolbarEventViewSelector,K as ToolbarFilterModal,L as ToolbarFilterModalButton,J as ToolbarFilterPanel,a2 as ToolbarFilterSearch,an as ToolbarFilterToggleButton,v as ToolbarIconButton,F as ToolbarManageNewsItemButton,y as ToolbarMarkAllEventsAsReadButton,z as ToolbarMarkAllNewsAsReadButton,D as ToolbarNewsLanguageSelector,al as ToolbarPostNotificationButton,w as ToolbarUnreadItemsButton,U as UserDetails,V as VerticalFilterPanel,ao as isFilterActive,p as useCurrentUser}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";
|