@livetiles/reach-components-react 0.5.0-preview.296 → 0.5.0-preview.298
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/AnalyticsDummyContextProvider.d.ts +2 -0
- package/EventDetail.d.ts +6 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/PageDetail.d.ts +6 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +1 -0
- package/ReachContext.d.ts +12 -0
- package/SharedItemDetailPreview.d.ts +16 -0
- package/ajs-destination-4IEK7JCF.esm.js +35 -0
- package/auto-track-PVC3RKAW.esm.js +1 -0
- package/chunk-IZB43MSE.esm.js +1 -0
- package/chunk-NYVNK6O3.esm.js +1 -0
- package/da.async.esm2.esm.js +1 -1
- package/da.async.esm3.esm.js +1 -0
- package/da.esm.js +1 -0
- package/en.async.esm.esm.js +1 -1
- package/index.d.ts +72 -39
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -32
- package/index.umd-EZCVDQQZ.esm.js +1 -0
- package/index.umd.js +56 -36
- package/legacy-video-plugins-DALJOR7Y.esm.js +1 -0
- package/middleware-K6A3D7OK.esm.js +1 -0
- package/package.json +1 -1
- package/query-string-LUA3AQWQ.esm.js +1 -0
- package/remote-middleware-C2NOE7LS.esm.js +1 -0
- package/schema-filter-7TQKEETH.esm.js +1 -0
- package/NewsDetailPreview.d.ts +0 -7
package/index.d.ts
CHANGED
|
@@ -13,6 +13,18 @@ declare type ReachContextProps = {
|
|
|
13
13
|
subscriptionId: string;
|
|
14
14
|
language?: string;
|
|
15
15
|
disableUiFabricThemeOverwrite?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* These properties can be used to define the behavior of the analytics module.
|
|
18
|
+
*
|
|
19
|
+
* With `disableAnalytics` you can completely disable all analytics tracking.
|
|
20
|
+
* The `appName` is optional but highly encouraged to be set,
|
|
21
|
+
* in order to know where the components are used in. The value must be a non-empty string,
|
|
22
|
+
* only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
|
|
23
|
+
*/
|
|
24
|
+
analyticsProps?: {
|
|
25
|
+
disableAnalytics?: boolean;
|
|
26
|
+
appName?: string;
|
|
27
|
+
};
|
|
16
28
|
};
|
|
17
29
|
declare const ReachContextProvider: FC<ReachContextProps>;
|
|
18
30
|
|
|
@@ -452,11 +464,6 @@ interface NewsItem extends SchedulableItem {
|
|
|
452
464
|
knownState: KnownNewsState;
|
|
453
465
|
hasNewComments?: boolean;
|
|
454
466
|
isLiked?: boolean;
|
|
455
|
-
shareToken?: ShareToken;
|
|
456
|
-
}
|
|
457
|
-
interface ShareToken {
|
|
458
|
-
published?: string;
|
|
459
|
-
preview?: string;
|
|
460
467
|
}
|
|
461
468
|
interface NewsItemAlertOptions {
|
|
462
469
|
duration?: string;
|
|
@@ -479,6 +486,19 @@ interface BaseItem {
|
|
|
479
486
|
id?: string;
|
|
480
487
|
statistics?: ItemStatistics;
|
|
481
488
|
poll?: Poll;
|
|
489
|
+
searchHighlights?: SearchHighlightSummary;
|
|
490
|
+
}
|
|
491
|
+
interface SearchHighlightSummary {
|
|
492
|
+
title: SearchHighlight[];
|
|
493
|
+
content: SearchHighlight[];
|
|
494
|
+
}
|
|
495
|
+
interface SearchHighlight {
|
|
496
|
+
language: string;
|
|
497
|
+
texts: {
|
|
498
|
+
value: string;
|
|
499
|
+
type: 'text' | 'hit';
|
|
500
|
+
}[];
|
|
501
|
+
score: number;
|
|
482
502
|
}
|
|
483
503
|
interface Poll {
|
|
484
504
|
questions: PollQuestion[];
|
|
@@ -513,7 +533,6 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
513
533
|
headline?: string;
|
|
514
534
|
intro?: string;
|
|
515
535
|
body?: string;
|
|
516
|
-
bodyRaw?: string;
|
|
517
536
|
customProperties?: {
|
|
518
537
|
[key: string]: any;
|
|
519
538
|
};
|
|
@@ -970,11 +989,31 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
970
989
|
includeExpired?: boolean;
|
|
971
990
|
}
|
|
972
991
|
|
|
973
|
-
interface
|
|
974
|
-
|
|
975
|
-
|
|
992
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
993
|
+
id: string;
|
|
994
|
+
comments?: PaginatedList<Comment>;
|
|
995
|
+
groupId: string;
|
|
996
|
+
content: string;
|
|
997
|
+
permalink?: string;
|
|
998
|
+
author: Account;
|
|
999
|
+
publishingDate: string;
|
|
1000
|
+
modified?: string;
|
|
1001
|
+
statistics: ItemStatistics;
|
|
1002
|
+
keywords?: {
|
|
1003
|
+
[key: string]: Keyword[];
|
|
1004
|
+
};
|
|
1005
|
+
contentLanguageCode?: string;
|
|
1006
|
+
isLiked?: boolean;
|
|
1007
|
+
isUnread?: boolean;
|
|
1008
|
+
isDemoContent?: boolean;
|
|
1009
|
+
isFollowing?: boolean;
|
|
976
1010
|
}
|
|
977
|
-
|
|
1011
|
+
interface PostFilterDefinition {
|
|
1012
|
+
token?: string;
|
|
1013
|
+
pageSize?: string;
|
|
1014
|
+
search?: string;
|
|
1015
|
+
keywords?: FilterWithLogicalOperator;
|
|
1016
|
+
}
|
|
978
1017
|
|
|
979
1018
|
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
980
1019
|
contacts?: string[];
|
|
@@ -990,6 +1029,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
990
1029
|
pastEventsOnly?: boolean;
|
|
991
1030
|
}
|
|
992
1031
|
|
|
1032
|
+
interface TargetLinkOverrideContextProps {
|
|
1033
|
+
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1034
|
+
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1035
|
+
}
|
|
1036
|
+
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
1037
|
+
|
|
993
1038
|
interface KeywordPickerProps {
|
|
994
1039
|
value?: Keyword[] | string[];
|
|
995
1040
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -1010,32 +1055,6 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
1010
1055
|
pageType?: PageType;
|
|
1011
1056
|
}
|
|
1012
1057
|
|
|
1013
|
-
interface Post extends BaseItem, ItemWithAttachments {
|
|
1014
|
-
id: string;
|
|
1015
|
-
comments?: PaginatedList<Comment>;
|
|
1016
|
-
groupId: string;
|
|
1017
|
-
content: string;
|
|
1018
|
-
permalink?: string;
|
|
1019
|
-
author: Account;
|
|
1020
|
-
publishingDate: string;
|
|
1021
|
-
modified?: string;
|
|
1022
|
-
statistics: ItemStatistics;
|
|
1023
|
-
keywords?: {
|
|
1024
|
-
[key: string]: Keyword[];
|
|
1025
|
-
};
|
|
1026
|
-
contentLanguageCode?: string;
|
|
1027
|
-
isLiked?: boolean;
|
|
1028
|
-
isUnread?: boolean;
|
|
1029
|
-
isDemoContent?: boolean;
|
|
1030
|
-
isFollowing?: boolean;
|
|
1031
|
-
}
|
|
1032
|
-
interface PostFilterDefinition {
|
|
1033
|
-
token?: string;
|
|
1034
|
-
pageSize?: string;
|
|
1035
|
-
search?: string;
|
|
1036
|
-
keywords?: FilterWithLogicalOperator;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
1058
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1040
1059
|
}
|
|
1041
1060
|
|
|
@@ -1185,18 +1204,32 @@ declare const ToolbarManageNewsItemButton: FC<{
|
|
|
1185
1204
|
onClick?: (itemId: string) => unknown;
|
|
1186
1205
|
}>;
|
|
1187
1206
|
|
|
1188
|
-
interface
|
|
1207
|
+
interface SharedItemDetailPreviewProps {
|
|
1189
1208
|
itemId?: string;
|
|
1190
1209
|
versionId?: string;
|
|
1191
1210
|
className?: string;
|
|
1211
|
+
hideLikes?: boolean;
|
|
1212
|
+
hideComments?: boolean;
|
|
1192
1213
|
}
|
|
1193
|
-
declare const NewsDetailPreview: FC<
|
|
1214
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1215
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1216
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1194
1217
|
|
|
1195
1218
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1196
1219
|
itemId: string;
|
|
1197
1220
|
versionId?: string;
|
|
1198
1221
|
}>;
|
|
1199
1222
|
|
|
1223
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1224
|
+
itemId: string;
|
|
1225
|
+
versionId?: string;
|
|
1226
|
+
}>;
|
|
1227
|
+
|
|
1228
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1229
|
+
itemId: string;
|
|
1230
|
+
versionId?: string;
|
|
1231
|
+
}>;
|
|
1232
|
+
|
|
1200
1233
|
interface FilterProps {
|
|
1201
1234
|
filter: IndexableFilterDefinition;
|
|
1202
1235
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1421,4 +1454,4 @@ interface PageEditorPanelProps {
|
|
|
1421
1454
|
}
|
|
1422
1455
|
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1423
1456
|
|
|
1424
|
-
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, EventItemContextProvider, 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,
|
|
1457
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, 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, 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 };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{aG as AuthorFilter,aF as AuthorToolbarFilter,a8 as Avatar,ay as ChannelFilter,aL as ChannelSelector,az as ChannelToolbarFilter,aC as ClearAllFiltersButton,b3 as ContactToolbarFilter,aT as EditorToolbarIndicators,b4 as EventDatesToolbarFilter,Y as EventDetail,aq as EventDetailPreview,b9 as EventEditor,ba as EventEditorContextProvider,bb as EventEditorPanel,bd as EventEditorToolbarRecurringControls,bc as EventEditorToolbarStateActions,al as EventItemContextProvider,at as EventItemPreviewContextProvider,aK as EventView,ab as EventsEditorDashboard,a3 as EventsGrid,a4 as EventsList,aH as FilterSearch,a_ as GroupNotificationsSettings,a1 as ItemLayoutMode,aQ as ItemResourceTypes,aR as KeywordPicker,aD as KeywordsFilter,aE as KeywordsToolbarFilter,b5 as LogicalOperator,a5 as ManageChannels,V as NewsDetail,ao as NewsDetailPreview,aM as NewsEditor,aN as NewsEditorContextProvider,aa as NewsEditorDashboard,aV as NewsEditorPanel,aU as NewsEditorToolbarStateActions,a2 as NewsGrid,a9 as NewsHero,aj as NewsItemContextProvider,ar as NewsItemPreviewContextProvider,a0 as NewsList,X as PageDetail,ap as PageDetailPreview,bf as PageEditor,be as PageEditorContextProvider,bh as PageEditorPanel,bg as PageEditorToolbarStateActions,ak as PageItemContextProvider,as as PageItemPreviewContextProvider,b8 as PageType,aO as PageViewTrackerSettingsContextProvider,b6 as PagesGrid,b7 as PagesList,Z as PostDetail,aZ as PostGroupSelector,b0 as PostGroupSelectorButton,aY as PostGroupsPicker,aW as PostInputBox,aX as PostList,U as PostListContextProvider,aB as PublishingDateFilter,aA as PublishingDateToolbarFilter,S as ReachContextProvider,aS as ReachDialog,aP as TargetLinkOverrideContextProvider,ac as Toolbar,af as ToolbarChannelSelector,ai as ToolbarCloseButton,aJ as ToolbarEventViewSelector,av as ToolbarFilterModal,aw as ToolbarFilterModalButton,au as ToolbarFilterPanel,aI as ToolbarFilterSearch,b1 as ToolbarFilterToggleButton,ad as ToolbarIconButton,am as ToolbarLanguageSelector,an as ToolbarManageNewsItemButton,ag as ToolbarMarkAllEventsAsReadButton,ah as ToolbarMarkAllNewsAsReadButton,am as ToolbarNewsLanguageSelector,a$ as ToolbarPostNotificationButton,ae as ToolbarUnreadItemsButton,a7 as UserDetails,ax as VerticalFilterPanel,b2 as isFilterActive,a6 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";
|