@livetiles/reach-plugin-types 0.5.0-preview.400 → 0.5.0-preview.401
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 +33 -42
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1836,15 +1836,6 @@ declare module "libs/reach/util/common/src/user/features/WithFeatures" {
|
|
|
1836
1836
|
export function useFeatures(): FeatureSet;
|
|
1837
1837
|
export function getEnabledFeatures(summary: SubscriptionSummary): FeatureSet;
|
|
1838
1838
|
}
|
|
1839
|
-
declare module "libs/reach/util/common/src/user/Channel" {
|
|
1840
|
-
export interface Channel {
|
|
1841
|
-
id: string;
|
|
1842
|
-
name: string;
|
|
1843
|
-
translations?: {
|
|
1844
|
-
[key: string]: string;
|
|
1845
|
-
};
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
1839
|
declare module "libs/reach/util/common/src/user/Member" {
|
|
1849
1840
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
1850
1841
|
import { GroupRoleNames } from "libs/reach/util/common/src/user/User";
|
|
@@ -1978,15 +1969,25 @@ declare module "libs/reach/util/common/src/content/KnownNewsState" {
|
|
|
1978
1969
|
Alert = 2
|
|
1979
1970
|
}
|
|
1980
1971
|
}
|
|
1972
|
+
declare module "libs/reach/util/common/src/channels/Channel" {
|
|
1973
|
+
export interface Channel {
|
|
1974
|
+
id: string;
|
|
1975
|
+
name: string;
|
|
1976
|
+
translations?: {
|
|
1977
|
+
[key: string]: string;
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
1981
|
declare module "libs/reach/util/common/src/content/NewsItem" {
|
|
1982
1982
|
import { NewsMetadata } from "libs/reach/util/common/src/content/NewsMetadata";
|
|
1983
1983
|
import { KnownNewsState } from "libs/reach/util/common/src/content/KnownNewsState";
|
|
1984
1984
|
import { PublishableItem } from "libs/reach/util/common/src/content/PublishableItem";
|
|
1985
|
+
import { Channel } from "libs/reach/util/common/src/channels/Channel";
|
|
1985
1986
|
export type Source = 'Condense' | 'External' | null;
|
|
1986
1987
|
export type VersionId = string;
|
|
1987
1988
|
export interface SchedulableItem extends PublishableItem {
|
|
1988
1989
|
metadata?: NewsMetadata;
|
|
1989
|
-
channels?:
|
|
1990
|
+
channels?: Channel[];
|
|
1990
1991
|
}
|
|
1991
1992
|
export interface NewsItem extends SchedulableItem {
|
|
1992
1993
|
source?: string;
|
|
@@ -2005,9 +2006,6 @@ declare module "libs/reach/util/common/src/content/NewsItem" {
|
|
|
2005
2006
|
newsId: string;
|
|
2006
2007
|
versionModificationDate: string;
|
|
2007
2008
|
}
|
|
2008
|
-
export interface SchedulableItemChannel {
|
|
2009
|
-
name: string;
|
|
2010
|
-
}
|
|
2011
2009
|
}
|
|
2012
2010
|
declare module "libs/reach/util/common/src/content/VideoSource" {
|
|
2013
2011
|
export enum VideoSource {
|
|
@@ -3163,7 +3161,6 @@ declare module "libs/reach/util/common/src/user/index" {
|
|
|
3163
3161
|
export * from "libs/reach/util/common/src/user/Account";
|
|
3164
3162
|
export * from "libs/reach/util/common/src/user/Audience";
|
|
3165
3163
|
export * from "libs/reach/util/common/src/user/BasicUserInformation";
|
|
3166
|
-
export * from "libs/reach/util/common/src/user/Channel";
|
|
3167
3164
|
export * from "libs/reach/util/common/src/user/Member";
|
|
3168
3165
|
export * from "libs/reach/util/common/src/user/Organization";
|
|
3169
3166
|
export * from "libs/reach/util/common/src/user/Subscription";
|
|
@@ -3615,7 +3612,7 @@ declare module "libs/reach/util/common/src/keywords/index" {
|
|
|
3615
3612
|
export * from "libs/reach/util/common/src/keywords/useKeywordsApi";
|
|
3616
3613
|
}
|
|
3617
3614
|
declare module "libs/reach/util/common/src/channels/useChannelsApi" {
|
|
3618
|
-
import { Channel } from "libs/reach/util/common/src/
|
|
3615
|
+
import { Channel } from "libs/reach/util/common/src/channels/Channel";
|
|
3619
3616
|
export function useChannelsApi(): {
|
|
3620
3617
|
getChannels: () => Promise<Channel[]>;
|
|
3621
3618
|
getChannelsByItemId: (id: string, route?: string) => Promise<Channel[]>;
|
|
@@ -3629,6 +3626,7 @@ declare module "libs/reach/util/common/src/channels/useCachedChannelsApi" {
|
|
|
3629
3626
|
declare module "libs/reach/util/common/src/channels/index" {
|
|
3630
3627
|
export * from "libs/reach/util/common/src/channels/useCachedChannelsApi";
|
|
3631
3628
|
export * from "libs/reach/util/common/src/channels/useChannelsApi";
|
|
3629
|
+
export * from "libs/reach/util/common/src/channels/Channel";
|
|
3632
3630
|
}
|
|
3633
3631
|
declare module "libs/reach/util/common/src/subscription/EnforcedSubscriptionContextProvider" {
|
|
3634
3632
|
import { FC, ReactNode } from 'react';
|
|
@@ -3639,7 +3637,7 @@ declare module "libs/reach/util/common/src/subscription/EnforcedSubscriptionCont
|
|
|
3639
3637
|
declare module "libs/reach/util/common/src/subscription/SubscriptionContext" {
|
|
3640
3638
|
import { FC } from 'react';
|
|
3641
3639
|
import { Keyword, KeywordGroup } from "libs/reach/util/common/src/content/KeywordGroup";
|
|
3642
|
-
import { Channel } from "libs/reach/util/common/src/
|
|
3640
|
+
import { Channel } from "libs/reach/util/common/src/channels/Channel";
|
|
3643
3641
|
import { KeywordsByGroupId } from "libs/reach/util/common/src/keywords/useKeywordsApi";
|
|
3644
3642
|
interface SubscriptionData {
|
|
3645
3643
|
channels?: Channel[];
|
|
@@ -3724,7 +3722,7 @@ declare module "libs/reach/util/common/src/keyword-utils" {
|
|
|
3724
3722
|
import { SchedulableItem } from "libs/reach/util/common/src/content/NewsItem";
|
|
3725
3723
|
import { PublishableItem } from "libs/reach/util/common/src/content/PublishableItem";
|
|
3726
3724
|
import { KeywordsByGroupId } from "libs/reach/util/common/src/keywords/useKeywordsApi";
|
|
3727
|
-
import { Channel } from "libs/reach/util/common/src/
|
|
3725
|
+
import { Channel } from "libs/reach/util/common/src/channels/Channel";
|
|
3728
3726
|
import { FeatureSet } from "libs/reach/util/common/src/user/features/FeatureSet";
|
|
3729
3727
|
import { CurrentUser, UserGroup } from "libs/reach/util/common/src/user/User";
|
|
3730
3728
|
export function getGroupKeywords(groups: UserGroup[], features: FeatureSet, allKeywords: Keyword[], keywordsByGroupId: KeywordsByGroupId): KeywordsByGroupId;
|
|
@@ -4672,7 +4670,7 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
|
|
|
4672
4670
|
import { Channel } from "libs/reach/util/common/src/index";
|
|
4673
4671
|
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
4674
4672
|
interface Props {
|
|
4675
|
-
channel: Channel
|
|
4673
|
+
channel: Channel;
|
|
4676
4674
|
language?: string;
|
|
4677
4675
|
applyChannelBubbleStyle?: boolean;
|
|
4678
4676
|
role?: string;
|
|
@@ -4680,10 +4678,10 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelTitle" {
|
|
|
4680
4678
|
}
|
|
4681
4679
|
export const ChannelTitle: FC<Props>;
|
|
4682
4680
|
export const ChannelTitles: FC<{
|
|
4683
|
-
channels:
|
|
4681
|
+
channels: Channel[];
|
|
4684
4682
|
language?: string;
|
|
4685
4683
|
}>;
|
|
4686
|
-
export function getChannelDisplayName(
|
|
4684
|
+
export function getChannelDisplayName(channel: Channel, user: CurrentUser, language?: string): string;
|
|
4687
4685
|
}
|
|
4688
4686
|
declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
|
|
4689
4687
|
import { UserChannelSubscription } from "libs/reach/util/common/src/index";
|
|
@@ -4708,16 +4706,17 @@ declare module "libs/reach/ui/common/src/common/channels/ChannelItem" {
|
|
|
4708
4706
|
}
|
|
4709
4707
|
declare module "libs/reach/ui/common/src/common/channels/ChannelList" {
|
|
4710
4708
|
import { FC } from 'react';
|
|
4709
|
+
import { Channel } from "libs/reach/util/common/src/index";
|
|
4711
4710
|
export interface ChannelStyleDefinition {
|
|
4712
4711
|
backgroundColor?: string;
|
|
4713
4712
|
color?: string;
|
|
4714
4713
|
}
|
|
4715
4714
|
export const ChannelList: FC<{
|
|
4716
|
-
channels:
|
|
4715
|
+
channels: Channel[];
|
|
4717
4716
|
language: string;
|
|
4718
4717
|
channelStyleDefinition?: ChannelStyleDefinition;
|
|
4719
4718
|
visibleChannelsCount?: number;
|
|
4720
|
-
onChannelClick?: (channel:
|
|
4719
|
+
onChannelClick?: (channel: Channel) => unknown;
|
|
4721
4720
|
className?: string;
|
|
4722
4721
|
}>;
|
|
4723
4722
|
}
|
|
@@ -4725,7 +4724,7 @@ declare module "libs/reach/ui/common/src/common/channels/ClickableChannelTitles"
|
|
|
4725
4724
|
import { FC } from 'react';
|
|
4726
4725
|
import { Channel } from "libs/reach/util/common/src/index";
|
|
4727
4726
|
export const ClickableChannelTitles: FC<{
|
|
4728
|
-
channels:
|
|
4727
|
+
channels: Channel[];
|
|
4729
4728
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
4730
4729
|
language?: string;
|
|
4731
4730
|
channelBackgroundColor?: string;
|
|
@@ -9258,16 +9257,14 @@ declare module "libs/reach/feature/content/src/news/DateInfo" {
|
|
|
9258
9257
|
}
|
|
9259
9258
|
declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
9260
9259
|
import { FC } from 'react';
|
|
9261
|
-
import { SchedulableItemChannel } from "libs/reach/util/common/src/index";
|
|
9262
9260
|
import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
|
|
9263
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
9264
|
-
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
9261
|
+
import { Account, Channel, PublishableItem } from "libs/reach/util/common/src/index";
|
|
9265
9262
|
export const getAuthor: (item: Partial<PublishableItem>) => Account;
|
|
9266
9263
|
export const ItemMetaInfo: FC<{
|
|
9267
9264
|
item: Partial<PublishableItem>;
|
|
9268
9265
|
className?: string;
|
|
9269
9266
|
expiryDate?: string;
|
|
9270
|
-
channels?:
|
|
9267
|
+
channels?: Channel[];
|
|
9271
9268
|
showChannels?: boolean;
|
|
9272
9269
|
dateMode: DateMode;
|
|
9273
9270
|
readOnly?: boolean;
|
|
@@ -10594,7 +10591,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
|
|
|
10594
10591
|
export * from "libs/reach/feature/content/src/posts/utils";
|
|
10595
10592
|
}
|
|
10596
10593
|
declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
10597
|
-
import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope,
|
|
10594
|
+
import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, ItemResourceTypes, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
|
|
10598
10595
|
import { Post } from "libs/reach/feature/content/src/posts/index";
|
|
10599
10596
|
import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
|
|
10600
10597
|
enum StreamItemTypes {
|
|
@@ -10812,7 +10809,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10812
10809
|
hasNewComments?: boolean;
|
|
10813
10810
|
isLiked?: boolean;
|
|
10814
10811
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
10815
|
-
channels?:
|
|
10812
|
+
channels?: Channel[];
|
|
10816
10813
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
10817
10814
|
id?: string;
|
|
10818
10815
|
versionId?: string;
|
|
@@ -10918,7 +10915,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
10918
10915
|
isSeriesMaster?: string;
|
|
10919
10916
|
isVirtual?: boolean;
|
|
10920
10917
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
10921
|
-
channels?:
|
|
10918
|
+
channels?: Channel[];
|
|
10922
10919
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
10923
10920
|
id?: string;
|
|
10924
10921
|
versionId?: string;
|
|
@@ -11055,7 +11052,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11055
11052
|
poll?: import("@livetiles/reach/util/common").Poll;
|
|
11056
11053
|
searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
|
|
11057
11054
|
})[];
|
|
11058
|
-
export function convertProperties(items: StreamItem[],
|
|
11055
|
+
export function convertProperties(items: StreamItem[], subscriptionChannels?: Channel[]): ({
|
|
11059
11056
|
keywords: {
|
|
11060
11057
|
[key: string]: Keyword[];
|
|
11061
11058
|
};
|
|
@@ -11101,7 +11098,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11101
11098
|
hasNewComments?: boolean;
|
|
11102
11099
|
isLiked?: boolean;
|
|
11103
11100
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
11104
|
-
channels?:
|
|
11101
|
+
channels?: Channel[];
|
|
11105
11102
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
11106
11103
|
id?: string;
|
|
11107
11104
|
versionId?: string;
|
|
@@ -11156,7 +11153,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11156
11153
|
isSeriesMaster?: string;
|
|
11157
11154
|
isVirtual?: boolean;
|
|
11158
11155
|
metadata?: import("@livetiles/reach/util/common").NewsMetadata;
|
|
11159
|
-
channels?:
|
|
11156
|
+
channels?: Channel[];
|
|
11160
11157
|
lease: import("@livetiles/reach/util/common").LeaseInfo;
|
|
11161
11158
|
id?: string;
|
|
11162
11159
|
versionId?: string;
|
|
@@ -11249,9 +11246,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11249
11246
|
modifiedOn?: string;
|
|
11250
11247
|
modifiedBy?: import("@livetiles/reach/util/common").Account;
|
|
11251
11248
|
};
|
|
11252
|
-
channels:
|
|
11253
|
-
name: string;
|
|
11254
|
-
}[];
|
|
11249
|
+
channels: Channel[];
|
|
11255
11250
|
contents: {};
|
|
11256
11251
|
bannerInfo: {
|
|
11257
11252
|
videoSource: import("@livetiles/reach/util/common").VideoSource;
|
|
@@ -11303,9 +11298,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11303
11298
|
modifiedOn?: string;
|
|
11304
11299
|
modifiedBy?: import("@livetiles/reach/util/common").Account;
|
|
11305
11300
|
};
|
|
11306
|
-
channels:
|
|
11307
|
-
name: string;
|
|
11308
|
-
}[];
|
|
11301
|
+
channels: Channel[];
|
|
11309
11302
|
contents: {};
|
|
11310
11303
|
bannerInfo: {
|
|
11311
11304
|
videoSource: import("@livetiles/reach/util/common").VideoSource;
|
|
@@ -11371,9 +11364,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
11371
11364
|
modifiedOn?: string;
|
|
11372
11365
|
modifiedBy?: import("@livetiles/reach/util/common").Account;
|
|
11373
11366
|
};
|
|
11374
|
-
channels:
|
|
11375
|
-
name: string;
|
|
11376
|
-
}[];
|
|
11367
|
+
channels: Channel[];
|
|
11377
11368
|
contents: {};
|
|
11378
11369
|
bannerInfo: {
|
|
11379
11370
|
videoSource: import("@livetiles/reach/util/common").VideoSource;
|