@livetiles/reach-components-react 0.5.0-preview.50 → 0.5.0-preview.500

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.
Files changed (66) hide show
  1. package/AnalyticsDummyContextProvider.d.ts +2 -0
  2. package/EmojiPicker.esm.esm.js +1 -1
  3. package/ErrorWrapper.d.ts +3 -2
  4. package/EventDetail.d.ts +9 -1
  5. package/EventGridCard.d.ts +4 -4
  6. package/EventItemContextProvider.d.ts +4 -0
  7. package/EventItemPreviewContextProvider.d.ts +5 -0
  8. package/EventsEditorDashboard.d.ts +2 -1
  9. package/NewsDetail.d.ts +4 -0
  10. package/NewsDetailViewMetaInfo.d.ts +3 -1
  11. package/NewsGrid.d.ts +1 -0
  12. package/NewsGridCard.d.ts +6 -5
  13. package/PageDetail.d.ts +9 -1
  14. package/PageGridCard.d.ts +1 -0
  15. package/PageItemContextProvider.d.ts +4 -0
  16. package/PageItemPreviewContextProvider.d.ts +5 -0
  17. package/PageTableOfContents.d.ts +3 -2
  18. package/PagesGrid.d.ts +1 -0
  19. package/PublishableItemEditorDashboard.d.ts +3 -2
  20. package/PublishableItemGrid.d.ts +3 -2
  21. package/PublishableItemList.d.ts +3 -2
  22. package/ReachContext.d.ts +14 -0
  23. package/SharedItemDetailPreview.d.ts +16 -0
  24. package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
  25. package/asn1.esm.js +1 -0
  26. package/auto-track-f51a2a4b.esm.js +1 -0
  27. package/common/NewPublishableItemButton.d.ts +1 -0
  28. package/da.async.esm2.esm.js +1 -1
  29. package/de.async.esm2.esm.js +1 -1
  30. package/editor/EventEditorContextProvider.d.ts +9 -1
  31. package/editor/EventEditorToolbarRecurringControls.d.ts +0 -2
  32. package/editor/NewsEditorDashboard.d.ts +2 -1
  33. package/editor/PageEditor.d.ts +6 -0
  34. package/editor/PageEditorContextProvider.d.ts +11 -0
  35. package/editor/PageEditorPanel.d.ts +5 -0
  36. package/editor/PageEditorToolbarStateActions.d.ts +2 -0
  37. package/en.async.esm.esm.js +1 -1
  38. package/es.async.esm2.esm.js +1 -1
  39. package/fr.async.esm2.esm.js +1 -1
  40. package/index-86828242.esm.js +1 -0
  41. package/index-9966489c.esm.js +1 -0
  42. package/index-b8e04782.esm.js +705 -0
  43. package/index-bb815ffc.esm.js +1 -0
  44. package/index-beff4bdb.esm.js +1 -0
  45. package/index-d4477314.esm.js +1 -0
  46. package/index.d.ts +214 -92
  47. package/index.esm.js +1 -1
  48. package/index.esm2.js +47 -21
  49. package/index.umd-3ae1841e.esm.js +1 -0
  50. package/index.umd.js +755 -25
  51. package/is-plan-event-enabled-d9660f36.esm.js +1 -0
  52. package/it.async.esm2.esm.js +1 -1
  53. package/ja.async.esm2.esm.js +1 -1
  54. package/javascript.esm.js +1 -0
  55. package/mllike.esm.js +1 -0
  56. package/package.json +1 -1
  57. package/python.esm.js +1 -0
  58. package/rpm.esm.js +1 -0
  59. package/sql.esm.js +1 -0
  60. package/tr.async.esm2.esm.js +1 -1
  61. package/ttcn-cfg.esm.js +1 -0
  62. package/zh-CN.async.esm2.esm.js +1 -1
  63. package/zh-TW.async.esm2.esm.js +1 -1
  64. package/NewsDetailPreview.d.ts +0 -7
  65. package/da.async.esm3.esm.js +0 -1
  66. package/da.esm.js +0 -1
@@ -0,0 +1 @@
1
+ import{t as e}from"./index.esm2.js";import{l as t}from"./is-plan-event-enabled-d9660f36.esm.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";function n(n,r){function i(i){var o=n,a=i.event.event;if(o&&a){var c=o[a];if(!t(o,c))return i.updateEvent("integrations",e(e({},i.event.integrations),{All:!1,"Segment.io":!0})),i;var s=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})),o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){(e.name.includes(t)||t.includes(e.name))&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(c,r);i.updateEvent("integrations",e(e(e({},i.event.integrations),null==c?void 0:c.integrations),s))}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{n as schemaFilter};
@@ -0,0 +1 @@
1
+ import{x as i,A as r}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";function t(t){return i(this,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return[4,import("./index.umd-3ae1841e.esm.js").then((i=>i.i))];case 1:return i=r.sent(),t._plugins=i,[2]}}))}))}export{t as loadLegacyVideoPlugins};
@@ -0,0 +1 @@
1
+ import{x as e,A as r,U as t,H as i,z as o}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";function n(n,a,c){var s;return e(this,void 0,void 0,(function(){var m,l,u,d,f=this;return r(this,(function(p){switch(p.label){case 0:return t()?[2,[]]:(m=i(),l=null!==(s=a.enabledMiddleware)&&void 0!==s?s:{},u=Object.entries(l).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})),d=u.map((function(t){return e(f,void 0,void 0,(function(){var e,i,a,s;return r(this,(function(r){switch(r.label){case 0:e=t.replace("@segment/",""),i=e,c&&(i=btoa(e).replace(/=/g,"")),a="".concat(m,"/middleware/").concat(i,"/latest/").concat(i,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,o(a)];case 2:return r.sent(),[2,window["".concat(e,"Middleware")]];case 3:return s=r.sent(),n.log("error",s),n.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,p.sent().filter(Boolean)]}}))}))}export{n as remoteMiddlewares};
package/index.d.ts CHANGED
@@ -2,17 +2,63 @@ import { FC, ReactNode } from 'react';
2
2
  import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
3
3
  import * as styled_components from 'styled-components';
4
4
 
5
+ declare enum AuthenticationType {
6
+ unknown = 0,
7
+ azuread = 1,
8
+ b2c = 3,
9
+ temporary = 4,
10
+ apiKey = 5,
11
+ teams = 6,
12
+ onPremKeycloak = 7,
13
+ openId = 8,
14
+ public = 99
15
+ }
16
+
17
+ declare enum IdentityProviderNames {
18
+ MicrosoftWork = "microsoft-work",
19
+ Google = "google",
20
+ EMail = "email",
21
+ Apple = "apple"
22
+ }
23
+ interface IdentityProviderSettings {
24
+ name: string;
25
+ issuer: string;
26
+ clientId: string;
27
+ realm: string;
28
+ url: string;
29
+ scope: string;
30
+ }
31
+
32
+ interface VideoSource$1 {
33
+ prefix: string;
34
+ name: string;
35
+ alwaysShowPlayer?: boolean;
36
+ }
37
+
5
38
  declare type ReachContextProps = {
6
39
  config?: {
7
40
  apiEndpoint?: string;
8
41
  webAppUrl?: string;
9
42
  api3Endpoint?: string;
10
43
  webSocketsEndpoint?: string;
44
+ additionalVideoSources?: VideoSource$1[];
11
45
  };
12
46
  onRequestToken?: () => Promise<string>;
13
47
  subscriptionId: string;
14
48
  language?: string;
15
49
  disableUiFabricThemeOverwrite?: boolean;
50
+ /**
51
+ * These properties can be used to define the behavior of the analytics module.
52
+ *
53
+ * With `disableAnalytics` you can completely disable all analytics tracking.
54
+ * The `appName` is optional but highly encouraged to be set,
55
+ * in order to know where the components are used in. The value must be a non-empty string,
56
+ * only containing alphabetical letters and dashes (-). Should not be longer than 30 characters.
57
+ */
58
+ analyticsProps?: {
59
+ disableAnalytics?: boolean;
60
+ appName?: string;
61
+ };
16
62
  };
17
63
  declare const ReachContextProvider: FC<ReachContextProps>;
18
64
 
@@ -21,23 +67,29 @@ interface NewsDetailProps {
21
67
  hideComments?: boolean;
22
68
  hideLikes?: boolean;
23
69
  preventExternalContentAutoRedirect?: boolean;
70
+ onChannelClick?: (channel: string) => unknown;
71
+ onKeywordClick?: (keyword: string) => unknown;
24
72
  className?: string;
25
73
  }
26
74
  declare const NewsDetail: FC<NewsDetailProps>;
27
75
 
28
76
  interface PageDetailProps {
29
- itemId: string;
77
+ itemId?: string;
30
78
  hideComments?: boolean;
31
79
  hideLikes?: boolean;
32
80
  preventExternalContentAutoRedirect?: boolean;
81
+ homeBreadcrumbTargetUrl?: string;
82
+ onKeywordClick?: (keyword: string) => unknown;
33
83
  className?: string;
34
84
  }
35
85
  declare const PageDetail: FC<PageDetailProps>;
36
86
 
37
87
  interface EventDetailProps {
38
- itemId: string;
88
+ itemId?: string;
39
89
  hideComments?: boolean;
40
90
  hideLikes?: boolean;
91
+ onChannelClick?: (channel: string) => unknown;
92
+ onKeywordClick?: (keyword: string) => unknown;
41
93
  className?: string;
42
94
  }
43
95
  declare const EventDetail: FC<EventDetailProps>;
@@ -59,33 +111,6 @@ interface PaginatedList<TItem> {
59
111
  hasNextPage?: boolean;
60
112
  }
61
113
 
62
- declare enum AuthenticationType {
63
- unknown = 0,
64
- azuread = 1,
65
- b2c = 3,
66
- temporary = 4,
67
- apiKey = 5,
68
- teams = 6,
69
- onPremKeycloak = 7,
70
- openId = 8,
71
- public = 99
72
- }
73
-
74
- declare enum IdentityProviderNames {
75
- MicrosoftWork = "microsoft-work",
76
- Google = "google",
77
- EMail = "email",
78
- Apple = "apple"
79
- }
80
- interface IdentityProviderSettings {
81
- name: string;
82
- issuer: string;
83
- clientId: string;
84
- realm: string;
85
- url: string;
86
- scope: string;
87
- }
88
-
89
114
  interface Resources {
90
115
  [language: string]: Record<string, string>;
91
116
  }
@@ -156,6 +181,8 @@ interface NotificationTypeSettings {
156
181
  pluginNotifications: {
157
182
  [key: string]: NotificationType;
158
183
  };
184
+ newsEditor: NotificationType;
185
+ eventEditor: NotificationType;
159
186
  }
160
187
  interface CurrentUser extends Account {
161
188
  isEmailVerificationPending?: boolean;
@@ -187,6 +214,7 @@ interface CurrentUser extends Account {
187
214
  termsAndConditionsApprovedHash: string;
188
215
  isPublicUser?: boolean;
189
216
  hasUnreadChats?: boolean;
217
+ publicSubscriptionIds?: string[];
190
218
  }
191
219
  interface UserContact {
192
220
  tokenUniqueId: string;
@@ -284,6 +312,7 @@ interface SubscriptionSummary extends BaseSubscription {
284
312
  customDomain?: string;
285
313
  allowSelfRegistration?: boolean;
286
314
  brandFolderConfig?: BrandFolderConfig;
315
+ hideSubscriptionName?: boolean;
287
316
  }
288
317
  interface BrandFolderConfig {
289
318
  sections?: string[];
@@ -314,9 +343,21 @@ interface WebPluginDefinition {
314
343
  subscriptionId?: string;
315
344
  environment?: string;
316
345
  }
317
- interface PluginExtension {
318
- area: string;
319
- componentName: string;
346
+ declare enum ExtensionArea {
347
+ global = "Global",
348
+ page = "Page",
349
+ eventEditorFeedbackSection = "EventEditorFeedbackSection",
350
+ eventDetailViewSection = "EventDetailViewSection",
351
+ itemEditor = "ItemEditor",
352
+ newsEditorFeedbackSection = "NewsEditorFeedbackSection",
353
+ newsOverviewCardSection = "NewsOverviewCardSection"
354
+ }
355
+ declare type InlinePlugin = {
356
+ area: ExtensionArea.itemEditor;
357
+ objectButton: PluginObjectButton;
358
+ };
359
+ declare type PagePlugin = {
360
+ area: ExtensionArea.page;
320
361
  route: string;
321
362
  navigationNode?: {
322
363
  componentName?: string;
@@ -326,7 +367,20 @@ interface PluginExtension {
326
367
  [key: string]: string;
327
368
  };
328
369
  };
329
- }
370
+ };
371
+ declare type PluginExtension = {
372
+ area: ExtensionArea;
373
+ componentName: string;
374
+ } & (InlinePlugin | PagePlugin);
375
+ declare type PluginObjectButton = {
376
+ buttonLabel: {
377
+ defaultLabel: string;
378
+ translations?: {
379
+ [key: string]: string;
380
+ };
381
+ };
382
+ iconName: string;
383
+ };
330
384
  interface PluginNotificationDefinitions {
331
385
  key: string;
332
386
  title: string;
@@ -368,6 +422,14 @@ interface Channel {
368
422
  };
369
423
  }
370
424
 
425
+ interface KeywordGroup {
426
+ id: string;
427
+ name: string;
428
+ keywords: Keyword[];
429
+ translations: {
430
+ [key: string]: string;
431
+ };
432
+ }
371
433
  interface Keyword {
372
434
  id: string;
373
435
  name: string;
@@ -411,7 +473,7 @@ declare enum KnownNewsState {
411
473
  declare type VersionId = string;
412
474
  interface SchedulableItem extends PublishableItem {
413
475
  metadata?: NewsMetadata;
414
- channels?: SchedulableItemChannel[];
476
+ channels?: Channel[];
415
477
  }
416
478
  interface NewsItem extends SchedulableItem {
417
479
  source?: string;
@@ -420,19 +482,11 @@ interface NewsItem extends SchedulableItem {
420
482
  knownState: KnownNewsState;
421
483
  hasNewComments?: boolean;
422
484
  isLiked?: boolean;
423
- shareToken?: ShareToken;
424
- }
425
- interface ShareToken {
426
- published?: string;
427
- preview?: string;
428
485
  }
429
486
  interface NewsItemAlertOptions {
430
487
  duration?: string;
431
488
  endDate?: Date;
432
489
  expireAfter?: boolean;
433
- }
434
- interface SchedulableItemChannel {
435
- name: string;
436
490
  }
437
491
 
438
492
  declare enum VideoSource {
@@ -447,19 +501,6 @@ interface BaseItem {
447
501
  id?: string;
448
502
  statistics?: ItemStatistics;
449
503
  poll?: Poll;
450
- searchHighlights?: SearchHighlightSummary;
451
- }
452
- interface SearchHighlightSummary {
453
- title: SearchHighlight[];
454
- content: SearchHighlight[];
455
- }
456
- interface SearchHighlight {
457
- language: string;
458
- texts: {
459
- value: string;
460
- type: 'text' | 'hit';
461
- }[];
462
- score: number;
463
504
  }
464
505
  interface Poll {
465
506
  questions: PollQuestion[];
@@ -494,6 +535,7 @@ interface PublishableItemContent extends ContentDefinition {
494
535
  headline?: string;
495
536
  intro?: string;
496
537
  body?: string;
538
+ bodyRaw?: string;
497
539
  customProperties?: {
498
540
  [key: string]: any;
499
541
  };
@@ -748,6 +790,7 @@ interface PageItem extends PublishableItem {
748
790
  isUnlinked?: boolean;
749
791
  pageType?: PageType;
750
792
  firstChildId?: string;
793
+ isGroupInheritanceBroken?: boolean;
751
794
  }
752
795
  interface ContentsSummary {
753
796
  [lang: string]: TitleContent & {
@@ -769,6 +812,7 @@ interface PageNavigationNode {
769
812
  hasAnyPageChild?: boolean;
770
813
  pageType?: PageType;
771
814
  useExternalContent?: boolean;
815
+ isGroupInheritanceBroken?: boolean;
772
816
  isSearchMatch?: boolean;
773
817
  topLevelFolderName?: string;
774
818
  uploadToken?: string;
@@ -783,6 +827,23 @@ declare enum PageType {
783
827
  Document = 1
784
828
  }
785
829
 
830
+ declare type KeywordsByGroupId = {
831
+ [key: string]: Keyword[];
832
+ };
833
+
834
+ interface SubscriptionData {
835
+ channels?: Channel[];
836
+ allKeywords?: Keyword[];
837
+ keywordsByGroupId?: KeywordsByGroupId;
838
+ selectedKeywordGroups?: KeywordGroup[];
839
+ }
840
+ interface LazySubscriptionContextType extends SubscriptionData {
841
+ getChannels: () => Promise<Channel[]>;
842
+ refreshSubscription: () => void;
843
+ }
844
+
845
+ declare function useLazySubscriptionContext(): LazySubscriptionContextType;
846
+
786
847
  declare const Dialog: FC<IDialogProps>;
787
848
 
788
849
  interface ToolbarProps {
@@ -873,8 +934,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
873
934
  interface Props extends IPersonaProps {
874
935
  upn: string;
875
936
  tenantId?: string;
876
- className?: string;
877
937
  displayName?: string;
938
+ forceShowSecondaryText?: boolean;
939
+ className?: string;
878
940
  }
879
941
  declare const Avatar: FC<Props>;
880
942
 
@@ -885,6 +947,13 @@ interface UserDetailsProps {
885
947
  }
886
948
  declare const UserDetails: FC<UserDetailsProps>;
887
949
 
950
+ declare enum ErrorType {
951
+ GenericError = "genericError",
952
+ Error404 = "error404",
953
+ Error403 = "error403",
954
+ LoginError = "loginError"
955
+ }
956
+
888
957
  interface PageViewTrackerSettings {
889
958
  disabled?: boolean;
890
959
  }
@@ -950,11 +1019,31 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
950
1019
  includeExpired?: boolean;
951
1020
  }
952
1021
 
953
- interface TargetLinkOverrideContextProps {
954
- onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
955
- onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
1022
+ interface Post extends BaseItem, ItemWithAttachments {
1023
+ id: string;
1024
+ comments?: PaginatedList<Comment>;
1025
+ groupId: string;
1026
+ content: string;
1027
+ permalink?: string;
1028
+ author: Account;
1029
+ publishingDate: string;
1030
+ modified?: string;
1031
+ statistics: ItemStatistics;
1032
+ keywords?: {
1033
+ [key: string]: Keyword[];
1034
+ };
1035
+ contentLanguageCode?: string;
1036
+ isLiked?: boolean;
1037
+ isUnread?: boolean;
1038
+ isDemoContent?: boolean;
1039
+ isFollowing?: boolean;
956
1040
  }
957
- declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1041
+ interface PostFilterDefinition {
1042
+ token?: string;
1043
+ pageSize?: string;
1044
+ search?: string;
1045
+ keywords?: FilterWithLogicalOperator;
1046
+ }
958
1047
 
959
1048
  interface EventContactsFilterDefinition extends IndexableFilterDefinition {
960
1049
  contacts?: string[];
@@ -970,6 +1059,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
970
1059
  pastEventsOnly?: boolean;
971
1060
  }
972
1061
 
1062
+ interface TargetLinkOverrideContextProps {
1063
+ onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
1064
+ onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
1065
+ }
1066
+ declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
1067
+
973
1068
  interface KeywordPickerProps {
974
1069
  value?: Keyword[] | string[];
975
1070
  onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
@@ -990,32 +1085,6 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
990
1085
  pageType?: PageType;
991
1086
  }
992
1087
 
993
- interface Post extends BaseItem, ItemWithAttachments {
994
- id: string;
995
- comments?: PaginatedList<Comment>;
996
- groupId: string;
997
- content: string;
998
- permalink?: string;
999
- author: Account;
1000
- publishingDate: string;
1001
- modified?: string;
1002
- statistics: ItemStatistics;
1003
- keywords?: {
1004
- [key: string]: Keyword[];
1005
- };
1006
- contentLanguageCode?: string;
1007
- isLiked?: boolean;
1008
- isUnread?: boolean;
1009
- isDemoContent?: boolean;
1010
- isFollowing?: boolean;
1011
- }
1012
- interface PostFilterDefinition {
1013
- token?: string;
1014
- pageSize?: string;
1015
- search?: string;
1016
- keywords?: FilterWithLogicalOperator;
1017
- }
1018
-
1019
1088
  interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
1020
1089
  }
1021
1090
 
@@ -1071,6 +1140,7 @@ interface NewsGridProps {
1071
1140
  onKeywordClick?: (keyword: string) => unknown;
1072
1141
  includeAllItems?: boolean;
1073
1142
  className?: string;
1143
+ hideIntro?: boolean;
1074
1144
  }
1075
1145
  declare const NewsGrid: FC<NewsGridProps>;
1076
1146
 
@@ -1128,6 +1198,7 @@ interface NewsEditorDashboardProps {
1128
1198
  groupId?: string;
1129
1199
  className?: string;
1130
1200
  onItemClick?: (item: NewsItem) => unknown;
1201
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
1131
1202
  pageSize?: number;
1132
1203
  hidePagination?: boolean;
1133
1204
  }
@@ -1137,6 +1208,7 @@ interface EventsEditorDashboardProps {
1137
1208
  groupId?: string;
1138
1209
  className?: string;
1139
1210
  onItemClick?: (item: EventItem) => unknown;
1211
+ onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
1140
1212
  pageSize?: number;
1141
1213
  hidePagination?: boolean;
1142
1214
  }
@@ -1146,7 +1218,15 @@ declare const NewsItemContextProvider: FC<{
1146
1218
  itemId: string;
1147
1219
  }>;
1148
1220
 
1149
- declare const ToolbarNewsLanguageSelector: FC<{
1221
+ declare const PageItemContextProvider: FC<{
1222
+ itemId: string;
1223
+ }>;
1224
+
1225
+ declare const EventItemContextProvider: FC<{
1226
+ itemId: string;
1227
+ }>;
1228
+
1229
+ declare const ToolbarLanguageSelector: FC<{
1150
1230
  showEditLanguagePreferences?: boolean;
1151
1231
  onEditLanguagePreferences?: () => unknown;
1152
1232
  }>;
@@ -1155,18 +1235,32 @@ declare const ToolbarManageNewsItemButton: FC<{
1155
1235
  onClick?: (itemId: string) => unknown;
1156
1236
  }>;
1157
1237
 
1158
- interface NewsDetailPreviewProps {
1238
+ interface SharedItemDetailPreviewProps {
1159
1239
  itemId?: string;
1160
1240
  versionId?: string;
1161
1241
  className?: string;
1242
+ hideLikes?: boolean;
1243
+ hideComments?: boolean;
1162
1244
  }
1163
- declare const NewsDetailPreview: FC<NewsDetailPreviewProps>;
1245
+ declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
1246
+ declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
1247
+ declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
1164
1248
 
1165
1249
  declare const NewsItemPreviewContextProvider: FC<{
1166
1250
  itemId: string;
1167
1251
  versionId?: string;
1168
1252
  }>;
1169
1253
 
1254
+ declare const PageItemPreviewContextProvider: FC<{
1255
+ itemId: string;
1256
+ versionId?: string;
1257
+ }>;
1258
+
1259
+ declare const EventItemPreviewContextProvider: FC<{
1260
+ itemId: string;
1261
+ versionId?: string;
1262
+ }>;
1263
+
1170
1264
  interface FilterProps {
1171
1265
  filter: IndexableFilterDefinition;
1172
1266
  onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
@@ -1324,6 +1418,7 @@ interface PagesGridProps {
1324
1418
  rowCount?: number;
1325
1419
  onItemClick?: (item: PageItem, itemUrl?: string, isTitleClicked?: boolean) => unknown;
1326
1420
  onKeywordClick?: (keyword: string) => unknown;
1421
+ hideIntro?: boolean;
1327
1422
  className?: string;
1328
1423
  }
1329
1424
  declare const PagesGrid: FC<PagesGridProps>;
@@ -1364,10 +1459,37 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
1364
1459
  declare const EventEditorToolbarStateActions: FC;
1365
1460
 
1366
1461
  interface EventEditorToolbarRecurringControlsProps {
1367
- onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
1368
- onResetModifiedInstance: () => void;
1369
1462
  className?: string;
1370
1463
  }
1371
1464
  declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
1372
1465
 
1373
- export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailPreviewProps, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailProps, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, isFilterActive, useCurrentUser };
1466
+ interface PageEditorContextProviderProps {
1467
+ itemId?: string;
1468
+ groupId?: string;
1469
+ parentId?: string;
1470
+ onSuccessfulCreate?: (itemId: string) => void;
1471
+ onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
1472
+ onSuccessfulDeletePermanently?: (itemId: number | string) => void;
1473
+ }
1474
+ declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
1475
+
1476
+ interface PageEditorProps {
1477
+ homeBreadcrumbTargetUrl?: string;
1478
+ className?: string;
1479
+ }
1480
+ declare const PageEditor: FC<PageEditorProps>;
1481
+
1482
+ declare const PageEditorToolbarStateActions: FC;
1483
+
1484
+ interface PageEditorPanelProps {
1485
+ className?: string;
1486
+ }
1487
+ declare const PageEditorPanel: FC<PageEditorPanelProps>;
1488
+
1489
+ interface ErrorWrapperProps {
1490
+ errorType: ErrorType;
1491
+ isList?: boolean;
1492
+ }
1493
+ declare const ErrorWrapper: FC<ErrorWrapperProps>;
1494
+
1495
+ export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useLazySubscriptionContext };
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- export{ab as AuthorFilter,aa as AuthorToolbarFilter,C as Avatar,a3 as ChannelFilter,ag as ChannelSelector,a4 as ChannelToolbarFilter,a7 as ClearAllFiltersButton,aA as ContactToolbarFilter,ao as EditorToolbarIndicators,aB as EventDatesToolbarFilter,E as EventDetail,aG as EventEditor,aH as EventEditorContextProvider,aI as EventEditorPanel,aK as EventEditorToolbarRecurringControls,aJ as EventEditorToolbarStateActions,af as EventView,G as EventsEditorDashboard,z as EventsGrid,A as EventsList,ac as FilterSearch,av as GroupNotificationsSettings,I as ItemLayoutMode,al as ItemResourceTypes,am as KeywordPicker,a8 as KeywordsFilter,a9 as KeywordsToolbarFilter,aC as LogicalOperator,M as ManageChannels,N as NewsDetail,Y as NewsDetailPreview,ah as NewsEditor,ai as NewsEditorContextProvider,F as NewsEditorDashboard,aq as NewsEditorPanel,ap as NewsEditorToolbarStateActions,y as NewsGrid,D as NewsHero,V as NewsItemContextProvider,Z as NewsItemPreviewContextProvider,x as NewsList,v as PageDetail,aF as PageType,aj as PageViewTrackerSettingsContextProvider,aD as PagesGrid,aE as PagesList,w as PostDetail,au as PostGroupSelector,ax as PostGroupSelectorButton,at as PostGroupsPicker,ar as PostInputBox,as as PostList,t as PostListContextProvider,a6 as PublishingDateFilter,a5 as PublishingDateToolbarFilter,R as ReachContextProvider,an as ReachDialog,ak as TargetLinkOverrideContextProvider,H as Toolbar,L as ToolbarChannelSelector,S as ToolbarCloseButton,ae as ToolbarEventViewSelector,a0 as ToolbarFilterModal,a1 as ToolbarFilterModalButton,$ as ToolbarFilterPanel,ad as ToolbarFilterSearch,ay as ToolbarFilterToggleButton,J as ToolbarIconButton,X as ToolbarManageNewsItemButton,O as ToolbarMarkAllEventsAsReadButton,Q as ToolbarMarkAllNewsAsReadButton,W as ToolbarNewsLanguageSelector,aw as ToolbarPostNotificationButton,K as ToolbarUnreadItemsButton,U as UserDetails,a2 as VerticalFilterPanel,az 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";
1
+ export{aI as AuthorFilter,aH as AuthorToolbarFilter,aa as Avatar,aA as ChannelFilter,aN as ChannelSelector,aB as ChannelToolbarFilter,aE as ClearAllFiltersButton,b5 as ContactToolbarFilter,aX as EditorToolbarIndicators,bl as ErrorType,bk as ErrorWrapper,b6 as EventDatesToolbarFilter,$ as EventDetail,as as EventDetailPreview,bb as EventEditor,bc as EventEditorContextProvider,bd as EventEditorPanel,bf as EventEditorToolbarRecurringControls,be as EventEditorToolbarStateActions,an as EventItemContextProvider,av as EventItemPreviewContextProvider,aM as EventView,ad as EventsEditorDashboard,a4 as EventsGrid,a5 as EventsList,aJ as FilterSearch,b0 as GroupNotificationsSettings,a2 as ItemLayoutMode,aS as ItemResourceTypes,aV as KeywordPicker,aF as KeywordsFilter,aG as KeywordsToolbarFilter,b7 as LogicalOperator,a6 as ManageChannels,Y as NewsDetail,aq as NewsDetailPreview,aO as NewsEditor,aP as NewsEditorContextProvider,ac as NewsEditorDashboard,aU as NewsEditorPanel,aT as NewsEditorToolbarStateActions,a3 as NewsGrid,ab as NewsHero,al as NewsItemContextProvider,at as NewsItemPreviewContextProvider,a1 as NewsList,Z as PageDetail,ar as PageDetailPreview,bh as PageEditor,bg as PageEditorContextProvider,bj as PageEditorPanel,bi as PageEditorToolbarStateActions,am as PageItemContextProvider,au as PageItemPreviewContextProvider,ba as PageType,aQ as PageViewTrackerSettingsContextProvider,b8 as PagesGrid,b9 as PagesList,a0 as PostDetail,a$ as PostGroupSelector,b2 as PostGroupSelectorButton,a_ as PostGroupsPicker,aY as PostInputBox,aZ as PostList,W as PostListContextProvider,aD as PublishingDateFilter,aC as PublishingDateToolbarFilter,V as ReachContextProvider,aW as ReachDialog,aR as TargetLinkOverrideContextProvider,ae as Toolbar,ah as ToolbarChannelSelector,ak as ToolbarCloseButton,aL as ToolbarEventViewSelector,ax as ToolbarFilterModal,ay as ToolbarFilterModalButton,aw as ToolbarFilterPanel,aK as ToolbarFilterSearch,b3 as ToolbarFilterToggleButton,af as ToolbarIconButton,ao as ToolbarLanguageSelector,ap as ToolbarManageNewsItemButton,ai as ToolbarMarkAllEventsAsReadButton,aj as ToolbarMarkAllNewsAsReadButton,ao as ToolbarNewsLanguageSelector,b1 as ToolbarPostNotificationButton,ag as ToolbarUnreadItemsButton,a9 as UserDetails,az as VerticalFilterPanel,b4 as isFilterActive,a7 as useCurrentUser,a8 as useLazySubscriptionContext}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";