@livetiles/reach-components-react 0.5.0-preview.33 → 0.5.0-preview.330
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/EmojiPicker.esm.esm.js +1 -1
- package/EventDetail.d.ts +9 -1
- package/EventItemContextProvider.d.ts +4 -0
- package/EventItemPreviewContextProvider.d.ts +5 -0
- package/EventsEditorDashboard.d.ts +2 -1
- package/NewsDetail.d.ts +4 -0
- package/NewsDetailViewMetaInfo.d.ts +3 -1
- package/PageDetail.d.ts +9 -1
- package/PageItemContextProvider.d.ts +4 -0
- package/PageItemPreviewContextProvider.d.ts +5 -0
- package/PageTableOfContents.d.ts +3 -2
- package/PublishableItemEditorDashboard.d.ts +3 -2
- package/SharedItemDetailPreview.d.ts +25 -0
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/asn1.esm.js +1 -0
- package/common/NewPublishableItemButton.d.ts +1 -0
- package/da.async.esm2.esm.js +1 -1
- package/de.async.esm2.esm.js +1 -1
- package/editor/EventEditorContextProvider.d.ts +9 -1
- package/editor/EventEditorToolbarRecurringControls.d.ts +0 -2
- package/editor/NewsEditorDashboard.d.ts +2 -1
- package/editor/PageEditor.d.ts +6 -0
- package/editor/PageEditorContextProvider.d.ts +11 -0
- package/editor/PageEditorPanel.d.ts +5 -0
- package/editor/PageEditorToolbarStateActions.d.ts +2 -0
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/index.d.ts +92 -31
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -22
- package/index.umd.js +21 -26
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/javascript.esm.js +1 -0
- package/mllike.esm.js +1 -0
- package/package.json +1 -1
- package/python.esm.js +1 -0
- package/rpm.esm.js +1 -0
- package/sql.esm.js +1 -0
- package/tr.async.esm2.esm.js +1 -1
- package/ttcn-cfg.esm.js +1 -0
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/NewsDetailPreview.d.ts +0 -7
- package/da.async.esm3.esm.js +0 -1
- package/da.esm.js +0 -1
package/index.d.ts
CHANGED
|
@@ -21,23 +21,29 @@ interface NewsDetailProps {
|
|
|
21
21
|
hideComments?: boolean;
|
|
22
22
|
hideLikes?: boolean;
|
|
23
23
|
preventExternalContentAutoRedirect?: boolean;
|
|
24
|
+
onChannelClick?: (channel: string) => unknown;
|
|
25
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
24
26
|
className?: string;
|
|
25
27
|
}
|
|
26
28
|
declare const NewsDetail: FC<NewsDetailProps>;
|
|
27
29
|
|
|
28
30
|
interface PageDetailProps {
|
|
29
|
-
itemId
|
|
31
|
+
itemId?: string;
|
|
30
32
|
hideComments?: boolean;
|
|
31
33
|
hideLikes?: boolean;
|
|
32
34
|
preventExternalContentAutoRedirect?: boolean;
|
|
35
|
+
homeBreadcrumbTargetUrl?: string;
|
|
36
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
33
37
|
className?: string;
|
|
34
38
|
}
|
|
35
39
|
declare const PageDetail: FC<PageDetailProps>;
|
|
36
40
|
|
|
37
41
|
interface EventDetailProps {
|
|
38
|
-
itemId
|
|
42
|
+
itemId?: string;
|
|
39
43
|
hideComments?: boolean;
|
|
40
44
|
hideLikes?: boolean;
|
|
45
|
+
onChannelClick?: (channel: string) => unknown;
|
|
46
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
41
47
|
className?: string;
|
|
42
48
|
}
|
|
43
49
|
declare const EventDetail: FC<EventDetailProps>;
|
|
@@ -156,6 +162,8 @@ interface NotificationTypeSettings {
|
|
|
156
162
|
pluginNotifications: {
|
|
157
163
|
[key: string]: NotificationType;
|
|
158
164
|
};
|
|
165
|
+
newsEditor: NotificationType;
|
|
166
|
+
eventEditor: NotificationType;
|
|
159
167
|
}
|
|
160
168
|
interface CurrentUser extends Account {
|
|
161
169
|
isEmailVerificationPending?: boolean;
|
|
@@ -284,6 +292,7 @@ interface SubscriptionSummary extends BaseSubscription {
|
|
|
284
292
|
customDomain?: string;
|
|
285
293
|
allowSelfRegistration?: boolean;
|
|
286
294
|
brandFolderConfig?: BrandFolderConfig;
|
|
295
|
+
hideSubscriptionName?: boolean;
|
|
287
296
|
}
|
|
288
297
|
interface BrandFolderConfig {
|
|
289
298
|
sections?: string[];
|
|
@@ -314,9 +323,19 @@ interface WebPluginDefinition {
|
|
|
314
323
|
subscriptionId?: string;
|
|
315
324
|
environment?: string;
|
|
316
325
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
326
|
+
declare enum ExtensionArea {
|
|
327
|
+
global = "Global",
|
|
328
|
+
page = "Page",
|
|
329
|
+
eventEditorFeedbackSection = "EventEditorFeedbackSection",
|
|
330
|
+
eventDetailViewSection = "EventDetailViewSection",
|
|
331
|
+
itemEditor = "ItemEditor"
|
|
332
|
+
}
|
|
333
|
+
declare type InlinePlugin = {
|
|
334
|
+
area: ExtensionArea.itemEditor;
|
|
335
|
+
objectButton: PluginObjectButton;
|
|
336
|
+
};
|
|
337
|
+
declare type PagePlugin = {
|
|
338
|
+
area: ExtensionArea.page;
|
|
320
339
|
route: string;
|
|
321
340
|
navigationNode?: {
|
|
322
341
|
componentName?: string;
|
|
@@ -326,7 +345,20 @@ interface PluginExtension {
|
|
|
326
345
|
[key: string]: string;
|
|
327
346
|
};
|
|
328
347
|
};
|
|
329
|
-
}
|
|
348
|
+
};
|
|
349
|
+
declare type PluginExtension = {
|
|
350
|
+
area: ExtensionArea;
|
|
351
|
+
componentName: string;
|
|
352
|
+
} & (InlinePlugin | PagePlugin);
|
|
353
|
+
declare type PluginObjectButton = {
|
|
354
|
+
buttonLabel: {
|
|
355
|
+
defaultLabel: string;
|
|
356
|
+
translations?: {
|
|
357
|
+
[key: string]: string;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
iconName: string;
|
|
361
|
+
};
|
|
330
362
|
interface PluginNotificationDefinitions {
|
|
331
363
|
key: string;
|
|
332
364
|
title: string;
|
|
@@ -420,11 +452,6 @@ interface NewsItem extends SchedulableItem {
|
|
|
420
452
|
knownState: KnownNewsState;
|
|
421
453
|
hasNewComments?: boolean;
|
|
422
454
|
isLiked?: boolean;
|
|
423
|
-
shareToken?: ShareToken;
|
|
424
|
-
}
|
|
425
|
-
interface ShareToken {
|
|
426
|
-
published?: string;
|
|
427
|
-
preview?: string;
|
|
428
455
|
}
|
|
429
456
|
interface NewsItemAlertOptions {
|
|
430
457
|
duration?: string;
|
|
@@ -447,19 +474,6 @@ interface BaseItem {
|
|
|
447
474
|
id?: string;
|
|
448
475
|
statistics?: ItemStatistics;
|
|
449
476
|
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
477
|
}
|
|
464
478
|
interface Poll {
|
|
465
479
|
questions: PollQuestion[];
|
|
@@ -494,6 +508,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
494
508
|
headline?: string;
|
|
495
509
|
intro?: string;
|
|
496
510
|
body?: string;
|
|
511
|
+
bodyRaw?: string;
|
|
497
512
|
customProperties?: {
|
|
498
513
|
[key: string]: any;
|
|
499
514
|
};
|
|
@@ -873,8 +888,9 @@ declare const ToolbarEventViewSelector: FC<ToolbarEventViewSelectorProps>;
|
|
|
873
888
|
interface Props extends IPersonaProps {
|
|
874
889
|
upn: string;
|
|
875
890
|
tenantId?: string;
|
|
876
|
-
className?: string;
|
|
877
891
|
displayName?: string;
|
|
892
|
+
forceShowSecondaryText?: boolean;
|
|
893
|
+
className?: string;
|
|
878
894
|
}
|
|
879
895
|
declare const Avatar: FC<Props>;
|
|
880
896
|
|
|
@@ -1128,6 +1144,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1144
|
groupId?: string;
|
|
1129
1145
|
className?: string;
|
|
1130
1146
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1147
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1148
|
pageSize?: number;
|
|
1132
1149
|
hidePagination?: boolean;
|
|
1133
1150
|
}
|
|
@@ -1137,6 +1154,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1154
|
groupId?: string;
|
|
1138
1155
|
className?: string;
|
|
1139
1156
|
onItemClick?: (item: EventItem) => unknown;
|
|
1157
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1158
|
pageSize?: number;
|
|
1141
1159
|
hidePagination?: boolean;
|
|
1142
1160
|
}
|
|
@@ -1146,7 +1164,15 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1164
|
itemId: string;
|
|
1147
1165
|
}>;
|
|
1148
1166
|
|
|
1149
|
-
declare const
|
|
1167
|
+
declare const PageItemContextProvider: FC<{
|
|
1168
|
+
itemId: string;
|
|
1169
|
+
}>;
|
|
1170
|
+
|
|
1171
|
+
declare const EventItemContextProvider: FC<{
|
|
1172
|
+
itemId: string;
|
|
1173
|
+
}>;
|
|
1174
|
+
|
|
1175
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1176
|
showEditLanguagePreferences?: boolean;
|
|
1151
1177
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1178
|
}>;
|
|
@@ -1155,18 +1181,32 @@ declare const ToolbarManageNewsItemButton: FC<{
|
|
|
1155
1181
|
onClick?: (itemId: string) => unknown;
|
|
1156
1182
|
}>;
|
|
1157
1183
|
|
|
1158
|
-
interface
|
|
1184
|
+
interface SharedItemDetailPreviewProps {
|
|
1159
1185
|
itemId?: string;
|
|
1160
1186
|
versionId?: string;
|
|
1161
1187
|
className?: string;
|
|
1188
|
+
hideLikes?: boolean;
|
|
1189
|
+
hideComments?: boolean;
|
|
1162
1190
|
}
|
|
1163
|
-
declare const NewsDetailPreview: FC<
|
|
1191
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1192
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1193
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1164
1194
|
|
|
1165
1195
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1166
1196
|
itemId: string;
|
|
1167
1197
|
versionId?: string;
|
|
1168
1198
|
}>;
|
|
1169
1199
|
|
|
1200
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1201
|
+
itemId: string;
|
|
1202
|
+
versionId?: string;
|
|
1203
|
+
}>;
|
|
1204
|
+
|
|
1205
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1206
|
+
itemId: string;
|
|
1207
|
+
versionId?: string;
|
|
1208
|
+
}>;
|
|
1209
|
+
|
|
1170
1210
|
interface FilterProps {
|
|
1171
1211
|
filter: IndexableFilterDefinition;
|
|
1172
1212
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1364,10 +1404,31 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1404
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1405
|
|
|
1366
1406
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1407
|
className?: string;
|
|
1370
1408
|
}
|
|
1371
1409
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1410
|
|
|
1373
|
-
|
|
1411
|
+
interface PageEditorContextProviderProps {
|
|
1412
|
+
itemId?: string;
|
|
1413
|
+
groupId?: string;
|
|
1414
|
+
parentId?: string;
|
|
1415
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1416
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1417
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1418
|
+
}
|
|
1419
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1420
|
+
|
|
1421
|
+
interface PageEditorProps {
|
|
1422
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1423
|
+
className?: string;
|
|
1424
|
+
}
|
|
1425
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1426
|
+
|
|
1427
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1428
|
+
|
|
1429
|
+
interface PageEditorPanelProps {
|
|
1430
|
+
className?: string;
|
|
1431
|
+
}
|
|
1432
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1433
|
+
|
|
1434
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, 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, isFilterActive, useCurrentUser };
|
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
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";
|