@livetiles/reach-plugin-types 0.5.0-preview.240 → 0.5.0-preview.241
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 +19 -10
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1981,11 +1981,6 @@ declare module "libs/reach/util/common/src/content/NewsItem" {
|
|
|
1981
1981
|
knownState: KnownNewsState;
|
|
1982
1982
|
hasNewComments?: boolean;
|
|
1983
1983
|
isLiked?: boolean;
|
|
1984
|
-
shareToken?: ShareToken;
|
|
1985
|
-
}
|
|
1986
|
-
export interface ShareToken {
|
|
1987
|
-
published?: string;
|
|
1988
|
-
preview?: string;
|
|
1989
1984
|
}
|
|
1990
1985
|
export interface NewsItemAlertOptions {
|
|
1991
1986
|
duration?: string;
|
|
@@ -2173,6 +2168,13 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
2173
2168
|
useExternalContent?: boolean;
|
|
2174
2169
|
isDemoContent?: boolean;
|
|
2175
2170
|
}
|
|
2171
|
+
export interface ShareablePublishableItem extends PublishableItem {
|
|
2172
|
+
shareToken: ShareToken;
|
|
2173
|
+
}
|
|
2174
|
+
export interface ShareToken {
|
|
2175
|
+
published?: string;
|
|
2176
|
+
preview?: string;
|
|
2177
|
+
}
|
|
2176
2178
|
export interface PublishableItemVersion extends PublishableItem {
|
|
2177
2179
|
itemId: string;
|
|
2178
2180
|
versionModificationDate: string;
|
|
@@ -8232,6 +8234,7 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
|
|
|
8232
8234
|
resourceType: ItemResourceTypes;
|
|
8233
8235
|
item: TItem;
|
|
8234
8236
|
itemId: string;
|
|
8237
|
+
relatedItemIds?: string[];
|
|
8235
8238
|
contentLanguage: string;
|
|
8236
8239
|
userPreferredLanguage: string;
|
|
8237
8240
|
activeLanguages: string[];
|
|
@@ -9289,6 +9292,7 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContextPr
|
|
|
9289
9292
|
type?: ItemResourceTypes;
|
|
9290
9293
|
loadItemFunc: (itemId: string) => Promise<PublishableItem>;
|
|
9291
9294
|
isEditorPreview?: boolean;
|
|
9295
|
+
relatedItemIds?: string[];
|
|
9292
9296
|
}>;
|
|
9293
9297
|
}
|
|
9294
9298
|
declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
|
|
@@ -10216,6 +10220,14 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
10216
10220
|
className?: string;
|
|
10217
10221
|
children?: ReactNode;
|
|
10218
10222
|
}>;
|
|
10223
|
+
export const OffsetDetailViewNavigation: import("styled-components").StyledComponent<FC<{
|
|
10224
|
+
offsetRight?: number;
|
|
10225
|
+
callout?: ReactNode;
|
|
10226
|
+
className?: string;
|
|
10227
|
+
children?: ReactNode;
|
|
10228
|
+
}>, import("styled-components").DefaultTheme, {
|
|
10229
|
+
offsetRightOverride?: number;
|
|
10230
|
+
}, never>;
|
|
10219
10231
|
}
|
|
10220
10232
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
10221
10233
|
import { FC } from 'react';
|
|
@@ -10680,7 +10692,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10680
10692
|
knownState: KnownNewsState;
|
|
10681
10693
|
hasNewComments?: boolean;
|
|
10682
10694
|
isLiked?: boolean;
|
|
10683
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
10684
10695
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
10685
10696
|
channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
|
|
10686
10697
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
@@ -10969,7 +10980,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10969
10980
|
knownState: KnownNewsState;
|
|
10970
10981
|
hasNewComments?: boolean;
|
|
10971
10982
|
isLiked?: boolean;
|
|
10972
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
10973
10983
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
10974
10984
|
channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
|
|
10975
10985
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
@@ -11200,7 +11210,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11200
11210
|
knownState: KnownNewsState;
|
|
11201
11211
|
hasNewComments?: boolean;
|
|
11202
11212
|
isLiked?: boolean;
|
|
11203
|
-
shareToken?: import("@livetiles/reach/util/common").ShareToken;
|
|
11204
11213
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
11205
11214
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
11206
11215
|
id?: string;
|
|
@@ -11848,8 +11857,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11848
11857
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11849
11858
|
export type ShareTokenType = 'preview' | 'published';
|
|
11850
11859
|
export function useShareTokenEditorApi(): {
|
|
11851
|
-
activateShareToken: (
|
|
11852
|
-
deleteShareToken: (
|
|
11860
|
+
activateShareToken: (itemId: string, tokenType?: ShareTokenType, relatedItemIds?: string[]) => Promise<string>;
|
|
11861
|
+
deleteShareToken: (itemId: string, tokenType?: ShareTokenType, relatedItemIds?: string[]) => Promise<unknown>;
|
|
11853
11862
|
};
|
|
11854
11863
|
}
|
|
11855
11864
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|