@livetiles/reach-components-react 0.5.0-preview.1221 → 0.5.0-preview.1223

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
@@ -69,16 +69,43 @@ declare type ReachContextProps = {
69
69
  };
70
70
  declare const ReachContextProvider: FC<ReachContextProps>;
71
71
 
72
- interface PaginatedList<TItem> {
73
- items: TItem[];
74
- paginationToken?: any;
75
- nextItem?: TItem;
76
- hasMoreUnreadComments?: boolean;
77
- hasNextPage?: boolean;
72
+ declare enum AttachmentType {
73
+ Image = 0,
74
+ File = 1,
75
+ YouTubeVideo = 2,
76
+ VimeoVideo = 3,
77
+ News = 4,
78
+ Event = 5,
79
+ Page = 6,
80
+ Post = 7,
81
+ Giphy = 8,
82
+ MicrosoftStreamVideo = 9
83
+ }
84
+ interface BaseAttachment {
85
+ id: string;
86
+ filename?: string;
87
+ previewUrl?: string;
88
+ url?: string;
89
+ isUploadInProgress?: boolean;
90
+ hasError?: boolean;
91
+ width?: number;
92
+ height?: number;
93
+ }
94
+ interface Attachment extends BaseAttachment {
95
+ type: AttachmentType;
78
96
  }
79
97
 
80
- interface Resources {
81
- [language: string]: Record<string, string>;
98
+ declare enum GraphQLAttachmentType {
99
+ Image = "IMAGE",
100
+ File = "FILE",
101
+ YouTubeVideo = "YOU_TUBE_VIDEO",
102
+ VimeoVideo = "VIMEO_VIDEO",
103
+ News = "NEWS",
104
+ Event = "EVENT",
105
+ Page = "PAGE",
106
+ Post = "POST",
107
+ Giphy = "GIPHY",
108
+ MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
82
109
  }
83
110
 
84
111
  interface BasicUserInformation {
@@ -100,6 +127,27 @@ interface Account extends BasicUserInformation {
100
127
  tenantId?: string;
101
128
  }
102
129
 
130
+ interface PaginatedList<TItem> {
131
+ hasMoreUnreadComments?: boolean;
132
+ hasNextPage?: boolean;
133
+ items: TItem[];
134
+ nextItem?: TItem;
135
+ paginationToken?: any;
136
+ totalCount?: number;
137
+ }
138
+
139
+ interface Channel {
140
+ id: string;
141
+ name: string;
142
+ translations?: {
143
+ [key: string]: string;
144
+ };
145
+ }
146
+
147
+ interface Resources {
148
+ [language: string]: Record<string, string>;
149
+ }
150
+
103
151
  interface UserChannelSubscription {
104
152
  id: string;
105
153
  name: string;
@@ -237,14 +285,6 @@ interface Keyword {
237
285
  };
238
286
  }
239
287
 
240
- interface Channel {
241
- id: string;
242
- name: string;
243
- translations?: {
244
- [key: string]: string;
245
- };
246
- }
247
-
248
288
  declare enum ItemResourceTypes {
249
289
  News = "news",
250
290
  Pages = "pages",
@@ -413,6 +453,39 @@ declare enum FieldMode {
413
453
  Hidden = 3
414
454
  }
415
455
 
456
+ interface ItemWithAttachments {
457
+ attachments?: Attachment[];
458
+ fileAccessToken?: string;
459
+ attachmentContainerId?: string;
460
+ }
461
+
462
+ interface Comment extends ItemWithAttachments {
463
+ id: string;
464
+ parentItemId: string;
465
+ content: string;
466
+ formattedContent?: string;
467
+ contentLanguageCode?: string;
468
+ receivedDateTime: string;
469
+ sender: Account;
470
+ conversationScope: ConversationScope;
471
+ modified?: string;
472
+ statistics?: CommentStatistics;
473
+ isLiked?: boolean;
474
+ threadId?: string;
475
+ isUnread?: boolean;
476
+ hasUnreadReplies?: boolean;
477
+ isDemoContent?: boolean;
478
+ }
479
+ interface CommentStatistics {
480
+ likeCount?: number;
481
+ replyCount?: number;
482
+ }
483
+ declare enum ConversationScope {
484
+ Public = 0,
485
+ Editor = 1,
486
+ Posts = 2
487
+ }
488
+
416
489
  interface ItemStatistics {
417
490
  commentCount?: number;
418
491
  likeCount?: number;
@@ -474,6 +547,19 @@ interface BaseItem {
474
547
  id?: string;
475
548
  statistics?: ItemStatistics;
476
549
  poll?: Poll;
550
+ searchHighlights?: SearchHighlightSummary;
551
+ }
552
+ interface SearchHighlightSummary {
553
+ title: SearchHighlight[];
554
+ content: SearchHighlight[];
555
+ }
556
+ interface SearchHighlight {
557
+ language: string;
558
+ texts: {
559
+ value: string;
560
+ type: 'text' | 'hit';
561
+ }[];
562
+ score: number;
477
563
  }
478
564
  interface Poll {
479
565
  questions: PollQuestion[];
@@ -483,12 +569,14 @@ interface PollQuestion extends PollQuestionSettings {
483
569
  choices: PollQuestionChoice[];
484
570
  }
485
571
  interface PollQuestionSettings {
572
+ allowOtherAnswer?: boolean;
486
573
  isMultiChoice?: boolean;
487
574
  }
488
575
  interface PollQuestionChoice {
489
576
  choiceId: string;
490
577
  description?: string;
491
578
  disabled?: boolean;
579
+ isOther?: boolean;
492
580
  }
493
581
 
494
582
  declare enum WorkflowStatus {
@@ -508,7 +596,6 @@ interface PublishableItemContent extends ContentDefinition {
508
596
  headline?: string;
509
597
  intro?: string;
510
598
  body?: string;
511
- bodyRaw?: string;
512
599
  customProperties?: {
513
600
  [key: string]: any;
514
601
  };
@@ -588,80 +675,6 @@ interface ChoiceTranslations {
588
675
  text: string;
589
676
  }
590
677
 
591
- declare function useCurrentUser(): CurrentUser;
592
-
593
- declare enum AttachmentType {
594
- Image = 0,
595
- File = 1,
596
- YouTubeVideo = 2,
597
- VimeoVideo = 3,
598
- News = 4,
599
- Event = 5,
600
- Page = 6,
601
- Post = 7,
602
- Giphy = 8,
603
- MicrosoftStreamVideo = 9
604
- }
605
- interface BaseAttachment {
606
- id: string;
607
- filename?: string;
608
- previewUrl?: string;
609
- url?: string;
610
- isUploadInProgress?: boolean;
611
- hasError?: boolean;
612
- width?: number;
613
- height?: number;
614
- }
615
- interface Attachment extends BaseAttachment {
616
- type: AttachmentType;
617
- }
618
-
619
- declare enum GraphQLAttachmentType {
620
- Image = "IMAGE",
621
- File = "FILE",
622
- YouTubeVideo = "YOU_TUBE_VIDEO",
623
- VimeoVideo = "VIMEO_VIDEO",
624
- News = "NEWS",
625
- Event = "EVENT",
626
- Page = "PAGE",
627
- Post = "POST",
628
- Giphy = "GIPHY",
629
- MicrosoftStreamVideo = "MICROSOFT_STREAM_VIDEO"
630
- }
631
-
632
- interface ItemWithAttachments {
633
- attachments?: Attachment[];
634
- fileAccessToken?: string;
635
- attachmentContainerId?: string;
636
- }
637
-
638
- interface Comment extends ItemWithAttachments {
639
- id: string;
640
- parentItemId: string;
641
- content: string;
642
- formattedContent?: string;
643
- contentLanguageCode?: string;
644
- receivedDateTime: string;
645
- sender: Account;
646
- conversationScope: ConversationScope;
647
- modified?: string;
648
- statistics?: CommentStatistics;
649
- isLiked?: boolean;
650
- threadId?: string;
651
- isUnread?: boolean;
652
- hasUnreadReplies?: boolean;
653
- isDemoContent?: boolean;
654
- }
655
- interface CommentStatistics {
656
- likeCount?: number;
657
- replyCount?: number;
658
- }
659
- declare enum ConversationScope {
660
- Public = 0,
661
- Editor = 1,
662
- Posts = 2
663
- }
664
-
665
678
  declare enum EventResponse {
666
679
  NotSet = 0,
667
680
  Registered = 1,
@@ -815,6 +828,8 @@ declare type KeywordsByGroupId = {
815
828
  [key: string]: Keyword[];
816
829
  };
817
830
 
831
+ declare function useCurrentUser(): CurrentUser;
832
+
818
833
  interface SubscriptionData {
819
834
  channels?: Channel[];
820
835
  allKeywords?: Keyword[];
@@ -977,6 +992,7 @@ interface Props extends IPersonaProps {
977
992
  displayName?: string;
978
993
  forceShowSecondaryText?: boolean;
979
994
  className?: string;
995
+ ignoreOverrides?: boolean;
980
996
  }
981
997
  declare const Avatar: FC<Props>;
982
998
 
@@ -1040,8 +1056,21 @@ declare enum LogicalOperator {
1040
1056
  And = "AND"
1041
1057
  }
1042
1058
 
1059
+ declare enum CoverType {
1060
+ Image = 0,
1061
+ Video = 1
1062
+ }
1063
+ interface CoverInfo {
1064
+ cropData?: {
1065
+ leftPct: number;
1066
+ topPct: number;
1067
+ };
1068
+ id: string;
1069
+ type: CoverType;
1070
+ }
1043
1071
  interface Post extends BaseItem, ItemWithAttachments {
1044
1072
  id: string;
1073
+ coverInfo?: CoverInfo;
1045
1074
  comments?: PaginatedList<Comment>;
1046
1075
  groupId: string;
1047
1076
  content: string;
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,bi 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,bg 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,bf as NewsEditorPanel,be 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,bh 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"office-ui-fabric-react";import"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";
1
+ export{b7 as AuthorFilter,b6 as AuthorToolbarFilter,ay as Avatar,a$ as ChannelFilter,bc as ChannelSelector,b0 as ChannelToolbarFilter,b3 as ClearAllFiltersButton,bw as ContactToolbarFilter,bk as EditorToolbarIndicators,bM as ErrorType,bL as ErrorWrapper,bx as EventDatesToolbarFilter,an as EventDetail,aT as EventDetailPreview,bC as EventEditor,bD as EventEditorContextProvider,bE as EventEditorPanel,bG as EventEditorToolbarRecurringControls,bF as EventEditorToolbarStateActions,aM as EventItemContextProvider,aW as EventItemPreviewContextProvider,bb as EventView,aB as EventsEditorDashboard,as as EventsGrid,at as EventsList,b8 as FilterSearch,br as GroupNotificationsSettings,bR as HeroPagingType,aq as ItemLayoutMode,bh as ItemResourceTypes,bi as KeywordPicker,b4 as KeywordsFilter,b5 as KeywordsToolbarFilter,by as LogicalOperator,au as ManageChannels,al as NewsDetail,aR as NewsDetailPreview,bd as NewsEditor,be as NewsEditorContextProvider,aA as NewsEditorDashboard,bm as NewsEditorPanel,bl as NewsEditorToolbarStateActions,ar as NewsGrid,az as NewsHero,aK as NewsItemContextProvider,aU as NewsItemPreviewContextProvider,ap as NewsList,am as PageDetail,aS as PageDetailPreview,bI as PageEditor,bH as PageEditorContextProvider,bK as PageEditorPanel,bJ as PageEditorToolbarStateActions,aL as PageItemContextProvider,aV as PageItemPreviewContextProvider,bB as PageType,bf as PageViewTrackerSettingsContextProvider,bz as PagesGrid,bA as PagesList,ao as PostDetail,bq as PostGroupSelector,bt as PostGroupSelectorButton,bp as PostGroupsPicker,bn as PostInputBox,bo as PostList,ak as PostListContextProvider,b2 as PublishingDateFilter,b1 as PublishingDateToolbarFilter,aj as ReachContextProvider,bj as ReachDialog,bg as TargetLinkOverrideContextProvider,aC as Toolbar,aF as ToolbarBookmarkButton,aG as ToolbarChannelSelector,aJ as ToolbarCloseButton,ba as ToolbarEventViewSelector,aY as ToolbarFilterModal,aZ as ToolbarFilterModalButton,aX as ToolbarFilterPanel,b9 as ToolbarFilterSearch,bu as ToolbarFilterToggleButton,aD as ToolbarIconButton,aN as ToolbarLanguageSelector,aO as ToolbarManageButton,aQ as ToolbarManageItemButton,aP as ToolbarManageNewsItemButton,aH as ToolbarMarkAllEventsAsReadButton,aI as ToolbarMarkAllNewsAsReadButton,aN as ToolbarNewsLanguageSelector,bs as ToolbarPostNotificationButton,aE as ToolbarUnreadItemsButton,ax as UserDetails,a_ as VerticalFilterPanel,bv as isFilterActive,av as useCurrentUser,bP as useEventsStreamDataLoader,aw as useLazySubscriptionContext,bQ as useNewsStreamDataLoader,bN as usePagesStreamDataLoader,bO as usePostsStreamDataLoader}from"./index.esm2.js";import"react/jsx-runtime";import"styled-components";import"office-ui-fabric-react";import"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";