@livetiles/reach-components-react 0.5.0-preview.1350 → 0.5.0-preview.1351
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/NewsHero.d.ts +6 -5
- package/PostListContextProvider.d.ts +12 -11
- package/common/hero/Hero.d.ts +9 -8
- package/common/hero/HeroSlide.d.ts +5 -2
- package/en.async.esm2.esm.js +1 -1
- package/index.d.ts +19 -6
- package/index.esm.js +1 -1
- package/index.esm2.js +48 -48
- package/index.umd.js +102 -102
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -506,6 +506,19 @@ interface BaseItem {
|
|
|
506
506
|
id?: string;
|
|
507
507
|
statistics?: ItemStatistics;
|
|
508
508
|
poll?: Poll;
|
|
509
|
+
searchHighlights?: SearchHighlightSummary;
|
|
510
|
+
}
|
|
511
|
+
interface SearchHighlightSummary {
|
|
512
|
+
title: SearchHighlight[];
|
|
513
|
+
content: SearchHighlight[];
|
|
514
|
+
}
|
|
515
|
+
interface SearchHighlight {
|
|
516
|
+
language: string;
|
|
517
|
+
texts: {
|
|
518
|
+
value: string;
|
|
519
|
+
type: 'text' | 'hit';
|
|
520
|
+
}[];
|
|
521
|
+
score: number;
|
|
509
522
|
}
|
|
510
523
|
interface Poll {
|
|
511
524
|
questions: PollQuestion[];
|
|
@@ -542,7 +555,6 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
542
555
|
headline?: string;
|
|
543
556
|
intro?: string;
|
|
544
557
|
body?: string;
|
|
545
|
-
bodyRaw?: string;
|
|
546
558
|
customProperties?: {
|
|
547
559
|
[key: string]: any;
|
|
548
560
|
};
|
|
@@ -1363,18 +1375,19 @@ interface NewsHeroFilterProps {
|
|
|
1363
1375
|
pageSize?: number;
|
|
1364
1376
|
}
|
|
1365
1377
|
interface NewsHeroProps {
|
|
1366
|
-
filter?: NewsHeroFilterProps;
|
|
1367
|
-
disableAutoplay?: boolean;
|
|
1368
1378
|
autoplayInterval?: number;
|
|
1369
|
-
|
|
1370
|
-
|
|
1379
|
+
disableAutoplay?: boolean;
|
|
1380
|
+
filter?: NewsHeroFilterProps;
|
|
1371
1381
|
height?: number | string;
|
|
1372
1382
|
includeAllItems?: boolean;
|
|
1383
|
+
isHighContrast?: boolean;
|
|
1373
1384
|
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1385
|
+
onItemClick?: (item: NewsItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
|
|
1374
1386
|
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1375
|
-
showKeywords?: boolean;
|
|
1376
1387
|
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1377
1388
|
pagingType?: HeroPagingType;
|
|
1389
|
+
showKeywords?: boolean;
|
|
1390
|
+
width?: number | string;
|
|
1378
1391
|
}
|
|
1379
1392
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1380
1393
|
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b3 as AuthorFilter,b2 as AuthorToolbarFilter,au as Avatar,aX as ChannelFilter,b8 as ChannelSelector,aY as ChannelToolbarFilter,a$ as ClearAllFiltersButton,bs as ContactToolbarFilter,
|
|
1
|
+
export{b3 as AuthorFilter,b2 as AuthorToolbarFilter,au as Avatar,aX as ChannelFilter,b8 as ChannelSelector,aY as ChannelToolbarFilter,a$ as ClearAllFiltersButton,bs as ContactToolbarFilter,bg as EditorToolbarIndicators,bI as ErrorType,bH as ErrorWrapper,bt as EventDatesToolbarFilter,aj as EventDetail,aP as EventDetailPreview,by as EventEditor,bz as EventEditorContextProvider,bA as EventEditorPanel,bC as EventEditorToolbarRecurringControls,bB as EventEditorToolbarStateActions,aI as EventItemContextProvider,aS as EventItemPreviewContextProvider,b7 as EventView,ax as EventsEditorDashboard,ao as EventsGrid,ap as EventsList,b4 as FilterSearch,bn as GroupNotificationsSettings,bN as HeroPagingType,am as ItemLayoutMode,bd as ItemResourceTypes,be as KeywordPicker,b0 as KeywordsFilter,b1 as KeywordsToolbarFilter,bu as LogicalOperator,aq as ManageChannels,ah as NewsDetail,aN as NewsDetailPreview,b9 as NewsEditor,ba as NewsEditorContextProvider,aw as NewsEditorDashboard,bi as NewsEditorPanel,bh as NewsEditorToolbarStateActions,an as NewsGrid,av as NewsHero,aG as NewsItemContextProvider,aQ as NewsItemPreviewContextProvider,al as NewsList,ai as PageDetail,aO as PageDetailPreview,bE as PageEditor,bD as PageEditorContextProvider,bG as PageEditorPanel,bF as PageEditorToolbarStateActions,aH as PageItemContextProvider,aR as PageItemPreviewContextProvider,bx as PageType,bb as PageViewTrackerSettingsContextProvider,bv as PagesGrid,bw as PagesList,ak as PostDetail,bm as PostGroupSelector,bp as PostGroupSelectorButton,bl as PostGroupsPicker,bj as PostInputBox,bk as PostList,ag as PostListContextProvider,a_ as PublishingDateFilter,aZ as PublishingDateToolbarFilter,af as ReachContextProvider,bf as ReachDialog,bc as TargetLinkOverrideContextProvider,ay as Toolbar,aB as ToolbarBookmarkButton,aC as ToolbarChannelSelector,aF as ToolbarCloseButton,b6 as ToolbarEventViewSelector,aU as ToolbarFilterModal,aV as ToolbarFilterModalButton,aT as ToolbarFilterPanel,b5 as ToolbarFilterSearch,bq as ToolbarFilterToggleButton,az as ToolbarIconButton,aJ as ToolbarLanguageSelector,aK as ToolbarManageButton,aM as ToolbarManageItemButton,aL as ToolbarManageNewsItemButton,aD as ToolbarMarkAllEventsAsReadButton,aE as ToolbarMarkAllNewsAsReadButton,aJ as ToolbarNewsLanguageSelector,bo as ToolbarPostNotificationButton,aA as ToolbarUnreadItemsButton,at as UserDetails,aW as VerticalFilterPanel,br as isFilterActive,ar as useCurrentUser,bL as useEventsStreamDataLoader,as as useLazySubscriptionContext,bM as useNewsStreamDataLoader,bJ as usePagesStreamDataLoader,bK as usePostsStreamDataLoader}from"./index.esm2.js";import"react/jsx-runtime";import"styled-components";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"events";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";
|