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

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,43 +69,16 @@ declare type ReachContextProps = {
69
69
  };
70
70
  declare const ReachContextProvider: FC<ReachContextProps>;
71
71
 
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;
72
+ interface PaginatedList<TItem> {
73
+ items: TItem[];
74
+ paginationToken?: any;
75
+ nextItem?: TItem;
76
+ hasMoreUnreadComments?: boolean;
77
+ hasNextPage?: boolean;
96
78
  }
97
79
 
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"
80
+ interface Resources {
81
+ [language: string]: Record<string, string>;
109
82
  }
110
83
 
111
84
  interface BasicUserInformation {
@@ -127,27 +100,6 @@ interface Account extends BasicUserInformation {
127
100
  tenantId?: string;
128
101
  }
129
102
 
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
-
151
103
  interface UserChannelSubscription {
152
104
  id: string;
153
105
  name: string;
@@ -285,6 +237,14 @@ interface Keyword {
285
237
  };
286
238
  }
287
239
 
240
+ interface Channel {
241
+ id: string;
242
+ name: string;
243
+ translations?: {
244
+ [key: string]: string;
245
+ };
246
+ }
247
+
288
248
  declare enum ItemResourceTypes {
289
249
  News = "news",
290
250
  Pages = "pages",
@@ -453,39 +413,6 @@ declare enum FieldMode {
453
413
  Hidden = 3
454
414
  }
455
415
 
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
-
489
416
  interface ItemStatistics {
490
417
  commentCount?: number;
491
418
  likeCount?: number;
@@ -547,19 +474,6 @@ interface BaseItem {
547
474
  id?: string;
548
475
  statistics?: ItemStatistics;
549
476
  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;
563
477
  }
564
478
  interface Poll {
565
479
  questions: PollQuestion[];
@@ -569,14 +483,12 @@ interface PollQuestion extends PollQuestionSettings {
569
483
  choices: PollQuestionChoice[];
570
484
  }
571
485
  interface PollQuestionSettings {
572
- allowOtherAnswer?: boolean;
573
486
  isMultiChoice?: boolean;
574
487
  }
575
488
  interface PollQuestionChoice {
576
489
  choiceId: string;
577
490
  description?: string;
578
491
  disabled?: boolean;
579
- isOther?: boolean;
580
492
  }
581
493
 
582
494
  declare enum WorkflowStatus {
@@ -596,6 +508,7 @@ interface PublishableItemContent extends ContentDefinition {
596
508
  headline?: string;
597
509
  intro?: string;
598
510
  body?: string;
511
+ bodyRaw?: string;
599
512
  customProperties?: {
600
513
  [key: string]: any;
601
514
  };
@@ -675,6 +588,80 @@ interface ChoiceTranslations {
675
588
  text: string;
676
589
  }
677
590
 
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
+
678
665
  declare enum EventResponse {
679
666
  NotSet = 0,
680
667
  Registered = 1,
@@ -828,8 +815,6 @@ declare type KeywordsByGroupId = {
828
815
  [key: string]: Keyword[];
829
816
  };
830
817
 
831
- declare function useCurrentUser(): CurrentUser;
832
-
833
818
  interface SubscriptionData {
834
819
  channels?: Channel[];
835
820
  allKeywords?: Keyword[];
@@ -992,7 +977,6 @@ interface Props extends IPersonaProps {
992
977
  displayName?: string;
993
978
  forceShowSecondaryText?: boolean;
994
979
  className?: string;
995
- ignoreOverrides?: boolean;
996
980
  }
997
981
  declare const Avatar: FC<Props>;
998
982
 
@@ -1056,21 +1040,8 @@ declare enum LogicalOperator {
1056
1040
  And = "AND"
1057
1041
  }
1058
1042
 
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
- }
1071
1043
  interface Post extends BaseItem, ItemWithAttachments {
1072
1044
  id: string;
1073
- coverInfo?: CoverInfo;
1074
1045
  comments?: PaginatedList<Comment>;
1075
1046
  groupId: string;
1076
1047
  content: string;
package/index.esm.js CHANGED
@@ -1 +1 @@
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";
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";