@livetiles/reach-components-react 0.5.0-preview.31 → 0.5.0-preview.310
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/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 +90 -30
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -22
- package/index.umd.js +20 -25
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/package.json +1 -1
- package/tr.async.esm2.esm.js +1 -1
- 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
|
};
|
|
@@ -1128,6 +1143,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1143
|
groupId?: string;
|
|
1129
1144
|
className?: string;
|
|
1130
1145
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1146
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1147
|
pageSize?: number;
|
|
1132
1148
|
hidePagination?: boolean;
|
|
1133
1149
|
}
|
|
@@ -1137,6 +1153,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1153
|
groupId?: string;
|
|
1138
1154
|
className?: string;
|
|
1139
1155
|
onItemClick?: (item: EventItem) => unknown;
|
|
1156
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1157
|
pageSize?: number;
|
|
1141
1158
|
hidePagination?: boolean;
|
|
1142
1159
|
}
|
|
@@ -1146,7 +1163,15 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1163
|
itemId: string;
|
|
1147
1164
|
}>;
|
|
1148
1165
|
|
|
1149
|
-
declare const
|
|
1166
|
+
declare const PageItemContextProvider: FC<{
|
|
1167
|
+
itemId: string;
|
|
1168
|
+
}>;
|
|
1169
|
+
|
|
1170
|
+
declare const EventItemContextProvider: FC<{
|
|
1171
|
+
itemId: string;
|
|
1172
|
+
}>;
|
|
1173
|
+
|
|
1174
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1175
|
showEditLanguagePreferences?: boolean;
|
|
1151
1176
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1177
|
}>;
|
|
@@ -1155,18 +1180,32 @@ declare const ToolbarManageNewsItemButton: FC<{
|
|
|
1155
1180
|
onClick?: (itemId: string) => unknown;
|
|
1156
1181
|
}>;
|
|
1157
1182
|
|
|
1158
|
-
interface
|
|
1183
|
+
interface SharedItemDetailPreviewProps {
|
|
1159
1184
|
itemId?: string;
|
|
1160
1185
|
versionId?: string;
|
|
1161
1186
|
className?: string;
|
|
1187
|
+
hideLikes?: boolean;
|
|
1188
|
+
hideComments?: boolean;
|
|
1162
1189
|
}
|
|
1163
|
-
declare const NewsDetailPreview: FC<
|
|
1190
|
+
declare const NewsDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1191
|
+
declare const PageDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1192
|
+
declare const EventDetailPreview: FC<SharedItemDetailPreviewProps>;
|
|
1164
1193
|
|
|
1165
1194
|
declare const NewsItemPreviewContextProvider: FC<{
|
|
1166
1195
|
itemId: string;
|
|
1167
1196
|
versionId?: string;
|
|
1168
1197
|
}>;
|
|
1169
1198
|
|
|
1199
|
+
declare const PageItemPreviewContextProvider: FC<{
|
|
1200
|
+
itemId: string;
|
|
1201
|
+
versionId?: string;
|
|
1202
|
+
}>;
|
|
1203
|
+
|
|
1204
|
+
declare const EventItemPreviewContextProvider: FC<{
|
|
1205
|
+
itemId: string;
|
|
1206
|
+
versionId?: string;
|
|
1207
|
+
}>;
|
|
1208
|
+
|
|
1170
1209
|
interface FilterProps {
|
|
1171
1210
|
filter: IndexableFilterDefinition;
|
|
1172
1211
|
onChange: (filter: Partial<IndexableFilterDefinition> | null) => void;
|
|
@@ -1364,10 +1403,31 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1403
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1404
|
|
|
1366
1405
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1406
|
className?: string;
|
|
1370
1407
|
}
|
|
1371
1408
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1409
|
|
|
1373
|
-
|
|
1410
|
+
interface PageEditorContextProviderProps {
|
|
1411
|
+
itemId?: string;
|
|
1412
|
+
groupId?: string;
|
|
1413
|
+
parentId?: string;
|
|
1414
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1415
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1416
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1417
|
+
}
|
|
1418
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1419
|
+
|
|
1420
|
+
interface PageEditorProps {
|
|
1421
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1422
|
+
className?: string;
|
|
1423
|
+
}
|
|
1424
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1425
|
+
|
|
1426
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1427
|
+
|
|
1428
|
+
interface PageEditorPanelProps {
|
|
1429
|
+
className?: string;
|
|
1430
|
+
}
|
|
1431
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1432
|
+
|
|
1433
|
+
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";
|