@livetiles/reach-components-react 0.5.0-preview.302 → 0.5.0-preview.304

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/index.d.ts CHANGED
@@ -13,18 +13,6 @@ 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
- };
28
16
  };
29
17
  declare const ReachContextProvider: FC<ReachContextProps>;
30
18
 
@@ -486,19 +474,6 @@ interface BaseItem {
486
474
  id?: string;
487
475
  statistics?: ItemStatistics;
488
476
  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;
502
477
  }
503
478
  interface Poll {
504
479
  questions: PollQuestion[];
@@ -533,6 +508,7 @@ interface PublishableItemContent extends ContentDefinition {
533
508
  headline?: string;
534
509
  intro?: string;
535
510
  body?: string;
511
+ bodyRaw?: string;
536
512
  customProperties?: {
537
513
  [key: string]: any;
538
514
  };
@@ -989,31 +965,11 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
989
965
  includeExpired?: boolean;
990
966
  }
991
967
 
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;
968
+ interface TargetLinkOverrideContextProps {
969
+ onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
970
+ onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
1010
971
  }
1011
- interface PostFilterDefinition {
1012
- token?: string;
1013
- pageSize?: string;
1014
- search?: string;
1015
- keywords?: FilterWithLogicalOperator;
1016
- }
972
+ declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1017
973
 
1018
974
  interface EventContactsFilterDefinition extends IndexableFilterDefinition {
1019
975
  contacts?: string[];
@@ -1029,12 +985,6 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
1029
985
  pastEventsOnly?: boolean;
1030
986
  }
1031
987
 
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
-
1038
988
  interface KeywordPickerProps {
1039
989
  value?: Keyword[] | string[];
1040
990
  onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
@@ -1055,6 +1005,32 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
1055
1005
  pageType?: PageType;
1056
1006
  }
1057
1007
 
1008
+ interface Post extends BaseItem, ItemWithAttachments {
1009
+ id: string;
1010
+ comments?: PaginatedList<Comment>;
1011
+ groupId: string;
1012
+ content: string;
1013
+ permalink?: string;
1014
+ author: Account;
1015
+ publishingDate: string;
1016
+ modified?: string;
1017
+ statistics: ItemStatistics;
1018
+ keywords?: {
1019
+ [key: string]: Keyword[];
1020
+ };
1021
+ contentLanguageCode?: string;
1022
+ isLiked?: boolean;
1023
+ isUnread?: boolean;
1024
+ isDemoContent?: boolean;
1025
+ isFollowing?: boolean;
1026
+ }
1027
+ interface PostFilterDefinition {
1028
+ token?: string;
1029
+ pageSize?: string;
1030
+ search?: string;
1031
+ keywords?: FilterWithLogicalOperator;
1032
+ }
1033
+
1058
1034
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1059
1035
  }
1060
1036
 
package/index.esm.js CHANGED
@@ -1 +1 @@
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";
1
+ export{ah as AuthorFilter,ag as AuthorToolbarFilter,C as Avatar,a9 as ChannelFilter,am as ChannelSelector,aa as ChannelToolbarFilter,ad as ClearAllFiltersButton,aG as ContactToolbarFilter,aw as EditorToolbarIndicators,aH as EventDatesToolbarFilter,E as EventDetail,a1 as EventDetailPreview,aM as EventEditor,aN as EventEditorContextProvider,aO as EventEditorPanel,aQ as EventEditorToolbarRecurringControls,aP as EventEditorToolbarStateActions,X as EventItemContextProvider,a4 as EventItemPreviewContextProvider,al as EventView,G as EventsEditorDashboard,z as EventsGrid,A as EventsList,ai as FilterSearch,aB as GroupNotificationsSettings,I as ItemLayoutMode,ar as ItemResourceTypes,au as KeywordPicker,ae as KeywordsFilter,af as KeywordsToolbarFilter,aI as LogicalOperator,M as ManageChannels,N as NewsDetail,$ as NewsDetailPreview,an as NewsEditor,ao as NewsEditorContextProvider,F as NewsEditorDashboard,at as NewsEditorPanel,as as NewsEditorToolbarStateActions,y as NewsGrid,D as NewsHero,V as NewsItemContextProvider,a2 as NewsItemPreviewContextProvider,x as NewsList,v as PageDetail,a0 as PageDetailPreview,aS as PageEditor,aR as PageEditorContextProvider,aU as PageEditorPanel,aT as PageEditorToolbarStateActions,W as PageItemContextProvider,a3 as PageItemPreviewContextProvider,aL as PageType,ap as PageViewTrackerSettingsContextProvider,aJ as PagesGrid,aK as PagesList,w as PostDetail,aA as PostGroupSelector,aD as PostGroupSelectorButton,az as PostGroupsPicker,ax as PostInputBox,ay as PostList,t as PostListContextProvider,ac as PublishingDateFilter,ab as PublishingDateToolbarFilter,R as ReachContextProvider,av as ReachDialog,aq as TargetLinkOverrideContextProvider,H as Toolbar,L as ToolbarChannelSelector,S as ToolbarCloseButton,ak as ToolbarEventViewSelector,a6 as ToolbarFilterModal,a7 as ToolbarFilterModalButton,a5 as ToolbarFilterPanel,aj as ToolbarFilterSearch,aE as ToolbarFilterToggleButton,J as ToolbarIconButton,Y as ToolbarLanguageSelector,Z as ToolbarManageNewsItemButton,O as ToolbarMarkAllEventsAsReadButton,Q as ToolbarMarkAllNewsAsReadButton,Y as ToolbarNewsLanguageSelector,aC as ToolbarPostNotificationButton,K as ToolbarUnreadItemsButton,U as UserDetails,a8 as VerticalFilterPanel,aF as isFilterActive,B 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";