@livetiles/reach-components-react 0.5.0-preview.30 → 0.5.0-preview.301
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/AnalyticsContextProvider-dummy.d.ts +2 -0
- package/EmojiPicker.esm.esm.js +1 -1
- package/EventDetail.d.ts +3 -1
- package/EventItemContextProvider.d.ts +4 -0
- package/EventsEditorDashboard.d.ts +2 -1
- package/NewsDetail.d.ts +4 -0
- package/NewsDetailViewMetaInfo.d.ts +3 -1
- package/PageDetail.d.ts +3 -1
- package/PageItemContextProvider.d.ts +4 -0
- package/PageTableOfContents.d.ts +2 -2
- package/PublishableItemEditorDashboard.d.ts +3 -2
- package/{ToolbarNewsLanguageSelector.d.ts → ToolbarLanguageSelector.d.ts} +1 -1
- package/ajs-destination-4IEK7JCF.esm.js +35 -0
- package/auto-track-PVC3RKAW.esm.js +1 -0
- package/chunk-IZB43MSE.esm.js +1 -0
- package/chunk-NYVNK6O3.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 +104 -53
- package/index.esm.js +1 -1
- package/index.esm2.js +17 -22
- package/index.umd-EZCVDQQZ.esm.js +1 -0
- package/index.umd.js +55 -25
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/legacy-video-plugins-DALJOR7Y.esm.js +1 -0
- package/middleware-K6A3D7OK.esm.js +1 -0
- package/package.json +1 -1
- package/query-string-LUA3AQWQ.esm.js +1 -0
- package/remote-middleware-C2NOE7LS.esm.js +1 -0
- package/schema-filter-7TQKEETH.esm.js +1 -0
- 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/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;
|
|
@@ -447,19 +479,6 @@ interface BaseItem {
|
|
|
447
479
|
id?: string;
|
|
448
480
|
statistics?: ItemStatistics;
|
|
449
481
|
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
482
|
}
|
|
464
483
|
interface Poll {
|
|
465
484
|
questions: PollQuestion[];
|
|
@@ -494,6 +513,7 @@ interface PublishableItemContent extends ContentDefinition {
|
|
|
494
513
|
headline?: string;
|
|
495
514
|
intro?: string;
|
|
496
515
|
body?: string;
|
|
516
|
+
bodyRaw?: string;
|
|
497
517
|
customProperties?: {
|
|
498
518
|
[key: string]: any;
|
|
499
519
|
};
|
|
@@ -950,11 +970,31 @@ interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFi
|
|
|
950
970
|
includeExpired?: boolean;
|
|
951
971
|
}
|
|
952
972
|
|
|
953
|
-
interface
|
|
954
|
-
|
|
955
|
-
|
|
973
|
+
interface Post extends BaseItem, ItemWithAttachments {
|
|
974
|
+
id: string;
|
|
975
|
+
comments?: PaginatedList<Comment>;
|
|
976
|
+
groupId: string;
|
|
977
|
+
content: string;
|
|
978
|
+
permalink?: string;
|
|
979
|
+
author: Account;
|
|
980
|
+
publishingDate: string;
|
|
981
|
+
modified?: string;
|
|
982
|
+
statistics: ItemStatistics;
|
|
983
|
+
keywords?: {
|
|
984
|
+
[key: string]: Keyword[];
|
|
985
|
+
};
|
|
986
|
+
contentLanguageCode?: string;
|
|
987
|
+
isLiked?: boolean;
|
|
988
|
+
isUnread?: boolean;
|
|
989
|
+
isDemoContent?: boolean;
|
|
990
|
+
isFollowing?: boolean;
|
|
956
991
|
}
|
|
957
|
-
|
|
992
|
+
interface PostFilterDefinition {
|
|
993
|
+
token?: string;
|
|
994
|
+
pageSize?: string;
|
|
995
|
+
search?: string;
|
|
996
|
+
keywords?: FilterWithLogicalOperator;
|
|
997
|
+
}
|
|
958
998
|
|
|
959
999
|
interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
960
1000
|
contacts?: string[];
|
|
@@ -970,6 +1010,12 @@ interface EventFilterDefinition extends PublishableItemFilterDefinition, EventCo
|
|
|
970
1010
|
pastEventsOnly?: boolean;
|
|
971
1011
|
}
|
|
972
1012
|
|
|
1013
|
+
interface TargetLinkOverrideContextProps {
|
|
1014
|
+
onResolveContentTargetUrl: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1015
|
+
onResolveEmbeddedContentTargetUrl?: (itemId: string, itemType: ItemResourceTypes) => string;
|
|
1016
|
+
}
|
|
1017
|
+
declare const TargetLinkOverrideContextProvider: FC<TargetLinkOverrideContextProps>;
|
|
1018
|
+
|
|
973
1019
|
interface KeywordPickerProps {
|
|
974
1020
|
value?: Keyword[] | string[];
|
|
975
1021
|
onChange: (keywords: Keyword[], logicalOperator?: LogicalOperator) => void;
|
|
@@ -990,32 +1036,6 @@ interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
|
990
1036
|
pageType?: PageType;
|
|
991
1037
|
}
|
|
992
1038
|
|
|
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
1039
|
interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
|
|
1020
1040
|
}
|
|
1021
1041
|
|
|
@@ -1128,6 +1148,7 @@ interface NewsEditorDashboardProps {
|
|
|
1128
1148
|
groupId?: string;
|
|
1129
1149
|
className?: string;
|
|
1130
1150
|
onItemClick?: (item: NewsItem) => unknown;
|
|
1151
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1131
1152
|
pageSize?: number;
|
|
1132
1153
|
hidePagination?: boolean;
|
|
1133
1154
|
}
|
|
@@ -1137,6 +1158,7 @@ interface EventsEditorDashboardProps {
|
|
|
1137
1158
|
groupId?: string;
|
|
1138
1159
|
className?: string;
|
|
1139
1160
|
onItemClick?: (item: EventItem) => unknown;
|
|
1161
|
+
onCreateNewItemClick?: (itemResourceType: ItemResourceTypes, groupId: string) => unknown;
|
|
1140
1162
|
pageSize?: number;
|
|
1141
1163
|
hidePagination?: boolean;
|
|
1142
1164
|
}
|
|
@@ -1146,7 +1168,15 @@ declare const NewsItemContextProvider: FC<{
|
|
|
1146
1168
|
itemId: string;
|
|
1147
1169
|
}>;
|
|
1148
1170
|
|
|
1149
|
-
declare const
|
|
1171
|
+
declare const PageItemContextProvider: FC<{
|
|
1172
|
+
itemId: string;
|
|
1173
|
+
}>;
|
|
1174
|
+
|
|
1175
|
+
declare const EventItemContextProvider: FC<{
|
|
1176
|
+
itemId: string;
|
|
1177
|
+
}>;
|
|
1178
|
+
|
|
1179
|
+
declare const ToolbarLanguageSelector: FC<{
|
|
1150
1180
|
showEditLanguagePreferences?: boolean;
|
|
1151
1181
|
onEditLanguagePreferences?: () => unknown;
|
|
1152
1182
|
}>;
|
|
@@ -1364,10 +1394,31 @@ declare const EventEditorPanel: FC<EventEditorPanelProps>;
|
|
|
1364
1394
|
declare const EventEditorToolbarStateActions: FC;
|
|
1365
1395
|
|
|
1366
1396
|
interface EventEditorToolbarRecurringControlsProps {
|
|
1367
|
-
onRedirectToRecurrence: (id: string, isMaster: boolean) => void;
|
|
1368
|
-
onResetModifiedInstance: () => void;
|
|
1369
1397
|
className?: string;
|
|
1370
1398
|
}
|
|
1371
1399
|
declare const EventEditorToolbarRecurringControls: FC<EventEditorToolbarRecurringControlsProps>;
|
|
1372
1400
|
|
|
1373
|
-
|
|
1401
|
+
interface PageEditorContextProviderProps {
|
|
1402
|
+
itemId?: string;
|
|
1403
|
+
groupId?: string;
|
|
1404
|
+
parentId?: string;
|
|
1405
|
+
onSuccessfulCreate?: (itemId: string) => void;
|
|
1406
|
+
onSuccessfulDelete?: (itemId: number | string, status: WorkflowStatus) => void;
|
|
1407
|
+
onSuccessfulDeletePermanently?: (itemId: number | string) => void;
|
|
1408
|
+
}
|
|
1409
|
+
declare const PageEditorContextProvider: FC<PageEditorContextProviderProps>;
|
|
1410
|
+
|
|
1411
|
+
interface PageEditorProps {
|
|
1412
|
+
homeBreadcrumbTargetUrl?: string;
|
|
1413
|
+
className?: string;
|
|
1414
|
+
}
|
|
1415
|
+
declare const PageEditor: FC<PageEditorProps>;
|
|
1416
|
+
|
|
1417
|
+
declare const PageEditorToolbarStateActions: FC;
|
|
1418
|
+
|
|
1419
|
+
interface PageEditorPanelProps {
|
|
1420
|
+
className?: string;
|
|
1421
|
+
}
|
|
1422
|
+
declare const PageEditorPanel: FC<PageEditorPanelProps>;
|
|
1423
|
+
|
|
1424
|
+
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, EventItemContextProvider, 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, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, 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, 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{aC as AuthorFilter,aB as AuthorToolbarFilter,a8 as Avatar,au as ChannelFilter,aH as ChannelSelector,av as ChannelToolbarFilter,ay as ClearAllFiltersButton,a$ as ContactToolbarFilter,aR as EditorToolbarIndicators,b0 as EventDatesToolbarFilter,Y as EventDetail,b5 as EventEditor,b6 as EventEditorContextProvider,b7 as EventEditorPanel,b9 as EventEditorToolbarRecurringControls,b8 as EventEditorToolbarStateActions,al as EventItemContextProvider,aG as EventView,ab as EventsEditorDashboard,a3 as EventsGrid,a4 as EventsList,aD as FilterSearch,aW as GroupNotificationsSettings,a1 as ItemLayoutMode,aM as ItemResourceTypes,aP as KeywordPicker,az as KeywordsFilter,aA as KeywordsToolbarFilter,b1 as LogicalOperator,a5 as ManageChannels,V as NewsDetail,ao as NewsDetailPreview,aI as NewsEditor,aJ as NewsEditorContextProvider,aa as NewsEditorDashboard,aO as NewsEditorPanel,aN as NewsEditorToolbarStateActions,a2 as NewsGrid,a9 as NewsHero,aj as NewsItemContextProvider,ap as NewsItemPreviewContextProvider,a0 as NewsList,X as PageDetail,bb as PageEditor,ba as PageEditorContextProvider,bd as PageEditorPanel,bc as PageEditorToolbarStateActions,ak as PageItemContextProvider,b4 as PageType,aK as PageViewTrackerSettingsContextProvider,b2 as PagesGrid,b3 as PagesList,Z as PostDetail,aV as PostGroupSelector,aY as PostGroupSelectorButton,aU as PostGroupsPicker,aS as PostInputBox,aT as PostList,U as PostListContextProvider,ax as PublishingDateFilter,aw as PublishingDateToolbarFilter,S as ReachContextProvider,aQ as ReachDialog,aL as TargetLinkOverrideContextProvider,ac as Toolbar,af as ToolbarChannelSelector,ai as ToolbarCloseButton,aF as ToolbarEventViewSelector,ar as ToolbarFilterModal,as as ToolbarFilterModalButton,aq as ToolbarFilterPanel,aE as ToolbarFilterSearch,aZ as ToolbarFilterToggleButton,ad as ToolbarIconButton,am as ToolbarLanguageSelector,an as ToolbarManageNewsItemButton,ag as ToolbarMarkAllEventsAsReadButton,ah as ToolbarMarkAllNewsAsReadButton,am as ToolbarNewsLanguageSelector,aX as ToolbarPostNotificationButton,ae as ToolbarUnreadItemsButton,a7 as UserDetails,at as VerticalFilterPanel,a_ as isFilterActive,a6 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";
|