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

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.
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{P as r}from"./emoji.esm.js";import{h as e}from"./index.esm2.js";import"react";import"styled-components";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";var t=function(t){var i=t.onSelect;return o(r,{native:!0,onSelect:i,color:"var(--text-color-default)",perLine:9,showPreview:!1,showSkinTones:!1,theme:"light",style:{width:"100%"},autoFocus:!e.isAnyMobileApp},void 0)};export{t as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{P as e}from"./emoji.esm.js";import{h as o}from"./index.esm2.js";import"react";import"styled-components";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";var t=function(t){var i=t.onSelect;return r(e,{native:!0,onSelect:i,color:"var(--text-color-default)",perLine:9,showPreview:!1,showSkinTones:!1,theme:"light",style:{width:"100%"},autoFocus:!o.isAnyMobileApp})};export{t as default};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useContext as e}from"react";import{L as r,v as i,w as o}from"./index.esm2.js";import{P as m}from"./emoji.esm.js";import"styled-components";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";var c=function(c){var a=c.onSelect,s=e(r).theme.palette,n=i();return t(m,{color:s.accent,set:null,native:!0,onSelect:a,emoji:"v",title:"",perLine:n.width<o.small?8:10},void 0)};export{c as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{useContext as e}from"react";import{L as r,v as i,w as o}from"./index.esm2.js";import{P as m}from"./emoji.esm.js";import"styled-components";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";var c=function(c){var a=c.onSelect,s=e(r).theme.palette,n=i();return t(m,{color:s.accent,set:null,native:!0,onSelect:a,emoji:"v",title:"",perLine:n.width<o.small?8:10})};export{c as default};
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;
@@ -588,80 +661,6 @@ interface ChoiceTranslations {
588
661
  text: string;
589
662
  }
590
663
 
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
664
  declare enum EventResponse {
666
665
  NotSet = 0,
667
666
  Registered = 1,
@@ -815,6 +814,8 @@ declare type KeywordsByGroupId = {
815
814
  [key: string]: Keyword[];
816
815
  };
817
816
 
817
+ declare function useCurrentUser(): CurrentUser;
818
+
818
819
  interface SubscriptionData {
819
820
  channels?: Channel[];
820
821
  allKeywords?: Keyword[];
@@ -977,6 +978,7 @@ interface Props extends IPersonaProps {
977
978
  displayName?: string;
978
979
  forceShowSecondaryText?: boolean;
979
980
  className?: string;
981
+ ignoreOverrides?: boolean;
980
982
  }
981
983
  declare const Avatar: FC<Props>;
982
984
 
@@ -1040,8 +1042,21 @@ declare enum LogicalOperator {
1040
1042
  And = "AND"
1041
1043
  }
1042
1044
 
1045
+ declare enum CoverType {
1046
+ Image = 0,
1047
+ Video = 1
1048
+ }
1049
+ interface CoverInfo {
1050
+ cropData?: {
1051
+ leftPct: number;
1052
+ topPct: number;
1053
+ };
1054
+ id: string;
1055
+ type: CoverType;
1056
+ }
1043
1057
  interface Post extends BaseItem, ItemWithAttachments {
1044
1058
  id: string;
1059
+ coverInfo?: CoverInfo;
1045
1060
  comments?: PaginatedList<Comment>;
1046
1061
  groupId: string;
1047
1062
  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,bm 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,bk 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,bj as NewsEditorPanel,bi 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,bl 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";