@livetiles/reach-plugin-types 0.4.36 → 0.4.38
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/lib/index.d.ts +42 -15
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1965,11 +1965,6 @@ declare module "libs/reach/util/common/src/content/NewsItem" {
|
|
|
1965
1965
|
knownState: KnownNewsState;
|
|
1966
1966
|
hasNewComments?: boolean;
|
|
1967
1967
|
isLiked?: boolean;
|
|
1968
|
-
shareToken?: ShareToken;
|
|
1969
|
-
}
|
|
1970
|
-
export interface ShareToken {
|
|
1971
|
-
published?: string;
|
|
1972
|
-
preview?: string;
|
|
1973
1968
|
}
|
|
1974
1969
|
export interface NewsItemAlertOptions {
|
|
1975
1970
|
duration?: string;
|
|
@@ -2145,6 +2140,13 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
2145
2140
|
useExternalContent?: boolean;
|
|
2146
2141
|
isDemoContent?: boolean;
|
|
2147
2142
|
}
|
|
2143
|
+
export interface ShareablePublishableItem extends PublishableItem {
|
|
2144
|
+
shareToken: ShareToken;
|
|
2145
|
+
}
|
|
2146
|
+
export interface ShareToken {
|
|
2147
|
+
published?: string;
|
|
2148
|
+
preview?: string;
|
|
2149
|
+
}
|
|
2148
2150
|
export interface PublishableItemVersion extends PublishableItem {
|
|
2149
2151
|
itemId: string;
|
|
2150
2152
|
versionModificationDate: string;
|
|
@@ -3898,7 +3900,7 @@ declare module "libs/reach/ui/common/src/common/DateTime" {
|
|
|
3898
3900
|
export const isSameDay: (value: moment.MomentInput) => boolean;
|
|
3899
3901
|
export const DateTime: FC<Props>;
|
|
3900
3902
|
export const DateTimeRange: FC<{
|
|
3901
|
-
startDate
|
|
3903
|
+
startDate?: string;
|
|
3902
3904
|
endDate?: string;
|
|
3903
3905
|
className?: string;
|
|
3904
3906
|
}>;
|
|
@@ -8046,6 +8048,7 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
|
|
|
8046
8048
|
resourceType: ItemResourceTypes;
|
|
8047
8049
|
item: TItem;
|
|
8048
8050
|
itemId: string;
|
|
8051
|
+
relatedItemIds?: string[];
|
|
8049
8052
|
contentLanguage: string;
|
|
8050
8053
|
userPreferredLanguage: string;
|
|
8051
8054
|
activeLanguages: string[];
|
|
@@ -8750,6 +8753,7 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
|
|
|
8750
8753
|
hideCurrentPageNode?: boolean;
|
|
8751
8754
|
homeTargetUrlOverride?: string;
|
|
8752
8755
|
className?: string;
|
|
8756
|
+
readonly?: boolean;
|
|
8753
8757
|
}>;
|
|
8754
8758
|
}
|
|
8755
8759
|
declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
|
|
@@ -8811,6 +8815,7 @@ declare module "libs/reach/feature/content/src/pages/PageTocNode" {
|
|
|
8811
8815
|
hide?: boolean;
|
|
8812
8816
|
onPageSelected?: (pageId: string) => unknown;
|
|
8813
8817
|
selectedPageId?: string;
|
|
8818
|
+
readonly?: boolean;
|
|
8814
8819
|
}>;
|
|
8815
8820
|
}
|
|
8816
8821
|
declare module "libs/reach/feature/content/src/pages/PageTableOfContents" {
|
|
@@ -8827,6 +8832,7 @@ declare module "libs/reach/feature/content/src/pages/PageTableOfContents" {
|
|
|
8827
8832
|
selectedPageId?: string;
|
|
8828
8833
|
isLoading?: boolean;
|
|
8829
8834
|
disableScrollableList?: boolean;
|
|
8835
|
+
readonly?: boolean;
|
|
8830
8836
|
}>;
|
|
8831
8837
|
export const PageTableOfContentsInPanel: FC<{
|
|
8832
8838
|
basePath?: string;
|
|
@@ -8849,6 +8855,7 @@ declare module "libs/reach/feature/content/src/pages/PageTableOfContentsDialog"
|
|
|
8849
8855
|
onSearch: (value: string) => Promise<PaginatedList<PageItem>>;
|
|
8850
8856
|
onDismiss: () => void;
|
|
8851
8857
|
basePath: string;
|
|
8858
|
+
readonly?: boolean;
|
|
8852
8859
|
}>;
|
|
8853
8860
|
}
|
|
8854
8861
|
declare module "libs/reach/feature/content/src/pages/PageTableOfContentsButton" {
|
|
@@ -8872,6 +8879,7 @@ declare module "libs/reach/feature/content/src/pages/PagesDetailViewNavigation"
|
|
|
8872
8879
|
activePageId: string;
|
|
8873
8880
|
navigationContext: PageNavigationContext;
|
|
8874
8881
|
className?: string;
|
|
8882
|
+
readonly?: boolean;
|
|
8875
8883
|
}
|
|
8876
8884
|
export const PagesDetailViewNavigation: FC<Props>;
|
|
8877
8885
|
}
|
|
@@ -9093,6 +9101,7 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContextPr
|
|
|
9093
9101
|
type?: ItemResourceTypes;
|
|
9094
9102
|
loadItemFunc: (itemId: string) => Promise<PublishableItem>;
|
|
9095
9103
|
isEditorPreview?: boolean;
|
|
9104
|
+
relatedItemIds?: string[];
|
|
9096
9105
|
}>;
|
|
9097
9106
|
}
|
|
9098
9107
|
declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
|
|
@@ -9167,6 +9176,7 @@ declare module "libs/reach/feature/content/src/common/body/inline-page-list/Inli
|
|
|
9167
9176
|
baseRoute: string;
|
|
9168
9177
|
filterBaseUrl?: string;
|
|
9169
9178
|
isInitialLoading?: boolean;
|
|
9179
|
+
readonly?: boolean;
|
|
9170
9180
|
}>;
|
|
9171
9181
|
}
|
|
9172
9182
|
declare module "libs/reach/feature/content/src/common/body/inline-page-list/EmptyPageList" {
|
|
@@ -9194,6 +9204,7 @@ declare module "libs/reach/feature/content/src/common/body/inline-page-list/Inli
|
|
|
9194
9204
|
pagingProps?: ListPagingProps;
|
|
9195
9205
|
filterBaseUrl?: string;
|
|
9196
9206
|
emptyListMessage: string;
|
|
9207
|
+
readonly?: boolean;
|
|
9197
9208
|
}>;
|
|
9198
9209
|
}
|
|
9199
9210
|
declare module "libs/reach/feature/content/src/common/body/inline-page-list/useItemLoaderByCurrentPage" {
|
|
@@ -9385,6 +9396,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9385
9396
|
export const DetailViewCsvExportButton: FC<{
|
|
9386
9397
|
path: string;
|
|
9387
9398
|
stringResource: string;
|
|
9399
|
+
isReadOnly?: boolean;
|
|
9388
9400
|
className?: string;
|
|
9389
9401
|
}>;
|
|
9390
9402
|
}
|
|
@@ -9444,6 +9456,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9444
9456
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewResponseExportButton" {
|
|
9445
9457
|
import { FC } from 'react';
|
|
9446
9458
|
export const EventDetailViewResponseExportButton: FC<{
|
|
9459
|
+
isReadOnly?: boolean;
|
|
9447
9460
|
className?: string;
|
|
9448
9461
|
}>;
|
|
9449
9462
|
}
|
|
@@ -9456,8 +9469,9 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
9456
9469
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewUserRegistration" {
|
|
9457
9470
|
import { FC } from 'react';
|
|
9458
9471
|
export const EventDetailViewUserRegistration: FC<{
|
|
9459
|
-
className?: string;
|
|
9460
9472
|
hideInfoMessage?: boolean;
|
|
9473
|
+
isReadOnly?: boolean;
|
|
9474
|
+
className?: string;
|
|
9461
9475
|
}>;
|
|
9462
9476
|
}
|
|
9463
9477
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterSomeoneElseDialog" {
|
|
@@ -9498,7 +9512,9 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
9498
9512
|
}
|
|
9499
9513
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationParticipantsLink" {
|
|
9500
9514
|
import { FC } from 'react';
|
|
9501
|
-
export const EventRegistrationParticipantsLink: FC
|
|
9515
|
+
export const EventRegistrationParticipantsLink: FC<{
|
|
9516
|
+
isReadOnly?: boolean;
|
|
9517
|
+
}>;
|
|
9502
9518
|
}
|
|
9503
9519
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewRegistrationPoll" {
|
|
9504
9520
|
import { FC } from 'react';
|
|
@@ -9759,12 +9775,15 @@ declare module "libs/reach/feature/content/src/feedback/EventDownloadCalendarFil
|
|
|
9759
9775
|
import { EventItem } from "libs/reach/util/common/src/index";
|
|
9760
9776
|
export const EventDownloadCalendarFileButton: FC<{
|
|
9761
9777
|
item: EventItem;
|
|
9778
|
+
isReadOnly: boolean;
|
|
9762
9779
|
className?: string;
|
|
9763
9780
|
}>;
|
|
9764
9781
|
}
|
|
9765
9782
|
declare module "libs/reach/feature/content/src/feedback/buttons/EventFeedbackButtonDownloadCalendarFile" {
|
|
9766
9783
|
import { FC } from 'react';
|
|
9767
|
-
export const EventFeedbackButtonDownloadCalendarFile: FC
|
|
9784
|
+
export const EventFeedbackButtonDownloadCalendarFile: FC<{
|
|
9785
|
+
isReadOnly: boolean;
|
|
9786
|
+
}>;
|
|
9768
9787
|
}
|
|
9769
9788
|
declare module "libs/reach/feature/content/src/feedback/ShareButton" {
|
|
9770
9789
|
import { FC } from 'react';
|
|
@@ -9792,11 +9811,14 @@ declare module "libs/reach/feature/content/src/feedback/ConfirmationStatisticsEx
|
|
|
9792
9811
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
9793
9812
|
export const ConfirmationStatisticsExport: FC<{
|
|
9794
9813
|
item: PublishableItem;
|
|
9814
|
+
isReadOnly?: boolean;
|
|
9795
9815
|
}>;
|
|
9796
9816
|
}
|
|
9797
9817
|
declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtonConfirmations" {
|
|
9798
9818
|
import { FC } from 'react';
|
|
9799
|
-
export const FeedbackButtonConfirmations: FC
|
|
9819
|
+
export const FeedbackButtonConfirmations: FC<{
|
|
9820
|
+
isReadOnly?: boolean;
|
|
9821
|
+
}>;
|
|
9800
9822
|
}
|
|
9801
9823
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewFeedbackSection" {
|
|
9802
9824
|
import { FC } from 'react';
|
|
@@ -10024,6 +10046,14 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
10024
10046
|
className?: string;
|
|
10025
10047
|
children?: ReactNode;
|
|
10026
10048
|
}>;
|
|
10049
|
+
export const OffsetDetailViewNavigation: import("styled-components").StyledComponent<FC<{
|
|
10050
|
+
offsetRight?: number;
|
|
10051
|
+
callout?: ReactNode;
|
|
10052
|
+
className?: string;
|
|
10053
|
+
children?: ReactNode;
|
|
10054
|
+
}>, import("styled-components").DefaultTheme, {
|
|
10055
|
+
offsetRightOverride?: number;
|
|
10056
|
+
}, never>;
|
|
10027
10057
|
}
|
|
10028
10058
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
10029
10059
|
import { FC } from 'react';
|
|
@@ -10862,7 +10892,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10862
10892
|
knownState: KnownNewsState;
|
|
10863
10893
|
hasNewComments?: boolean;
|
|
10864
10894
|
isLiked?: boolean;
|
|
10865
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
10866
10895
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
10867
10896
|
channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
|
|
10868
10897
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
@@ -11147,7 +11176,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11147
11176
|
knownState: KnownNewsState;
|
|
11148
11177
|
hasNewComments?: boolean;
|
|
11149
11178
|
isLiked?: boolean;
|
|
11150
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
11151
11179
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
11152
11180
|
channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
|
|
11153
11181
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
@@ -11374,7 +11402,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11374
11402
|
knownState: KnownNewsState;
|
|
11375
11403
|
hasNewComments?: boolean;
|
|
11376
11404
|
isLiked?: boolean;
|
|
11377
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
11378
11405
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
11379
11406
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
11380
11407
|
id?: string;
|
|
@@ -11638,8 +11665,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11638
11665
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11639
11666
|
export type ShareTokenType = 'preview' | 'published';
|
|
11640
11667
|
export function useShareTokenEditorApi(): {
|
|
11641
|
-
activateShareToken: (
|
|
11642
|
-
deleteShareToken: (
|
|
11668
|
+
activateShareToken: (itemId: string, tokenType?: ShareTokenType, relatedItemIds?: string[]) => Promise<string>;
|
|
11669
|
+
deleteShareToken: (itemId: string, tokenType?: ShareTokenType, relatedItemIds?: string[]) => Promise<unknown>;
|
|
11643
11670
|
};
|
|
11644
11671
|
}
|
|
11645
11672
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|