@livetiles/reach-components-react 0.5.0-preview.455 → 0.5.0-preview.459
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/common/hero/Hero.d.ts +2 -3
- package/common/stream/useEventsStreamDataLoader.d.ts +5 -0
- package/common/stream/useNewsStreamDataLoader.d.ts +5 -0
- package/common/stream/usePagesStreamDataLoader.d.ts +3 -0
- package/common/stream/usePostsStreamDataLoader.d.ts +4 -0
- package/common/utils.d.ts +1 -5
- package/da.async.esm2.esm.js +1 -1
- package/da.async.esm3.esm.js +1 -0
- package/da.esm.js +1 -0
- package/index.d.ts +118 -2
- package/index.esm.js +1 -1
- package/index.esm2.js +13 -14
- package/index.umd.js +62 -63
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
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';
|
|
@@ -497,6 +498,19 @@ interface BaseItem {
|
|
|
497
498
|
id?: string;
|
|
498
499
|
statistics?: ItemStatistics;
|
|
499
500
|
poll?: Poll;
|
|
501
|
+
searchHighlights?: SearchHighlightSummary;
|
|
502
|
+
}
|
|
503
|
+
interface SearchHighlightSummary {
|
|
504
|
+
title: SearchHighlight[];
|
|
505
|
+
content: SearchHighlight[];
|
|
506
|
+
}
|
|
507
|
+
interface SearchHighlight {
|
|
508
|
+
language: string;
|
|
509
|
+
texts: {
|
|
510
|
+
value: string;
|
|
511
|
+
type: 'text' | 'hit';
|
|
512
|
+
}[];
|
|
513
|
+
score: number;
|
|
500
514
|
}
|
|
501
515
|
interface Poll {
|
|
502
516
|
questions: PollQuestion[];
|
|
@@ -531,7 +545,6 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
531
545
|
headline?: string;
|
|
532
546
|
intro?: string;
|
|
533
547
|
body?: string;
|
|
534
|
-
bodyRaw?: string;
|
|
535
548
|
customProperties?: {
|
|
536
549
|
[key: string]: any;
|
|
537
550
|
};
|
|
@@ -637,6 +650,18 @@ interface Attachment extends BaseAttachment {
|
|
|
637
650
|
type: AttachmentType;
|
|
638
651
|
}
|
|
639
652
|
|
|
653
|
+
declare enum GraphQLAttachmentType {
|
|
654
|
+
Image = "IMAGE",
|
|
655
|
+
File = "FILE",
|
|
656
|
+
YouTubeVideo = "YOU_TUBE_VIDEO",
|
|
657
|
+
VimeoVideo = "VIMEO_VIDEO",
|
|
658
|
+
News = "NEWS",
|
|
659
|
+
Event = "EVENT",
|
|
660
|
+
Page = "PAGE",
|
|
661
|
+
Post = "POST",
|
|
662
|
+
Giphy = "GIPHY"
|
|
663
|
+
}
|
|
664
|
+
|
|
640
665
|
interface ItemWithAttachments {
|
|
641
666
|
attachments?: Attachment[];
|
|
642
667
|
fileAccessToken?: string;
|
|
@@ -857,6 +882,12 @@ interface ToolbarSearchProps {
|
|
|
857
882
|
}
|
|
858
883
|
declare const Toolbar: FC<ToolbarProps>;
|
|
859
884
|
|
|
885
|
+
declare type TokenType = string | number;
|
|
886
|
+
|
|
887
|
+
interface ItemLoader<TItem, TTokenType extends TokenType> {
|
|
888
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
889
|
+
}
|
|
890
|
+
|
|
860
891
|
interface ToolbarChannelSelectorProps {
|
|
861
892
|
getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
|
|
862
893
|
allChannelsOption?: ToolbarChannelSelectorOption;
|
|
@@ -1055,6 +1086,83 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
1055
1086
|
pastEventsOnly?: boolean;
|
|
1056
1087
|
}
|
|
1057
1088
|
|
|
1089
|
+
declare enum StreamEventResponse {
|
|
1090
|
+
NotSet = "NOTSET",
|
|
1091
|
+
Registered = "REGISTERED",
|
|
1092
|
+
Declined = "DECLINED"
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare enum StreamItemTypes {
|
|
1096
|
+
Post = "POST",
|
|
1097
|
+
News = "NEWS",
|
|
1098
|
+
Event = "EVENT",
|
|
1099
|
+
Page = "PAGE"
|
|
1100
|
+
}
|
|
1101
|
+
declare enum StreamConversationScope {
|
|
1102
|
+
Public = "PUBLIC",
|
|
1103
|
+
Editor = "EDITOR",
|
|
1104
|
+
Posts = "POSTS"
|
|
1105
|
+
}
|
|
1106
|
+
interface PostStreamItem extends Post {
|
|
1107
|
+
type: StreamItemTypes.Post;
|
|
1108
|
+
isUnread: boolean;
|
|
1109
|
+
keywordsList?: Keyword[];
|
|
1110
|
+
groupIds?: string[];
|
|
1111
|
+
postAttachments?: StreamAttachment[];
|
|
1112
|
+
postComments?: PaginatedList<StreamPostComment>;
|
|
1113
|
+
hasMoreUnreadComments: boolean;
|
|
1114
|
+
}
|
|
1115
|
+
interface StreamPostComment extends Comment {
|
|
1116
|
+
postCommentAttachments?: StreamAttachment[];
|
|
1117
|
+
streamConversationScope?: StreamConversationScope;
|
|
1118
|
+
}
|
|
1119
|
+
interface StreamAttachment extends BaseAttachment {
|
|
1120
|
+
type: GraphQLAttachmentType;
|
|
1121
|
+
}
|
|
1122
|
+
interface NewsStreamItem extends NewsItem {
|
|
1123
|
+
type: StreamItemTypes.News;
|
|
1124
|
+
contentsList: StreamPublishableItemContents[];
|
|
1125
|
+
channelsList: string[];
|
|
1126
|
+
isUnread: boolean;
|
|
1127
|
+
keywordsList?: Keyword[];
|
|
1128
|
+
knownNewsState?: StreamKnownNewsState[];
|
|
1129
|
+
}
|
|
1130
|
+
declare enum StreamKnownNewsState {
|
|
1131
|
+
Unconfirmed = "UNCONFIRMED",
|
|
1132
|
+
Alert = "ALERT"
|
|
1133
|
+
}
|
|
1134
|
+
interface EventStreamItem extends EventItem {
|
|
1135
|
+
type: StreamItemTypes.Event;
|
|
1136
|
+
contentsList: StreamPublishableItemContents[];
|
|
1137
|
+
channelsList: string[];
|
|
1138
|
+
isUnread: boolean;
|
|
1139
|
+
keywordsList?: Keyword[];
|
|
1140
|
+
userResponseType?: StreamEventResponse;
|
|
1141
|
+
eventCancelInformation?: StreamEventCancelInformation;
|
|
1142
|
+
}
|
|
1143
|
+
interface PageStreamItem extends PageItem {
|
|
1144
|
+
type: StreamItemTypes.Page;
|
|
1145
|
+
contentsList: StreamPublishableItemContents[];
|
|
1146
|
+
channelsList: string[];
|
|
1147
|
+
isUnread: boolean;
|
|
1148
|
+
keywordsList?: Keyword[];
|
|
1149
|
+
streamPageType?: string;
|
|
1150
|
+
path?: (PageNavigationNode & {
|
|
1151
|
+
parentId?: string;
|
|
1152
|
+
})[];
|
|
1153
|
+
}
|
|
1154
|
+
interface StreamPublishableItemContents {
|
|
1155
|
+
language: string;
|
|
1156
|
+
title: string;
|
|
1157
|
+
intro?: string;
|
|
1158
|
+
headline?: string;
|
|
1159
|
+
}
|
|
1160
|
+
interface StreamEventCancelInformation extends EventCancelInformation {
|
|
1161
|
+
cancellationReasons?: {
|
|
1162
|
+
[key: string]: string;
|
|
1163
|
+
}[];
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1058
1166
|
interface TargetLinkOverrideContextProps {
|
|
1059
1167
|
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1060
1168
|
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
@@ -1488,4 +1596,12 @@ interface ErrorWrapperProps {
|
|
|
1488
1596
|
}
|
|
1489
1597
|
declare const ErrorWrapper: FC<ErrorWrapperProps>;
|
|
1490
1598
|
|
|
1491
|
-
|
|
1599
|
+
declare function usePagesStreamDataLoader(filter?: PageFilterDefinition, searchText?: string): ItemLoader<PageStreamItem, number>;
|
|
1600
|
+
|
|
1601
|
+
declare function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
|
|
1602
|
+
|
|
1603
|
+
declare function useNewsStreamDataLoader(filter?: LibNewsFilterDefinition, searchText?: string, includeAllItems?: boolean): ItemLoader<NewsStreamItem, number>;
|
|
1604
|
+
|
|
1605
|
+
declare function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string, view?: EventView): ItemLoader<EventStreamItem, number>;
|
|
1606
|
+
|
|
1607
|
+
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, 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, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, 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, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{aI as AuthorFilter,aH as AuthorToolbarFilter,aa as Avatar,aA as ChannelFilter,aN as ChannelSelector,aB as ChannelToolbarFilter,aE as ClearAllFiltersButton,b5 as ContactToolbarFilter,
|
|
1
|
+
export{aI as AuthorFilter,aH as AuthorToolbarFilter,aa as Avatar,aA as ChannelFilter,aN as ChannelSelector,aB as ChannelToolbarFilter,aE as ClearAllFiltersButton,b5 as ContactToolbarFilter,aV as EditorToolbarIndicators,bl as ErrorType,bk as ErrorWrapper,b6 as EventDatesToolbarFilter,$ as EventDetail,as as EventDetailPreview,bb as EventEditor,bc as EventEditorContextProvider,bd as EventEditorPanel,bf as EventEditorToolbarRecurringControls,be as EventEditorToolbarStateActions,an as EventItemContextProvider,av as EventItemPreviewContextProvider,aM as EventView,ad as EventsEditorDashboard,a4 as EventsGrid,a5 as EventsList,aJ as FilterSearch,b0 as GroupNotificationsSettings,a2 as ItemLayoutMode,aS as ItemResourceTypes,aT as KeywordPicker,aF as KeywordsFilter,aG as KeywordsToolbarFilter,b7 as LogicalOperator,a6 as ManageChannels,X as NewsDetail,aq as NewsDetailPreview,aO as NewsEditor,aP as NewsEditorContextProvider,ac as NewsEditorDashboard,aX as NewsEditorPanel,aW as NewsEditorToolbarStateActions,a3 as NewsGrid,ab as NewsHero,al as NewsItemContextProvider,at as NewsItemPreviewContextProvider,a1 as NewsList,Z as PageDetail,ar as PageDetailPreview,bh as PageEditor,bg as PageEditorContextProvider,bj as PageEditorPanel,bi as PageEditorToolbarStateActions,am as PageItemContextProvider,au as PageItemPreviewContextProvider,ba as PageType,aQ as PageViewTrackerSettingsContextProvider,b8 as PagesGrid,b9 as PagesList,a0 as PostDetail,a$ as PostGroupSelector,b2 as PostGroupSelectorButton,a_ as PostGroupsPicker,aY as PostInputBox,aZ as PostList,W as PostListContextProvider,aD as PublishingDateFilter,aC as PublishingDateToolbarFilter,V as ReachContextProvider,aU as ReachDialog,aR as TargetLinkOverrideContextProvider,ae as Toolbar,ah as ToolbarChannelSelector,ak as ToolbarCloseButton,aL as ToolbarEventViewSelector,ax as ToolbarFilterModal,ay as ToolbarFilterModalButton,aw as ToolbarFilterPanel,aK as ToolbarFilterSearch,b3 as ToolbarFilterToggleButton,af as ToolbarIconButton,ao as ToolbarLanguageSelector,ap as ToolbarManageNewsItemButton,ai as ToolbarMarkAllEventsAsReadButton,aj as ToolbarMarkAllNewsAsReadButton,ao as ToolbarNewsLanguageSelector,b1 as ToolbarPostNotificationButton,ag as ToolbarUnreadItemsButton,a9 as UserDetails,az as VerticalFilterPanel,b4 as isFilterActive,a7 as useCurrentUser,bo as useEventsStreamDataLoader,a8 as useLazySubscriptionContext,bp as useNewsStreamDataLoader,bm as usePagesStreamDataLoader,bn as usePostsStreamDataLoader}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";
|