@livetiles/reach-plugin-types 0.5.0-preview.1150 → 0.5.0-preview.1152
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 +934 -914
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7047,188 +7047,152 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
7047
7047
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
7048
7048
|
export * from "libs/reach/ui/common/src/reach-2/index";
|
|
7049
7049
|
}
|
|
7050
|
-
declare module "libs/reach/feature/content/src/
|
|
7051
|
-
import {
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
isLineBreak: boolean;
|
|
7059
|
-
link: Link;
|
|
7060
|
-
mention: {
|
|
7061
|
-
name: string;
|
|
7062
|
-
id: string;
|
|
7063
|
-
};
|
|
7064
|
-
hashtag: string;
|
|
7050
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7051
|
+
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7052
|
+
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7053
|
+
export interface KalturaProperties {
|
|
7054
|
+
sp: string;
|
|
7055
|
+
uiconfId: string;
|
|
7056
|
+
partnerId: string;
|
|
7057
|
+
entryId: string;
|
|
7065
7058
|
}
|
|
7066
|
-
export
|
|
7067
|
-
|
|
7059
|
+
export interface MicrosoftStreamProperties {
|
|
7060
|
+
isSharePoint: boolean;
|
|
7061
|
+
}
|
|
7062
|
+
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
7063
|
+
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7064
|
+
export class VideoUrlParser {
|
|
7065
|
+
private url;
|
|
7066
|
+
private additionalVideoSources?;
|
|
7067
|
+
private static ytRegex;
|
|
7068
|
+
private static vimeoRegex;
|
|
7069
|
+
private static microsoftStreamRegex;
|
|
7070
|
+
private static microsoftStreamSharepointRegex;
|
|
7071
|
+
private static vimeoDirectLinkRegex;
|
|
7072
|
+
private static vimeoRedirectLinkRegex;
|
|
7073
|
+
private static kalturaRegex;
|
|
7074
|
+
readonly source: VideoSource | null;
|
|
7075
|
+
readonly id: string | null;
|
|
7076
|
+
readonly isDirectVideoUrl: boolean;
|
|
7077
|
+
readonly videoProperties: TVideoProperties | null;
|
|
7078
|
+
readonly thumbnailUrl: string | null;
|
|
7079
|
+
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7080
|
+
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7081
|
+
isValid(features: FeatureSet): boolean;
|
|
7082
|
+
isSharepointUrl(url: string): boolean;
|
|
7083
|
+
}
|
|
7084
|
+
export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7085
|
+
export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7068
7086
|
}
|
|
7069
|
-
declare module "libs/reach/feature/content/src/
|
|
7087
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
|
|
7070
7088
|
import { FC } from 'react';
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
export const ContentDisplay: FC<{
|
|
7078
|
-
content: string;
|
|
7079
|
-
handlers: ContentDisplayHandler[];
|
|
7080
|
-
getHashtagRoute?: (hashtag: string) => string;
|
|
7081
|
-
children?: (content: string, index: number) => JSX.Element;
|
|
7089
|
+
import { VideoInfo } from "libs/reach/feature/content/src/index";
|
|
7090
|
+
export const VideoCustomThumbnailPicker: FC<{
|
|
7091
|
+
videoInfo: VideoInfo;
|
|
7092
|
+
onCustomThumbnailAdded: (file: File | null) => void;
|
|
7093
|
+
onRemoveCustomThumbnail: () => void;
|
|
7094
|
+
customThumbnail?: File | null;
|
|
7082
7095
|
}>;
|
|
7083
7096
|
}
|
|
7084
|
-
declare module "libs/reach/feature/content/src/
|
|
7085
|
-
import {
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
onBehalfOfUpn: string;
|
|
7093
|
-
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
7094
|
-
}
|
|
7095
|
-
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
7096
|
-
static type: string;
|
|
7097
|
-
type: string;
|
|
7098
|
-
itemId: string;
|
|
7099
|
-
response: EventResponse;
|
|
7100
|
-
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
7101
|
-
}
|
|
7102
|
-
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
7103
|
-
static type: string;
|
|
7104
|
-
type: string;
|
|
7105
|
-
recurrenceSeriesId: string;
|
|
7106
|
-
response: EventResponse;
|
|
7107
|
-
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
7108
|
-
}
|
|
7109
|
-
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
7110
|
-
static type: string;
|
|
7111
|
-
type: string;
|
|
7112
|
-
followState: boolean;
|
|
7113
|
-
itemId: string;
|
|
7114
|
-
static create(itemId: string, followState: boolean): FollowCommentsTriggerAction;
|
|
7115
|
-
}
|
|
7116
|
-
export class AutoFollowPostsTriggerAction implements AppTriggerAction {
|
|
7117
|
-
static type: string;
|
|
7118
|
-
type: string;
|
|
7119
|
-
followByDefault: boolean;
|
|
7120
|
-
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
7121
|
-
}
|
|
7122
|
-
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
7123
|
-
static type: string;
|
|
7124
|
-
type: string;
|
|
7125
|
-
recurrenceSeriesId: string;
|
|
7126
|
-
isLiked: boolean;
|
|
7127
|
-
likeCount: number;
|
|
7128
|
-
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
7129
|
-
}
|
|
7130
|
-
export class AutoFollowItemTriggerAction implements AppTriggerAction {
|
|
7131
|
-
static type: string;
|
|
7132
|
-
type: string;
|
|
7133
|
-
recurrenceSeriesId: string;
|
|
7134
|
-
isFollowed: boolean;
|
|
7135
|
-
static create(recurrenceSeriesId: string, isFollowed: boolean): AutoFollowItemTriggerAction;
|
|
7136
|
-
}
|
|
7137
|
-
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
7138
|
-
static type: string;
|
|
7139
|
-
type: string;
|
|
7140
|
-
itemIds: string[];
|
|
7141
|
-
static create(itemIds: string[]): DeletedItemsTriggerAction;
|
|
7142
|
-
}
|
|
7143
|
-
export class PromptPublicUserLoginAction implements AppTriggerAction {
|
|
7144
|
-
type: string;
|
|
7145
|
-
static create(): ForbiddenErrorTriggerAction;
|
|
7146
|
-
}
|
|
7147
|
-
export class FeedMarkAllAsReadAction implements AppTriggerAction {
|
|
7148
|
-
static type: string;
|
|
7149
|
-
type: string;
|
|
7150
|
-
static create(): FeedMarkAllAsReadAction;
|
|
7151
|
-
}
|
|
7152
|
-
export class StreamMarkAllAsReadAction implements AppTriggerAction {
|
|
7153
|
-
static type: string;
|
|
7154
|
-
type: string;
|
|
7155
|
-
static create(): StreamMarkAllAsReadAction;
|
|
7156
|
-
}
|
|
7157
|
-
export class RefetchItemAction implements AppTriggerAction {
|
|
7158
|
-
static type: string;
|
|
7159
|
-
type: string;
|
|
7160
|
-
itemId: string;
|
|
7161
|
-
static create(itemId: string): RefetchItemAction;
|
|
7162
|
-
}
|
|
7163
|
-
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
7164
|
-
static type: string;
|
|
7165
|
-
type: string;
|
|
7166
|
-
itemId: string;
|
|
7167
|
-
static create(itemId: string): RefetchStreamItemAction;
|
|
7168
|
-
}
|
|
7169
|
-
export class PagesRecycleBinCleanUpAction implements AppTriggerAction {
|
|
7170
|
-
static type: string;
|
|
7171
|
-
type: string;
|
|
7172
|
-
pageId: string;
|
|
7173
|
-
parentId: string;
|
|
7174
|
-
affectedGroupIds: string[];
|
|
7175
|
-
static create(pageId: string, parentId: string, affectedGroupIds: string[]): PagesRecycleBinCleanUpAction;
|
|
7097
|
+
declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
|
|
7098
|
+
import { FC } from 'react';
|
|
7099
|
+
import { BannerInfo, VideoSource } from "libs/reach/util/common/src/index";
|
|
7100
|
+
export interface VideoInfo {
|
|
7101
|
+
id: string;
|
|
7102
|
+
source: VideoSource;
|
|
7103
|
+
url?: string;
|
|
7104
|
+
isDirectUrl?: boolean;
|
|
7176
7105
|
}
|
|
7106
|
+
export const InsertVideoDialog: FC<{
|
|
7107
|
+
titleResource: string;
|
|
7108
|
+
onCancel: () => void;
|
|
7109
|
+
onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
|
|
7110
|
+
isOpen?: boolean;
|
|
7111
|
+
disableCustomThumbnail?: boolean;
|
|
7112
|
+
initialDataProps?: {
|
|
7113
|
+
bannerInfo: BannerInfo;
|
|
7114
|
+
itemId: string;
|
|
7115
|
+
token: string;
|
|
7116
|
+
subscriptionId: string;
|
|
7117
|
+
};
|
|
7118
|
+
}>;
|
|
7177
7119
|
}
|
|
7178
|
-
declare module "libs/reach/feature/content/src/
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7120
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
7121
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7122
|
+
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
7123
|
+
export const getMicrosoftStreamVideoUrl: (url: string) => string;
|
|
7124
|
+
export class VideoElementGenerator {
|
|
7125
|
+
private videoInfo;
|
|
7126
|
+
private iframeAreaLabel;
|
|
7127
|
+
private autoplay?;
|
|
7128
|
+
private width?;
|
|
7129
|
+
private videoProperties?;
|
|
7130
|
+
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
7131
|
+
private getYouTubeVideoElement;
|
|
7132
|
+
private getVimeoVideoElement;
|
|
7133
|
+
private getExternalVimeoVideoElement;
|
|
7134
|
+
private getMicrosoftStreamSharePointVideoElement;
|
|
7135
|
+
private getMicrosoftStreamVideoElement;
|
|
7136
|
+
private getKalturaVideoElement;
|
|
7137
|
+
private getGenericURLVideoElement;
|
|
7138
|
+
private getVideoElement;
|
|
7139
|
+
private getNotSupportedElement;
|
|
7140
|
+
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
7141
|
+
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Kaltura" | "Microsoft Stream" | "Generic";
|
|
7187
7142
|
}
|
|
7188
7143
|
}
|
|
7189
|
-
declare module "libs/reach/feature/content/src/
|
|
7190
|
-
import {
|
|
7191
|
-
import {
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
7200
|
-
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
7201
|
-
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
7202
|
-
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
7203
|
-
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
7204
|
-
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
7205
|
-
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
7206
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes, formattedContent?: string) => Promise<Comment>;
|
|
7207
|
-
onCommentCreated$: import("rxjs").Observable<string>;
|
|
7208
|
-
};
|
|
7209
|
-
}
|
|
7210
|
-
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
7211
|
-
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
7144
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
|
|
7145
|
+
import { FC } from 'react';
|
|
7146
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7147
|
+
export const VideoView: FC<{
|
|
7148
|
+
videoInfo: VideoInfo;
|
|
7149
|
+
autoplay?: boolean;
|
|
7150
|
+
width?: string;
|
|
7151
|
+
parentId?: string;
|
|
7152
|
+
className?: string;
|
|
7153
|
+
}>;
|
|
7212
7154
|
}
|
|
7213
|
-
declare module "libs/reach/feature/content/src/
|
|
7155
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
|
|
7214
7156
|
import { FC } from 'react';
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7157
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7158
|
+
export const VideoWithThumbnailView: FC<{
|
|
7159
|
+
videoInfo: VideoInfo;
|
|
7160
|
+
videoThumbnailUrl: string;
|
|
7161
|
+
parentId?: string;
|
|
7162
|
+
className?: string;
|
|
7219
7163
|
}>;
|
|
7220
7164
|
}
|
|
7221
|
-
declare module "libs/reach/feature/content/src/
|
|
7222
|
-
import { FC
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
tooltipResourceKey?: string;
|
|
7165
|
+
declare module "libs/reach/feature/content/src/posts/VideoList" {
|
|
7166
|
+
import { FC } from 'react';
|
|
7167
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
7168
|
+
export const VideoList: FC<{
|
|
7169
|
+
attachments: Attachment[];
|
|
7170
|
+
parentId?: string;
|
|
7171
|
+
onDeleteClick?: (video: Attachment) => void;
|
|
7229
7172
|
className?: string;
|
|
7230
7173
|
}>;
|
|
7231
7174
|
}
|
|
7175
|
+
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7176
|
+
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7177
|
+
export default interface FeedbackSummary {
|
|
7178
|
+
records: FeedbackItem[];
|
|
7179
|
+
}
|
|
7180
|
+
export enum FeedbackItemType {
|
|
7181
|
+
comment = "comment",
|
|
7182
|
+
like = "like",
|
|
7183
|
+
confirm = "confirm",
|
|
7184
|
+
poll = "poll",
|
|
7185
|
+
eventRegistration = "eventRegistration"
|
|
7186
|
+
}
|
|
7187
|
+
export interface FeedbackItem {
|
|
7188
|
+
type: FeedbackItemType;
|
|
7189
|
+
timestamp: string;
|
|
7190
|
+
}
|
|
7191
|
+
export interface PollFeedbackItem extends FeedbackItem {
|
|
7192
|
+
type: FeedbackItemType.poll;
|
|
7193
|
+
answers: PollQuestionAnswer[];
|
|
7194
|
+
}
|
|
7195
|
+
}
|
|
7232
7196
|
declare module "libs/reach/feature/content/src/filter/OwnerFilterDefinition" {
|
|
7233
7197
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7234
7198
|
export interface OwnerFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -7251,280 +7215,34 @@ declare module "libs/reach/feature/content/src/filter/BeforePublishingDateFilter
|
|
|
7251
7215
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7252
7216
|
export interface BeforePublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7253
7217
|
beforeDate?: string;
|
|
7254
|
-
}
|
|
7255
|
-
}
|
|
7256
|
-
declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
7257
|
-
import { OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7258
|
-
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7259
|
-
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7260
|
-
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7261
|
-
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
7262
|
-
}
|
|
7263
|
-
export interface BaseFilterDefinition {
|
|
7264
|
-
search?: string;
|
|
7265
|
-
token?: string;
|
|
7266
|
-
pageSize?: string | number;
|
|
7267
|
-
groupId?: string;
|
|
7268
|
-
}
|
|
7269
|
-
export interface ItemIdsFilterDefinition {
|
|
7270
|
-
itemIds?: string;
|
|
7271
|
-
}
|
|
7272
|
-
export interface IndexableFilterDefinition {
|
|
7273
|
-
[key: string]: any;
|
|
7274
|
-
}
|
|
7275
|
-
export interface FilterWithLogicalOperator {
|
|
7276
|
-
items?: string[];
|
|
7277
|
-
operator?: LogicalOperator;
|
|
7278
|
-
}
|
|
7279
|
-
export enum LogicalOperator {
|
|
7280
|
-
Or = "OR",
|
|
7281
|
-
And = "AND"
|
|
7282
|
-
}
|
|
7283
|
-
}
|
|
7284
|
-
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
7285
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7286
|
-
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
7287
|
-
author?: string;
|
|
7288
|
-
}
|
|
7289
|
-
}
|
|
7290
|
-
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
7291
|
-
import { FilterWithLogicalOperator, IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7292
|
-
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
7293
|
-
channels?: FilterWithLogicalOperator;
|
|
7294
|
-
}
|
|
7295
|
-
}
|
|
7296
|
-
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
7297
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7298
|
-
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
7299
|
-
export interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
7300
|
-
state?: WorkflowStatus;
|
|
7301
|
-
}
|
|
7302
|
-
}
|
|
7303
|
-
declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
7304
|
-
import { AuthorFilterDefinition } from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7305
|
-
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7306
|
-
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7307
|
-
import { StateFilterDefinition } from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7308
|
-
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
7309
|
-
groupId?: string;
|
|
7310
|
-
bookmarksOnly?: boolean;
|
|
7311
|
-
unreadOnly?: boolean;
|
|
7312
|
-
includeExpired?: boolean;
|
|
7313
|
-
}
|
|
7314
|
-
}
|
|
7315
|
-
declare module "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition" {
|
|
7316
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7317
|
-
export interface AfterPublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7318
|
-
afterDate?: string;
|
|
7319
|
-
}
|
|
7320
|
-
}
|
|
7321
|
-
declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinition" {
|
|
7322
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7323
|
-
export interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
7324
|
-
contacts?: string[];
|
|
7325
|
-
}
|
|
7326
|
-
}
|
|
7327
|
-
declare module "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder" {
|
|
7328
|
-
import { SortDirection } from "libs/reach/util/common/src/index";
|
|
7329
|
-
export class SortFieldsDefinitionBuilder<T extends string> {
|
|
7330
|
-
sort: string[];
|
|
7331
|
-
addSortField(field: T, direction?: SortDirection): this;
|
|
7332
|
-
private static getSortDirectionAsString;
|
|
7333
|
-
}
|
|
7334
|
-
}
|
|
7335
|
-
declare module "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition" {
|
|
7336
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7337
|
-
export interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
7338
|
-
startsAfter?: string;
|
|
7339
|
-
startsBefore?: string;
|
|
7340
|
-
}
|
|
7341
|
-
}
|
|
7342
|
-
declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
7343
|
-
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7344
|
-
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7345
|
-
import { EventsStartDateFilterDefinition } from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7346
|
-
import { EventContactsFilterDefinition } from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7347
|
-
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7348
|
-
export interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
7349
|
-
excludePastEvents?: boolean;
|
|
7350
|
-
pastEventsOnly?: boolean;
|
|
7351
|
-
}
|
|
7352
|
-
export type eventSortDefinitionFields = 'startDate' | 'publishingDate';
|
|
7353
|
-
export class EventSortFieldsDefinitionBuilder extends SortFieldsDefinitionBuilder<eventSortDefinitionFields> {
|
|
7354
|
-
static create(): EventSortFieldsDefinitionBuilder;
|
|
7355
|
-
}
|
|
7356
|
-
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
7357
|
-
}
|
|
7358
|
-
declare module "libs/reach/feature/content/src/filter/FilteringProps" {
|
|
7359
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7360
|
-
export interface FilteringProps {
|
|
7361
|
-
onFilterChange?: (filter: Partial<IndexableFilterDefinition>) => void;
|
|
7362
|
-
onShowFilterPanel?: () => unknown;
|
|
7363
|
-
onToggleFilterSidebar?: () => unknown;
|
|
7364
|
-
isFilterActive?: boolean;
|
|
7365
|
-
}
|
|
7366
|
-
}
|
|
7367
|
-
declare module "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition" {
|
|
7368
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7369
|
-
export enum ItemTypeFilterFlag {
|
|
7370
|
-
None = 0,
|
|
7371
|
-
News = 1,
|
|
7372
|
-
Post = 2,
|
|
7373
|
-
Page = 4,
|
|
7374
|
-
Event = 8,
|
|
7375
|
-
PageDocument = 16
|
|
7376
|
-
}
|
|
7377
|
-
export interface ItemTypeFilterDefinition extends IndexableFilterDefinition {
|
|
7378
|
-
itemType?: ItemTypeFilterFlag;
|
|
7379
|
-
}
|
|
7380
|
-
}
|
|
7381
|
-
declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
7382
|
-
import { FC } from 'react';
|
|
7383
|
-
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7384
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7385
|
-
export interface InjectedFilterProps {
|
|
7386
|
-
filter: IndexableFilterDefinition;
|
|
7387
|
-
hasFilter: boolean;
|
|
7388
|
-
isSearchActive: boolean;
|
|
7389
|
-
onFilterChange: (filter: Partial<IndexableFilterDefinition>) => void;
|
|
7390
|
-
onSearchChange: (text: string) => void;
|
|
7391
|
-
onClearFilter: () => void;
|
|
7392
|
-
}
|
|
7393
|
-
export function useFilter<TQueryString extends object = any>(addFilters?: (routeParams: any, user: CurrentUser) => Partial<IndexableFilterDefinition>, onClearQueryString?: (prev: TQueryString, next: TQueryString) => TQueryString, additionalExcludedFilterProperties?: string[]): {
|
|
7394
|
-
filter: Partial<IndexableFilterDefinition>;
|
|
7395
|
-
hasFilter: boolean;
|
|
7396
|
-
isSearchActive: boolean;
|
|
7397
|
-
onFilterChange: (newFilter: Partial<IndexableFilterDefinition> | null) => void;
|
|
7398
|
-
onSearchChange: (search: string) => void;
|
|
7399
|
-
onClearFilter: () => void;
|
|
7400
|
-
};
|
|
7401
|
-
export const FilterContext: import("react").Context<InjectedFilterProps & {
|
|
7402
|
-
hasFilterOnPageLoad: boolean;
|
|
7403
|
-
}>;
|
|
7404
|
-
export const FilterContextProvider: FC<{
|
|
7405
|
-
addFilters?: (locationParams: {
|
|
7406
|
-
[paramName: string]: any;
|
|
7407
|
-
}, user: CurrentUser) => IndexableFilterDefinition;
|
|
7408
|
-
additionalExcludedFilterProperties?: string[];
|
|
7409
|
-
onClearQueryString?: (prev: any, next: any) => any;
|
|
7410
|
-
}>;
|
|
7411
|
-
export interface FilterVisibilityState {
|
|
7412
|
-
showFilterAsPanel?: boolean;
|
|
7413
|
-
showFilterSidebar?: boolean;
|
|
7414
|
-
}
|
|
7415
|
-
}
|
|
7416
|
-
declare module "libs/reach/feature/content/src/filter/index" {
|
|
7417
|
-
export * from "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition";
|
|
7418
|
-
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7419
|
-
export * from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7420
|
-
export * from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7421
|
-
export * from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7422
|
-
export * from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7423
|
-
export * from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7424
|
-
export * from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7425
|
-
export * from "libs/reach/feature/content/src/filter/FilteringProps";
|
|
7426
|
-
export * from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7427
|
-
export * from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7428
|
-
export * from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7429
|
-
export * from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7430
|
-
export * from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7431
|
-
export * from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7432
|
-
export * from "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition";
|
|
7433
|
-
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
7434
|
-
export * from "libs/reach/feature/content/src/filter/utils";
|
|
7435
|
-
}
|
|
7436
|
-
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
7437
|
-
import { FilterWithLogicalOperator, LogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
7438
|
-
export function getCommaSeparatedChannelsString(channels: FilterWithLogicalOperator): {
|
|
7439
|
-
channels?: undefined;
|
|
7440
|
-
} | {
|
|
7441
|
-
channels: string;
|
|
7442
|
-
};
|
|
7443
|
-
export function getCommaSeparatedKeywordsString(keywords: FilterWithLogicalOperator): {
|
|
7444
|
-
keywords?: undefined;
|
|
7445
|
-
} | {
|
|
7446
|
-
keywords: string;
|
|
7447
|
-
};
|
|
7448
|
-
export function convertToFilterWithLogicalOperator(value: string, operator?: LogicalOperator): FilterWithLogicalOperator;
|
|
7449
|
-
}
|
|
7450
|
-
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
7451
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7452
|
-
import { Observable } from 'rxjs';
|
|
7453
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7454
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7455
|
-
import { Api } from 'restful.js';
|
|
7456
|
-
import { Storage } from "libs/reach/util/context/src/index";
|
|
7457
|
-
export function fetchNewsItems(path: string, cacheKey: string, api: Api, storage: Storage, paginationToken?: string, filterDefinition?: NewsFilterDefinition, isArray?: boolean): Observable<PaginatedList<NewsItem>>;
|
|
7458
|
-
}
|
|
7459
|
-
declare module "libs/reach/feature/content/src/news/NewsStatisticsSummary" {
|
|
7460
|
-
export default interface NewsStatisticsSummary {
|
|
7461
|
-
readCount: number;
|
|
7462
|
-
bookmarkCount: number;
|
|
7463
|
-
commentCount: number;
|
|
7464
|
-
feedbackCounts: {
|
|
7465
|
-
[key: string]: number;
|
|
7466
|
-
};
|
|
7467
|
-
replyCount: number;
|
|
7468
|
-
}
|
|
7469
|
-
}
|
|
7470
|
-
declare module "libs/reach/feature/content/src/news/NewsApiService" {
|
|
7471
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7472
|
-
import { Observable } from 'rxjs';
|
|
7473
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7474
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7475
|
-
import { ItemStatistics } from "libs/reach/util/common/src/index";
|
|
7476
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7477
|
-
import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/index";
|
|
7478
|
-
import { Storage } from "libs/reach/util/context/src/index";
|
|
7479
|
-
export class NewsApiService {
|
|
7480
|
-
private factory;
|
|
7481
|
-
private storage;
|
|
7482
|
-
private static readonly bookmarksCacheKey;
|
|
7483
|
-
private static readonly newsItemsCacheKey;
|
|
7484
|
-
private static readonly newsCacheKey;
|
|
7485
|
-
private static readonly allNewsCacheKey;
|
|
7486
|
-
private static readonly myUnreadNewsCacheKey;
|
|
7487
|
-
private api;
|
|
7488
|
-
constructor(factory: ClientFactoryInstance, subscriptionId: string, storage: Storage);
|
|
7489
|
-
trackExternalItem: (itemId: string, itemType: ItemResourceTypes) => Promise<unknown>;
|
|
7490
|
-
getAllNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7491
|
-
getAllUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7492
|
-
getMyNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7493
|
-
getMyUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7494
|
-
getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
|
|
7495
|
-
private getNewsFromCache;
|
|
7496
|
-
get: (newsId: string) => Observable<NewsItem>;
|
|
7497
|
-
getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number, shouldCropImage?: boolean) => string;
|
|
7498
|
-
getStatistics: (newsId: string) => Promise<ItemStatistics>;
|
|
7499
|
-
refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
|
|
7500
|
-
private static getUpdatedStatistics;
|
|
7501
|
-
private tryUpdateStatisticsInCache;
|
|
7502
|
-
getExternalItemRoute: (resourceType: ItemResourceTypes, itemId: string, accessToken: string) => string;
|
|
7503
|
-
}
|
|
7504
|
-
}
|
|
7505
|
-
declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
7506
|
-
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7507
|
-
export function useNewsApi(): NewsApiService;
|
|
7218
|
+
}
|
|
7508
7219
|
}
|
|
7509
|
-
declare module "libs/reach/feature/content/src/
|
|
7510
|
-
import {
|
|
7511
|
-
|
|
7512
|
-
|
|
7220
|
+
declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
7221
|
+
import { OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7222
|
+
import { SourceFilterDefinition } from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7223
|
+
import { KeywordsFilterDefinition } from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7224
|
+
import { BeforePublishingDateFilterDefinition } from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7225
|
+
export interface PublishableItemFilterDefinition extends IndexableFilterDefinition, BaseFilterDefinition, BeforePublishingDateFilterDefinition, OwnerFilterDefinition, SourceFilterDefinition, KeywordsFilterDefinition, ItemIdsFilterDefinition {
|
|
7513
7226
|
}
|
|
7514
|
-
export
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
eventRegistration = "eventRegistration"
|
|
7227
|
+
export interface BaseFilterDefinition {
|
|
7228
|
+
search?: string;
|
|
7229
|
+
token?: string;
|
|
7230
|
+
pageSize?: string | number;
|
|
7231
|
+
groupId?: string;
|
|
7520
7232
|
}
|
|
7521
|
-
export interface
|
|
7522
|
-
|
|
7523
|
-
timestamp: string;
|
|
7233
|
+
export interface ItemIdsFilterDefinition {
|
|
7234
|
+
itemIds?: string;
|
|
7524
7235
|
}
|
|
7525
|
-
export interface
|
|
7526
|
-
|
|
7527
|
-
|
|
7236
|
+
export interface IndexableFilterDefinition {
|
|
7237
|
+
[key: string]: any;
|
|
7238
|
+
}
|
|
7239
|
+
export interface FilterWithLogicalOperator {
|
|
7240
|
+
items?: string[];
|
|
7241
|
+
operator?: LogicalOperator;
|
|
7242
|
+
}
|
|
7243
|
+
export enum LogicalOperator {
|
|
7244
|
+
Or = "OR",
|
|
7245
|
+
And = "AND"
|
|
7528
7246
|
}
|
|
7529
7247
|
}
|
|
7530
7248
|
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
@@ -7543,224 +7261,171 @@ declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
|
7543
7261
|
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7544
7262
|
};
|
|
7545
7263
|
}
|
|
7546
|
-
declare module "libs/reach/feature/content/src/
|
|
7547
|
-
import {
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
item?: NewsItem;
|
|
7551
|
-
showDescription: boolean;
|
|
7552
|
-
readOnly?: boolean;
|
|
7553
|
-
className?: string;
|
|
7554
|
-
}>;
|
|
7555
|
-
}
|
|
7556
|
-
declare module "libs/reach/feature/content/src/news/newsUtils" {
|
|
7557
|
-
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7558
|
-
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
7559
|
-
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
7560
|
-
export function getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7561
|
-
export function getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7562
|
-
export function getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
7563
|
-
export function getContentLanguages(contents: {
|
|
7564
|
-
[lang: string]: ContentDefinition;
|
|
7565
|
-
}, languages: LanguageBase[], contentValidator?: (c: PublishableItemContent) => boolean): string[];
|
|
7566
|
-
export function getLanguageForPublishableItem(item: PublishableItem, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7567
|
-
export function getLanguageForContent(contents: {
|
|
7568
|
-
[lang: string]: ContentDefinition;
|
|
7569
|
-
}, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7570
|
-
export function getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7571
|
-
}
|
|
7572
|
-
declare module "libs/reach/feature/content/src/feedback/PollTranslationContext" {
|
|
7573
|
-
import { FC } from 'react';
|
|
7574
|
-
import { PublishableItemContents } from "libs/reach/util/common/src/index";
|
|
7575
|
-
export interface TranslationItem {
|
|
7576
|
-
language: string;
|
|
7577
|
-
id: string;
|
|
7578
|
-
text: string;
|
|
7264
|
+
declare module "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition" {
|
|
7265
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7266
|
+
export interface AfterPublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7267
|
+
afterDate?: string;
|
|
7579
7268
|
}
|
|
7580
|
-
export const PollTranslationContext: import("react").Context<{
|
|
7581
|
-
getTranslation: (id: string) => string;
|
|
7582
|
-
getAllTranslations: (id: string) => TranslationItem[];
|
|
7583
|
-
}>;
|
|
7584
|
-
export const PollTranslationContextProvider: FC<{
|
|
7585
|
-
contents?: PublishableItemContents;
|
|
7586
|
-
language: string;
|
|
7587
|
-
additionalTranslations?: TranslationItem[];
|
|
7588
|
-
}>;
|
|
7589
7269
|
}
|
|
7590
|
-
declare module "libs/reach/feature/content/src/
|
|
7591
|
-
import {
|
|
7592
|
-
export
|
|
7593
|
-
|
|
7594
|
-
|
|
7270
|
+
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
7271
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7272
|
+
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
7273
|
+
author?: string;
|
|
7274
|
+
}
|
|
7595
7275
|
}
|
|
7596
|
-
declare module "libs/reach/feature/content/src/
|
|
7597
|
-
import {
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
itemType: ItemResourceTypes;
|
|
7602
|
-
likersCount: number;
|
|
7603
|
-
className?: string;
|
|
7604
|
-
coinSize?: number;
|
|
7605
|
-
}>;
|
|
7276
|
+
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
7277
|
+
import { FilterWithLogicalOperator, IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7278
|
+
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
7279
|
+
channels?: FilterWithLogicalOperator;
|
|
7280
|
+
}
|
|
7606
7281
|
}
|
|
7607
|
-
declare module "libs/reach/feature/content/src/
|
|
7608
|
-
|
|
7609
|
-
export
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
export * from "libs/reach/feature/content/src/feedback/useFeedbackApi";
|
|
7613
|
-
export * from "libs/reach/feature/content/src/feedback/LikersList";
|
|
7282
|
+
declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinition" {
|
|
7283
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7284
|
+
export interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
7285
|
+
contacts?: string[];
|
|
7286
|
+
}
|
|
7614
7287
|
}
|
|
7615
|
-
declare module "libs/reach/feature/content/src/
|
|
7616
|
-
import {
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
recurrenceSeriesId?: string;
|
|
7622
|
-
className?: string;
|
|
7623
|
-
scope: ConversationScope;
|
|
7624
|
-
hideProfileUrl?: boolean;
|
|
7625
|
-
onToggleFollow?: (isFollowed: boolean) => void;
|
|
7626
|
-
isReadOnly?: boolean;
|
|
7288
|
+
declare module "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder" {
|
|
7289
|
+
import { SortDirection } from "libs/reach/util/common/src/index";
|
|
7290
|
+
export class SortFieldsDefinitionBuilder<T extends string> {
|
|
7291
|
+
sort: string[];
|
|
7292
|
+
addSortField(field: T, direction?: SortDirection): this;
|
|
7293
|
+
private static getSortDirectionAsString;
|
|
7627
7294
|
}
|
|
7628
|
-
export const FollowComments: FC<Props>;
|
|
7629
|
-
export const FollowCommentsNotificationWarning: FC<{
|
|
7630
|
-
hideProfileUrl?: boolean;
|
|
7631
|
-
className?: string;
|
|
7632
|
-
}>;
|
|
7633
7295
|
}
|
|
7634
|
-
declare module "libs/reach/feature/content/src/
|
|
7635
|
-
import {
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
upn: string;
|
|
7640
|
-
displayName: string;
|
|
7641
|
-
display: string;
|
|
7296
|
+
declare module "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition" {
|
|
7297
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7298
|
+
export interface EventsStartDateFilterDefinition extends IndexableFilterDefinition {
|
|
7299
|
+
startsAfter?: string;
|
|
7300
|
+
startsBefore?: string;
|
|
7642
7301
|
}
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7302
|
+
}
|
|
7303
|
+
declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
7304
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7305
|
+
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7306
|
+
import { EventsStartDateFilterDefinition } from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7307
|
+
import { EventContactsFilterDefinition } from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7308
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7309
|
+
export interface EventFilterDefinition extends PublishableItemFilterDefinition, EventContactsFilterDefinition, EventsStartDateFilterDefinition, ChannelsFilterDefinition {
|
|
7310
|
+
excludePastEvents?: boolean;
|
|
7311
|
+
pastEventsOnly?: boolean;
|
|
7646
7312
|
}
|
|
7647
|
-
export
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
disabled?: boolean;
|
|
7651
|
-
autoFocus?: boolean;
|
|
7652
|
-
onEnter?: () => void;
|
|
7653
|
-
onCtrlEnter?: () => unknown;
|
|
7654
|
-
onChange?: (value: string) => void;
|
|
7655
|
-
onFocus?: () => void;
|
|
7656
|
-
additionalInputControl?: ReactNode;
|
|
7657
|
-
buttons?: {
|
|
7658
|
-
leftSide?: ReactNode;
|
|
7659
|
-
rightSide?: ReactNode;
|
|
7660
|
-
};
|
|
7661
|
-
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7662
|
-
placeHolderStringResourceKey?: string;
|
|
7663
|
-
placeHolderStringResourceValues?: {
|
|
7664
|
-
[key: string]: string | number | boolean | Date;
|
|
7665
|
-
};
|
|
7666
|
-
disableBoxShadow?: boolean;
|
|
7667
|
-
ariaLabel?: string;
|
|
7313
|
+
export type eventSortDefinitionFields = 'startDate' | 'publishingDate';
|
|
7314
|
+
export class EventSortFieldsDefinitionBuilder extends SortFieldsDefinitionBuilder<eventSortDefinitionFields> {
|
|
7315
|
+
static create(): EventSortFieldsDefinitionBuilder;
|
|
7668
7316
|
}
|
|
7669
|
-
export const
|
|
7670
|
-
}
|
|
7671
|
-
declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
7672
|
-
import { FC } from 'react';
|
|
7673
|
-
export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7674
|
-
isActive: boolean;
|
|
7675
|
-
}, never>;
|
|
7676
|
-
export const DropInfo: FC;
|
|
7317
|
+
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
7677
7318
|
}
|
|
7678
|
-
declare module "libs/reach/feature/content/src/
|
|
7679
|
-
import {
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
entryId: string;
|
|
7319
|
+
declare module "libs/reach/feature/content/src/filter/FilteringProps" {
|
|
7320
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7321
|
+
export interface FilteringProps {
|
|
7322
|
+
onFilterChange?: (filter: Partial<IndexableFilterDefinition>) => void;
|
|
7323
|
+
onShowFilterPanel?: () => unknown;
|
|
7324
|
+
onToggleFilterSidebar?: () => unknown;
|
|
7325
|
+
isFilterActive?: boolean;
|
|
7686
7326
|
}
|
|
7687
|
-
|
|
7688
|
-
|
|
7327
|
+
}
|
|
7328
|
+
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
7329
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7330
|
+
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
7331
|
+
export interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
7332
|
+
state?: WorkflowStatus;
|
|
7689
7333
|
}
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
private static kalturaRegex;
|
|
7702
|
-
readonly source: VideoSource | null;
|
|
7703
|
-
readonly id: string | null;
|
|
7704
|
-
readonly isDirectVideoUrl: boolean;
|
|
7705
|
-
readonly videoProperties: TVideoProperties | null;
|
|
7706
|
-
readonly thumbnailUrl: string | null;
|
|
7707
|
-
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7708
|
-
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7709
|
-
isValid(features: FeatureSet): boolean;
|
|
7710
|
-
isSharepointUrl(url: string): boolean;
|
|
7334
|
+
}
|
|
7335
|
+
declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
7336
|
+
import { AuthorFilterDefinition } from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7337
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7338
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7339
|
+
import { StateFilterDefinition } from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7340
|
+
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
7341
|
+
groupId?: string;
|
|
7342
|
+
bookmarksOnly?: boolean;
|
|
7343
|
+
unreadOnly?: boolean;
|
|
7344
|
+
includeExpired?: boolean;
|
|
7711
7345
|
}
|
|
7712
|
-
export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7713
|
-
export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7714
7346
|
}
|
|
7715
|
-
declare module "libs/reach/feature/content/src/
|
|
7716
|
-
import {
|
|
7717
|
-
export
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7347
|
+
declare module "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition" {
|
|
7348
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7349
|
+
export enum ItemTypeFilterFlag {
|
|
7350
|
+
None = 0,
|
|
7351
|
+
News = 1,
|
|
7352
|
+
Post = 2,
|
|
7353
|
+
Page = 4,
|
|
7354
|
+
Event = 8,
|
|
7355
|
+
PageDocument = 16
|
|
7356
|
+
}
|
|
7357
|
+
export interface ItemTypeFilterDefinition extends IndexableFilterDefinition {
|
|
7358
|
+
itemType?: ItemTypeFilterFlag;
|
|
7359
|
+
}
|
|
7727
7360
|
}
|
|
7728
|
-
declare module "libs/reach/feature/content/src/
|
|
7729
|
-
import {
|
|
7730
|
-
import {
|
|
7731
|
-
import {
|
|
7732
|
-
export
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7361
|
+
declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
7362
|
+
import { FC } from 'react';
|
|
7363
|
+
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7364
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7365
|
+
export interface InjectedFilterProps {
|
|
7366
|
+
filter: IndexableFilterDefinition;
|
|
7367
|
+
hasFilter: boolean;
|
|
7368
|
+
isSearchActive: boolean;
|
|
7369
|
+
onFilterChange: (filter: Partial<IndexableFilterDefinition>) => void;
|
|
7370
|
+
onSearchChange: (text: string) => void;
|
|
7371
|
+
onClearFilter: () => void;
|
|
7372
|
+
}
|
|
7373
|
+
export function useFilter<TQueryString extends object = any>(addFilters?: (routeParams: any, user: CurrentUser) => Partial<IndexableFilterDefinition>, onClearQueryString?: (prev: TQueryString, next: TQueryString) => TQueryString, additionalExcludedFilterProperties?: string[]): {
|
|
7374
|
+
filter: Partial<IndexableFilterDefinition>;
|
|
7375
|
+
hasFilter: boolean;
|
|
7376
|
+
isSearchActive: boolean;
|
|
7377
|
+
onFilterChange: (newFilter: Partial<IndexableFilterDefinition> | null) => void;
|
|
7378
|
+
onSearchChange: (search: string) => void;
|
|
7379
|
+
onClearFilter: () => void;
|
|
7736
7380
|
};
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7381
|
+
export const FilterContext: import("react").Context<InjectedFilterProps & {
|
|
7382
|
+
hasFilterOnPageLoad: boolean;
|
|
7383
|
+
}>;
|
|
7384
|
+
export const FilterContextProvider: FC<{
|
|
7385
|
+
addFilters?: (locationParams: {
|
|
7386
|
+
[paramName: string]: any;
|
|
7387
|
+
}, user: CurrentUser) => IndexableFilterDefinition;
|
|
7388
|
+
additionalExcludedFilterProperties?: string[];
|
|
7389
|
+
onClearQueryString?: (prev: any, next: any) => any;
|
|
7390
|
+
}>;
|
|
7391
|
+
export interface FilterVisibilityState {
|
|
7392
|
+
showFilterAsPanel?: boolean;
|
|
7393
|
+
showFilterSidebar?: boolean;
|
|
7747
7394
|
}
|
|
7748
7395
|
}
|
|
7749
|
-
declare module "libs/reach/feature/content/src/
|
|
7750
|
-
import {
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
searchPages: (basePath: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7761
|
-
getDocumentFileUrl: (basePath: string, subscriptionId: string, pageId: string, fileId: string, language: string, token: string) => string;
|
|
7762
|
-
searchToc: (basePath: string, searchValue: string) => Promise<PaginatedList<PageItem>>;
|
|
7396
|
+
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
7397
|
+
import { FilterWithLogicalOperator, LogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
7398
|
+
export function getCommaSeparatedChannelsString(channels: FilterWithLogicalOperator): {
|
|
7399
|
+
channels?: undefined;
|
|
7400
|
+
} | {
|
|
7401
|
+
channels: string;
|
|
7402
|
+
};
|
|
7403
|
+
export function getCommaSeparatedKeywordsString(keywords: FilterWithLogicalOperator): {
|
|
7404
|
+
keywords?: undefined;
|
|
7405
|
+
} | {
|
|
7406
|
+
keywords: string;
|
|
7763
7407
|
};
|
|
7408
|
+
export function convertToFilterWithLogicalOperator(value: string, operator?: LogicalOperator): FilterWithLogicalOperator;
|
|
7409
|
+
}
|
|
7410
|
+
declare module "libs/reach/feature/content/src/filter/index" {
|
|
7411
|
+
export * from "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition";
|
|
7412
|
+
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7413
|
+
export * from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7414
|
+
export * from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7415
|
+
export * from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7416
|
+
export * from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7417
|
+
export * from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7418
|
+
export * from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7419
|
+
export * from "libs/reach/feature/content/src/filter/FilteringProps";
|
|
7420
|
+
export * from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7421
|
+
export * from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7422
|
+
export * from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7423
|
+
export * from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7424
|
+
export * from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7425
|
+
export * from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7426
|
+
export * from "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition";
|
|
7427
|
+
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
7428
|
+
export * from "libs/reach/feature/content/src/filter/utils";
|
|
7764
7429
|
}
|
|
7765
7430
|
declare module "libs/reach/feature/content/src/posts/utils" {
|
|
7766
7431
|
import { Account, BaseItem, Comment, CurrentUser, ItemStatistics, ItemWithAttachments, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
@@ -7825,138 +7490,38 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
7825
7490
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
7826
7491
|
};
|
|
7827
7492
|
}
|
|
7828
|
-
declare module "libs/reach/feature/content/src/
|
|
7829
|
-
import {
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
import { CommentInputProps } from "libs/reach/feature/content/src/comments/CommentInput";
|
|
7834
|
-
import { Attachment, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7835
|
-
export interface ClientAttachment extends Attachment {
|
|
7836
|
-
file?: File;
|
|
7837
|
-
}
|
|
7838
|
-
export type Attachments = (Attachment | ClientAttachment)[];
|
|
7839
|
-
export type RichCommentInputProps = CommentInputProps & {
|
|
7840
|
-
attachments: Attachment[];
|
|
7841
|
-
deletedAttachmentUrls: string[];
|
|
7842
|
-
allowAttachments?: boolean;
|
|
7843
|
-
useLargeDropTarget?: boolean;
|
|
7844
|
-
disableDragAndDrop?: boolean;
|
|
7845
|
-
onAttachmentsChange: (attachments: Attachments) => void;
|
|
7846
|
-
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
7847
|
-
placeHolderStringResourceKey?: string;
|
|
7848
|
-
disableAddGif?: boolean;
|
|
7849
|
-
disableAddFiles?: boolean;
|
|
7850
|
-
parentId?: string;
|
|
7851
|
-
itemResourceType?: ItemResourceTypes | string;
|
|
7493
|
+
declare module "libs/reach/feature/content/src/comments/CommentContentUtils" {
|
|
7494
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
7495
|
+
type Link = {
|
|
7496
|
+
url: string;
|
|
7497
|
+
label?: string;
|
|
7852
7498
|
};
|
|
7853
|
-
export
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
itemResourceType?: ItemResourceTypes | string;
|
|
7866
|
-
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
7867
|
-
}
|
|
7868
|
-
declare module "libs/reach/feature/content/src/comments/utils" {
|
|
7869
|
-
import { Comment, Attachment, CurrentUser } from "libs/reach/util/common/src/index";
|
|
7870
|
-
export function canSaveInput(allowSaveWithoutContent: boolean, attachments: Attachment[], content: string): boolean;
|
|
7871
|
-
export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
|
|
7872
|
-
export function canEdit(comment: Comment, user: CurrentUser): boolean;
|
|
7873
|
-
}
|
|
7874
|
-
declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
|
|
7875
|
-
import { FC } from 'react';
|
|
7876
|
-
import { VideoInfo } from "libs/reach/feature/content/src/index";
|
|
7877
|
-
export const VideoCustomThumbnailPicker: FC<{
|
|
7878
|
-
videoInfo: VideoInfo;
|
|
7879
|
-
onCustomThumbnailAdded: (file: File | null) => void;
|
|
7880
|
-
onRemoveCustomThumbnail: () => void;
|
|
7881
|
-
customThumbnail?: File | null;
|
|
7882
|
-
}>;
|
|
7883
|
-
}
|
|
7884
|
-
declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
|
|
7885
|
-
import { FC } from 'react';
|
|
7886
|
-
import { BannerInfo, VideoSource } from "libs/reach/util/common/src/index";
|
|
7887
|
-
export interface VideoInfo {
|
|
7888
|
-
id: string;
|
|
7889
|
-
source: VideoSource;
|
|
7890
|
-
url?: string;
|
|
7891
|
-
isDirectUrl?: boolean;
|
|
7892
|
-
}
|
|
7893
|
-
export const InsertVideoDialog: FC<{
|
|
7894
|
-
titleResource: string;
|
|
7895
|
-
onCancel: () => void;
|
|
7896
|
-
onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
|
|
7897
|
-
isOpen?: boolean;
|
|
7898
|
-
disableCustomThumbnail?: boolean;
|
|
7899
|
-
initialDataProps?: {
|
|
7900
|
-
bannerInfo: BannerInfo;
|
|
7901
|
-
itemId: string;
|
|
7902
|
-
token: string;
|
|
7903
|
-
subscriptionId: string;
|
|
7904
|
-
};
|
|
7905
|
-
}>;
|
|
7906
|
-
}
|
|
7907
|
-
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
7908
|
-
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7909
|
-
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
7910
|
-
export const getMicrosoftStreamVideoUrl: (url: string) => string;
|
|
7911
|
-
export class VideoElementGenerator {
|
|
7912
|
-
private videoInfo;
|
|
7913
|
-
private iframeAreaLabel;
|
|
7914
|
-
private autoplay?;
|
|
7915
|
-
private width?;
|
|
7916
|
-
private videoProperties?;
|
|
7917
|
-
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
7918
|
-
private getYouTubeVideoElement;
|
|
7919
|
-
private getVimeoVideoElement;
|
|
7920
|
-
private getExternalVimeoVideoElement;
|
|
7921
|
-
private getMicrosoftStreamSharePointVideoElement;
|
|
7922
|
-
private getMicrosoftStreamVideoElement;
|
|
7923
|
-
private getKalturaVideoElement;
|
|
7924
|
-
private getGenericURLVideoElement;
|
|
7925
|
-
private getVideoElement;
|
|
7926
|
-
private getNotSupportedElement;
|
|
7927
|
-
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
7928
|
-
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Kaltura" | "Microsoft Stream" | "Generic";
|
|
7929
|
-
}
|
|
7930
|
-
}
|
|
7931
|
-
declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
|
|
7932
|
-
import { FC } from 'react';
|
|
7933
|
-
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7934
|
-
export const VideoView: FC<{
|
|
7935
|
-
videoInfo: VideoInfo;
|
|
7936
|
-
autoplay?: boolean;
|
|
7937
|
-
width?: string;
|
|
7938
|
-
parentId?: string;
|
|
7939
|
-
className?: string;
|
|
7940
|
-
}>;
|
|
7941
|
-
}
|
|
7942
|
-
declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
|
|
7943
|
-
import { FC } from 'react';
|
|
7944
|
-
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7945
|
-
export const VideoWithThumbnailView: FC<{
|
|
7946
|
-
videoInfo: VideoInfo;
|
|
7947
|
-
videoThumbnailUrl: string;
|
|
7948
|
-
parentId?: string;
|
|
7949
|
-
className?: string;
|
|
7950
|
-
}>;
|
|
7499
|
+
export interface Match {
|
|
7500
|
+
fullMatch: string;
|
|
7501
|
+
isLineBreak: boolean;
|
|
7502
|
+
link: Link;
|
|
7503
|
+
mention: {
|
|
7504
|
+
name: string;
|
|
7505
|
+
id: string;
|
|
7506
|
+
};
|
|
7507
|
+
hashtag: string;
|
|
7508
|
+
}
|
|
7509
|
+
export function transformContent(content: string): (Match | string)[];
|
|
7510
|
+
export function constructUserMention(user: Account): string;
|
|
7951
7511
|
}
|
|
7952
|
-
declare module "libs/reach/feature/content/src/
|
|
7512
|
+
declare module "libs/reach/feature/content/src/comments/ContentDisplay" {
|
|
7953
7513
|
import { FC } from 'react';
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7514
|
+
export enum ContentDisplayHandler {
|
|
7515
|
+
Link = 0,
|
|
7516
|
+
Mention = 1,
|
|
7517
|
+
Hashtag = 2,
|
|
7518
|
+
LineBreak = 3
|
|
7519
|
+
}
|
|
7520
|
+
export const ContentDisplay: FC<{
|
|
7521
|
+
content: string;
|
|
7522
|
+
handlers: ContentDisplayHandler[];
|
|
7523
|
+
getHashtagRoute?: (hashtag: string) => string;
|
|
7524
|
+
children?: (content: string, index: number) => JSX.Element;
|
|
7960
7525
|
}>;
|
|
7961
7526
|
}
|
|
7962
7527
|
declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
@@ -7992,6 +7557,22 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
7992
7557
|
showAllKeywordsInCallout?: boolean;
|
|
7993
7558
|
}>;
|
|
7994
7559
|
}
|
|
7560
|
+
declare module "libs/reach/feature/content/src/news/newsUtils" {
|
|
7561
|
+
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7562
|
+
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
7563
|
+
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
7564
|
+
export function getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7565
|
+
export function getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7566
|
+
export function getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
7567
|
+
export function getContentLanguages(contents: {
|
|
7568
|
+
[lang: string]: ContentDefinition;
|
|
7569
|
+
}, languages: LanguageBase[], contentValidator?: (c: PublishableItemContent) => boolean): string[];
|
|
7570
|
+
export function getLanguageForPublishableItem(item: PublishableItem, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7571
|
+
export function getLanguageForContent(contents: {
|
|
7572
|
+
[lang: string]: ContentDefinition;
|
|
7573
|
+
}, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7574
|
+
export function getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7575
|
+
}
|
|
7995
7576
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7996
7577
|
import { FC, MouseEvent } from 'react';
|
|
7997
7578
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -8033,6 +7614,102 @@ declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
|
8033
7614
|
className?: string;
|
|
8034
7615
|
}>;
|
|
8035
7616
|
}
|
|
7617
|
+
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
7618
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7619
|
+
import { Observable } from 'rxjs';
|
|
7620
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7621
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7622
|
+
import { Api } from 'restful.js';
|
|
7623
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7624
|
+
export function fetchNewsItems(path: string, cacheKey: string, api: Api, storage: Storage, paginationToken?: string, filterDefinition?: NewsFilterDefinition, isArray?: boolean): Observable<PaginatedList<NewsItem>>;
|
|
7625
|
+
}
|
|
7626
|
+
declare module "libs/reach/feature/content/src/news/NewsStatisticsSummary" {
|
|
7627
|
+
export default interface NewsStatisticsSummary {
|
|
7628
|
+
readCount: number;
|
|
7629
|
+
bookmarkCount: number;
|
|
7630
|
+
commentCount: number;
|
|
7631
|
+
feedbackCounts: {
|
|
7632
|
+
[key: string]: number;
|
|
7633
|
+
};
|
|
7634
|
+
replyCount: number;
|
|
7635
|
+
}
|
|
7636
|
+
}
|
|
7637
|
+
declare module "libs/reach/feature/content/src/news/NewsApiService" {
|
|
7638
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7639
|
+
import { Observable } from 'rxjs';
|
|
7640
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7641
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7642
|
+
import { ItemStatistics } from "libs/reach/util/common/src/index";
|
|
7643
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7644
|
+
import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/index";
|
|
7645
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7646
|
+
export class NewsApiService {
|
|
7647
|
+
private factory;
|
|
7648
|
+
private storage;
|
|
7649
|
+
private static readonly bookmarksCacheKey;
|
|
7650
|
+
private static readonly newsItemsCacheKey;
|
|
7651
|
+
private static readonly newsCacheKey;
|
|
7652
|
+
private static readonly allNewsCacheKey;
|
|
7653
|
+
private static readonly myUnreadNewsCacheKey;
|
|
7654
|
+
private api;
|
|
7655
|
+
constructor(factory: ClientFactoryInstance, subscriptionId: string, storage: Storage);
|
|
7656
|
+
trackExternalItem: (itemId: string, itemType: ItemResourceTypes) => Promise<unknown>;
|
|
7657
|
+
getAllNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7658
|
+
getAllUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7659
|
+
getMyNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7660
|
+
getMyUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7661
|
+
getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
|
|
7662
|
+
private getNewsFromCache;
|
|
7663
|
+
get: (newsId: string) => Observable<NewsItem>;
|
|
7664
|
+
getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number, shouldCropImage?: boolean) => string;
|
|
7665
|
+
getStatistics: (newsId: string) => Promise<ItemStatistics>;
|
|
7666
|
+
refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
|
|
7667
|
+
private static getUpdatedStatistics;
|
|
7668
|
+
private tryUpdateStatisticsInCache;
|
|
7669
|
+
getExternalItemRoute: (resourceType: ItemResourceTypes, itemId: string, accessToken: string) => string;
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7672
|
+
declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
7673
|
+
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7674
|
+
export function useNewsApi(): NewsApiService;
|
|
7675
|
+
}
|
|
7676
|
+
declare module "libs/reach/feature/content/src/pages/PageFilterDefinition" {
|
|
7677
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7678
|
+
import { PageType } from "libs/reach/util/common/src/index";
|
|
7679
|
+
export interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
7680
|
+
pageContextId?: string;
|
|
7681
|
+
restrictToPageContext?: boolean;
|
|
7682
|
+
rootPagesOnly?: boolean;
|
|
7683
|
+
parentId?: string;
|
|
7684
|
+
pageType?: PageType;
|
|
7685
|
+
}
|
|
7686
|
+
}
|
|
7687
|
+
declare module "libs/reach/feature/content/src/pages/usePagesApi" {
|
|
7688
|
+
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
7689
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7690
|
+
import { PageFilterDefinition } from "libs/reach/feature/content/src/pages/PageFilterDefinition";
|
|
7691
|
+
export function usePagesApi(): {
|
|
7692
|
+
loadPage: (id: string) => Promise<PageItem>;
|
|
7693
|
+
loadPageChildren: (id: string) => Promise<PageNavigationNode[]>;
|
|
7694
|
+
getRootPagesNavigation: () => Promise<PageNavigationNode[]>;
|
|
7695
|
+
getPublishedRootPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7696
|
+
searchPublishedPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7697
|
+
getSubpages: (parentId: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7698
|
+
searchPages: (basePath: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7699
|
+
getDocumentFileUrl: (basePath: string, subscriptionId: string, pageId: string, fileId: string, language: string, token: string) => string;
|
|
7700
|
+
searchToc: (basePath: string, searchValue: string) => Promise<PaginatedList<PageItem>>;
|
|
7701
|
+
};
|
|
7702
|
+
}
|
|
7703
|
+
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
7704
|
+
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7705
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7706
|
+
import { EventItem, EventRecurrenceInfo } from "libs/reach/util/common/src/index";
|
|
7707
|
+
export function useEventsApi(): {
|
|
7708
|
+
getEvents: (filter?: EventFilterDefinition, sortFieldBuilder?: EventSortFieldsDefinitionBuilder) => Promise<PaginatedList<EventItem>>;
|
|
7709
|
+
getEvent: (id: string) => Promise<EventItem>;
|
|
7710
|
+
getEventRecurrences: (eventId: string, from: string, to: string) => Promise<EventRecurrenceInfo[]>;
|
|
7711
|
+
};
|
|
7712
|
+
}
|
|
8036
7713
|
declare module "libs/reach/feature/content/src/events/EventLocationLink" {
|
|
8037
7714
|
import { FC } from 'react';
|
|
8038
7715
|
import { EventLocation } from "libs/reach/util/common/src/index";
|
|
@@ -8088,46 +7765,158 @@ declare module "libs/reach/feature/content/src/feedback/FeedbackCountButton" {
|
|
|
8088
7765
|
hideZeroCount?: boolean;
|
|
8089
7766
|
doNotRenderZeroCount?: boolean;
|
|
8090
7767
|
}
|
|
8091
|
-
export interface FeedbackCountButtonProps extends CountButtonProps {
|
|
8092
|
-
tooltipResourceKey?: string;
|
|
8093
|
-
tooltipResourceKeyValues?: any;
|
|
8094
|
-
activeTooltipResourceKey?: string;
|
|
8095
|
-
activeTooltipResourceKeyValues?: any;
|
|
8096
|
-
hideTooltip?: boolean;
|
|
8097
|
-
className?: string;
|
|
7768
|
+
export interface FeedbackCountButtonProps extends CountButtonProps {
|
|
7769
|
+
tooltipResourceKey?: string;
|
|
7770
|
+
tooltipResourceKeyValues?: any;
|
|
7771
|
+
activeTooltipResourceKey?: string;
|
|
7772
|
+
activeTooltipResourceKeyValues?: any;
|
|
7773
|
+
hideTooltip?: boolean;
|
|
7774
|
+
className?: string;
|
|
7775
|
+
}
|
|
7776
|
+
export const FeedbackCountButton: FC<FeedbackCountButtonProps>;
|
|
7777
|
+
export const CountButtonHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7778
|
+
export const CountLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
7779
|
+
isHidden?: boolean;
|
|
7780
|
+
isDisabled?: boolean;
|
|
7781
|
+
}, never>;
|
|
7782
|
+
}
|
|
7783
|
+
declare module "libs/reach/feature/content/src/events/list/EventCardCommentCount" {
|
|
7784
|
+
import { FC } from 'react';
|
|
7785
|
+
import { EventItem } from "libs/reach/util/common/src/index";
|
|
7786
|
+
export const EventCardCommentCount: FC<{
|
|
7787
|
+
item: EventItem;
|
|
7788
|
+
}>;
|
|
7789
|
+
}
|
|
7790
|
+
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventCancelInformation" {
|
|
7791
|
+
import { FC } from 'react';
|
|
7792
|
+
import { EventItem } from "libs/reach/util/common/src/index";
|
|
7793
|
+
export const EventCancelInformation: FC<{
|
|
7794
|
+
item: EventItem;
|
|
7795
|
+
language?: string;
|
|
7796
|
+
className?: string;
|
|
7797
|
+
}>;
|
|
7798
|
+
}
|
|
7799
|
+
declare module "libs/reach/feature/content/src/feedback/PollTranslationContext" {
|
|
7800
|
+
import { FC } from 'react';
|
|
7801
|
+
import { PublishableItemContents } from "libs/reach/util/common/src/index";
|
|
7802
|
+
export interface TranslationItem {
|
|
7803
|
+
language: string;
|
|
7804
|
+
id: string;
|
|
7805
|
+
text: string;
|
|
7806
|
+
}
|
|
7807
|
+
export const PollTranslationContext: import("react").Context<{
|
|
7808
|
+
getTranslation: (id: string) => string;
|
|
7809
|
+
getAllTranslations: (id: string) => TranslationItem[];
|
|
7810
|
+
}>;
|
|
7811
|
+
export const PollTranslationContextProvider: FC<{
|
|
7812
|
+
contents?: PublishableItemContents;
|
|
7813
|
+
language: string;
|
|
7814
|
+
additionalTranslations?: TranslationItem[];
|
|
7815
|
+
}>;
|
|
7816
|
+
}
|
|
7817
|
+
declare module "libs/reach/feature/content/src/events/eventUtils" {
|
|
7818
|
+
import { MessageDescriptor } from 'react-intl';
|
|
7819
|
+
import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
|
|
7820
|
+
import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
7821
|
+
export function getLocationQuestionId(item: EventItem): string;
|
|
7822
|
+
export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
|
|
7823
|
+
question?: PollQuestion;
|
|
7824
|
+
translations?: TranslationItem[];
|
|
7825
|
+
};
|
|
7826
|
+
}
|
|
7827
|
+
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
7828
|
+
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
7829
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
7830
|
+
static type: string;
|
|
7831
|
+
type: string;
|
|
7832
|
+
itemId: string;
|
|
7833
|
+
response: EventResponse;
|
|
7834
|
+
locationId: string;
|
|
7835
|
+
onBehalfOfUpn: string;
|
|
7836
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
7837
|
+
}
|
|
7838
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
7839
|
+
static type: string;
|
|
7840
|
+
type: string;
|
|
7841
|
+
itemId: string;
|
|
7842
|
+
response: EventResponse;
|
|
7843
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
7844
|
+
}
|
|
7845
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
7846
|
+
static type: string;
|
|
7847
|
+
type: string;
|
|
7848
|
+
recurrenceSeriesId: string;
|
|
7849
|
+
response: EventResponse;
|
|
7850
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
7851
|
+
}
|
|
7852
|
+
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
7853
|
+
static type: string;
|
|
7854
|
+
type: string;
|
|
7855
|
+
followState: boolean;
|
|
7856
|
+
itemId: string;
|
|
7857
|
+
static create(itemId: string, followState: boolean): FollowCommentsTriggerAction;
|
|
7858
|
+
}
|
|
7859
|
+
export class AutoFollowPostsTriggerAction implements AppTriggerAction {
|
|
7860
|
+
static type: string;
|
|
7861
|
+
type: string;
|
|
7862
|
+
followByDefault: boolean;
|
|
7863
|
+
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
7864
|
+
}
|
|
7865
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
7866
|
+
static type: string;
|
|
7867
|
+
type: string;
|
|
7868
|
+
recurrenceSeriesId: string;
|
|
7869
|
+
isLiked: boolean;
|
|
7870
|
+
likeCount: number;
|
|
7871
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
7872
|
+
}
|
|
7873
|
+
export class AutoFollowItemTriggerAction implements AppTriggerAction {
|
|
7874
|
+
static type: string;
|
|
7875
|
+
type: string;
|
|
7876
|
+
recurrenceSeriesId: string;
|
|
7877
|
+
isFollowed: boolean;
|
|
7878
|
+
static create(recurrenceSeriesId: string, isFollowed: boolean): AutoFollowItemTriggerAction;
|
|
7879
|
+
}
|
|
7880
|
+
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
7881
|
+
static type: string;
|
|
7882
|
+
type: string;
|
|
7883
|
+
itemIds: string[];
|
|
7884
|
+
static create(itemIds: string[]): DeletedItemsTriggerAction;
|
|
7885
|
+
}
|
|
7886
|
+
export class PromptPublicUserLoginAction implements AppTriggerAction {
|
|
7887
|
+
type: string;
|
|
7888
|
+
static create(): ForbiddenErrorTriggerAction;
|
|
7889
|
+
}
|
|
7890
|
+
export class FeedMarkAllAsReadAction implements AppTriggerAction {
|
|
7891
|
+
static type: string;
|
|
7892
|
+
type: string;
|
|
7893
|
+
static create(): FeedMarkAllAsReadAction;
|
|
7894
|
+
}
|
|
7895
|
+
export class StreamMarkAllAsReadAction implements AppTriggerAction {
|
|
7896
|
+
static type: string;
|
|
7897
|
+
type: string;
|
|
7898
|
+
static create(): StreamMarkAllAsReadAction;
|
|
7899
|
+
}
|
|
7900
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
7901
|
+
static type: string;
|
|
7902
|
+
type: string;
|
|
7903
|
+
itemId: string;
|
|
7904
|
+
static create(itemId: string): RefetchItemAction;
|
|
7905
|
+
}
|
|
7906
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
7907
|
+
static type: string;
|
|
7908
|
+
type: string;
|
|
7909
|
+
itemId: string;
|
|
7910
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
7911
|
+
}
|
|
7912
|
+
export class PagesRecycleBinCleanUpAction implements AppTriggerAction {
|
|
7913
|
+
static type: string;
|
|
7914
|
+
type: string;
|
|
7915
|
+
pageId: string;
|
|
7916
|
+
parentId: string;
|
|
7917
|
+
affectedGroupIds: string[];
|
|
7918
|
+
static create(pageId: string, parentId: string, affectedGroupIds: string[]): PagesRecycleBinCleanUpAction;
|
|
8098
7919
|
}
|
|
8099
|
-
export const FeedbackCountButton: FC<FeedbackCountButtonProps>;
|
|
8100
|
-
export const CountButtonHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8101
|
-
export const CountLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
8102
|
-
isHidden?: boolean;
|
|
8103
|
-
isDisabled?: boolean;
|
|
8104
|
-
}, never>;
|
|
8105
|
-
}
|
|
8106
|
-
declare module "libs/reach/feature/content/src/events/list/EventCardCommentCount" {
|
|
8107
|
-
import { FC } from 'react';
|
|
8108
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
8109
|
-
export const EventCardCommentCount: FC<{
|
|
8110
|
-
item: EventItem;
|
|
8111
|
-
}>;
|
|
8112
|
-
}
|
|
8113
|
-
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventCancelInformation" {
|
|
8114
|
-
import { FC } from 'react';
|
|
8115
|
-
import { EventItem } from "libs/reach/util/common/src/index";
|
|
8116
|
-
export const EventCancelInformation: FC<{
|
|
8117
|
-
item: EventItem;
|
|
8118
|
-
language?: string;
|
|
8119
|
-
className?: string;
|
|
8120
|
-
}>;
|
|
8121
|
-
}
|
|
8122
|
-
declare module "libs/reach/feature/content/src/events/eventUtils" {
|
|
8123
|
-
import { MessageDescriptor } from 'react-intl';
|
|
8124
|
-
import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
|
|
8125
|
-
import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
8126
|
-
export function getLocationQuestionId(item: EventItem): string;
|
|
8127
|
-
export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
|
|
8128
|
-
question?: PollQuestion;
|
|
8129
|
-
translations?: TranslationItem[];
|
|
8130
|
-
};
|
|
8131
7920
|
}
|
|
8132
7921
|
declare module "libs/reach/feature/content/src/common/detail/events/eventUtils" {
|
|
8133
7922
|
import { FeedbackItem, FeedbackItemType } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
@@ -8267,6 +8056,17 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8267
8056
|
onRegistrationRedirect?: (url: string) => void;
|
|
8268
8057
|
}>;
|
|
8269
8058
|
}
|
|
8059
|
+
declare module "libs/reach/feature/content/src/feedback/LikersList" {
|
|
8060
|
+
import { FC } from 'react';
|
|
8061
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8062
|
+
export const LikersList: FC<{
|
|
8063
|
+
itemId: string;
|
|
8064
|
+
itemType: ItemResourceTypes;
|
|
8065
|
+
likersCount: number;
|
|
8066
|
+
className?: string;
|
|
8067
|
+
coinSize?: number;
|
|
8068
|
+
}>;
|
|
8069
|
+
}
|
|
8270
8070
|
declare module "libs/reach/feature/content/src/feedback/LongPressLikeButton" {
|
|
8271
8071
|
import { FC } from 'react';
|
|
8272
8072
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -8301,6 +8101,12 @@ declare module "libs/reach/feature/content/src/feedback/LikeButton" {
|
|
|
8301
8101
|
className?: string;
|
|
8302
8102
|
}>;
|
|
8303
8103
|
}
|
|
8104
|
+
declare module "libs/reach/feature/content/src/feedback/utils" {
|
|
8105
|
+
import { CurrentUser, FeedbackSettings, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8106
|
+
export function hasFeedbackType(feedbackSettings: FeedbackSettings, feedbackType: string): boolean;
|
|
8107
|
+
export function getCommentAndReplyCountTooltipResource(itemType: ItemResourceTypes, replyToComments: boolean): string;
|
|
8108
|
+
export function hasDisabledCommentsNotificationSettings(user: CurrentUser): boolean;
|
|
8109
|
+
}
|
|
8304
8110
|
declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
8305
8111
|
import { ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8306
8112
|
import { FC } from 'react';
|
|
@@ -8342,6 +8148,97 @@ declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModa
|
|
|
8342
8148
|
className?: string;
|
|
8343
8149
|
}>;
|
|
8344
8150
|
}
|
|
8151
|
+
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
8152
|
+
export interface CommentFilter {
|
|
8153
|
+
token: string;
|
|
8154
|
+
sortOrder: SortOrder;
|
|
8155
|
+
pageSize: number;
|
|
8156
|
+
}
|
|
8157
|
+
export enum SortOrder {
|
|
8158
|
+
Asc = 0,
|
|
8159
|
+
Desc = 1
|
|
8160
|
+
}
|
|
8161
|
+
}
|
|
8162
|
+
declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
8163
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8164
|
+
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
8165
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
8166
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
8167
|
+
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
8168
|
+
export function useCommentApi(): {
|
|
8169
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
8170
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
8171
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
8172
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
8173
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
8174
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
8175
|
+
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
8176
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
8177
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
8178
|
+
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
8179
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes, formattedContent?: string) => Promise<Comment>;
|
|
8180
|
+
onCommentCreated$: import("rxjs").Observable<string>;
|
|
8181
|
+
};
|
|
8182
|
+
}
|
|
8183
|
+
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
8184
|
+
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
8185
|
+
}
|
|
8186
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
8187
|
+
import { FC } from 'react';
|
|
8188
|
+
export const ConfirmationBox: FC<{
|
|
8189
|
+
disabled?: boolean;
|
|
8190
|
+
onChange?: (value: boolean) => void;
|
|
8191
|
+
checked: boolean;
|
|
8192
|
+
}>;
|
|
8193
|
+
}
|
|
8194
|
+
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
8195
|
+
import { FC, ReactNode } from 'react';
|
|
8196
|
+
export const GutterMarkerIcon: FC<{
|
|
8197
|
+
iconName: string;
|
|
8198
|
+
children: ReactNode;
|
|
8199
|
+
isActive: boolean;
|
|
8200
|
+
color: string;
|
|
8201
|
+
tooltipResourceKey?: string;
|
|
8202
|
+
className?: string;
|
|
8203
|
+
}>;
|
|
8204
|
+
}
|
|
8205
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
8206
|
+
import { FC } from 'react';
|
|
8207
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
8208
|
+
export const ConfirmationSection: FC<{
|
|
8209
|
+
item?: NewsItem;
|
|
8210
|
+
showDescription: boolean;
|
|
8211
|
+
readOnly?: boolean;
|
|
8212
|
+
className?: string;
|
|
8213
|
+
}>;
|
|
8214
|
+
}
|
|
8215
|
+
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
8216
|
+
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
8217
|
+
export * from "libs/reach/feature/content/src/feedback/GutterMakerIcon";
|
|
8218
|
+
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
8219
|
+
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
8220
|
+
export * from "libs/reach/feature/content/src/feedback/useFeedbackApi";
|
|
8221
|
+
export * from "libs/reach/feature/content/src/feedback/LikersList";
|
|
8222
|
+
}
|
|
8223
|
+
declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
8224
|
+
import { FC } from 'react';
|
|
8225
|
+
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8226
|
+
export interface Props {
|
|
8227
|
+
type: ItemResourceTypes;
|
|
8228
|
+
itemId: string;
|
|
8229
|
+
recurrenceSeriesId?: string;
|
|
8230
|
+
className?: string;
|
|
8231
|
+
scope: ConversationScope;
|
|
8232
|
+
hideProfileUrl?: boolean;
|
|
8233
|
+
onToggleFollow?: (isFollowed: boolean) => void;
|
|
8234
|
+
isReadOnly?: boolean;
|
|
8235
|
+
}
|
|
8236
|
+
export const FollowComments: FC<Props>;
|
|
8237
|
+
export const FollowCommentsNotificationWarning: FC<{
|
|
8238
|
+
hideProfileUrl?: boolean;
|
|
8239
|
+
className?: string;
|
|
8240
|
+
}>;
|
|
8241
|
+
}
|
|
8345
8242
|
declare module "libs/reach/feature/content/src/common/body/inline-file-list/InlineFileStyles" {
|
|
8346
8243
|
export const FileListHost: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
8347
8244
|
export const FileListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
@@ -8837,45 +8734,148 @@ declare module "libs/reach/feature/content/src/common/item-tile/EmbeddedObjectTi
|
|
|
8837
8734
|
className?: string;
|
|
8838
8735
|
}>;
|
|
8839
8736
|
}
|
|
8840
|
-
declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
8737
|
+
declare module "libs/reach/feature/content/src/common/EmbeddedObjectList" {
|
|
8738
|
+
import { FC } from 'react';
|
|
8739
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
8740
|
+
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
8741
|
+
export const EmbeddedObjectList: FC<{
|
|
8742
|
+
attachments: Attachment[];
|
|
8743
|
+
onDeleteClick?: (attachment: Attachment) => void;
|
|
8744
|
+
previewTheme?: CommentInputTheme;
|
|
8745
|
+
enableModalRouting?: boolean;
|
|
8746
|
+
className?: string;
|
|
8747
|
+
}>;
|
|
8748
|
+
}
|
|
8749
|
+
declare module "libs/reach/feature/content/src/comments/ImageAttachmentList" {
|
|
8750
|
+
import { FC } from 'react';
|
|
8751
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
8752
|
+
export const ImageAttachmentList: FC<{
|
|
8753
|
+
images: Attachment[];
|
|
8754
|
+
onDeleteClick?: (image: Attachment) => void;
|
|
8755
|
+
disabled?: boolean;
|
|
8756
|
+
imageBackgroundColor?: string;
|
|
8757
|
+
className?: string;
|
|
8758
|
+
}>;
|
|
8759
|
+
}
|
|
8760
|
+
declare module "libs/reach/feature/content/src/comments/AttachmentList" {
|
|
8761
|
+
import { FC } from 'react';
|
|
8762
|
+
import { Attachment, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8763
|
+
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
8764
|
+
interface Props {
|
|
8765
|
+
className?: string;
|
|
8766
|
+
files: Attachment[];
|
|
8767
|
+
onDeleteAttachmentClick: (file: Attachment) => void;
|
|
8768
|
+
disabled?: boolean;
|
|
8769
|
+
previewTheme?: CommentInputTheme;
|
|
8770
|
+
disableVideoPreview?: boolean;
|
|
8771
|
+
disableEmbeddedObjectPreview?: boolean;
|
|
8772
|
+
itemResourceType?: ItemResourceTypes | string;
|
|
8773
|
+
parentId?: string;
|
|
8774
|
+
}
|
|
8775
|
+
export const AttachmentList: FC<Props>;
|
|
8776
|
+
}
|
|
8777
|
+
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
8778
|
+
import { ReactNode } from 'react';
|
|
8779
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
8780
|
+
export interface UserSuggestion {
|
|
8781
|
+
id: string;
|
|
8782
|
+
upn: string;
|
|
8783
|
+
displayName: string;
|
|
8784
|
+
display: string;
|
|
8785
|
+
}
|
|
8786
|
+
export interface SuggestionArgs {
|
|
8787
|
+
searchText: string;
|
|
8788
|
+
updateSuggestions: (suggestions: UserSuggestion[]) => any;
|
|
8789
|
+
}
|
|
8790
|
+
export interface CommentInputProps {
|
|
8791
|
+
className?: string;
|
|
8792
|
+
content: string;
|
|
8793
|
+
disabled?: boolean;
|
|
8794
|
+
autoFocus?: boolean;
|
|
8795
|
+
onEnter?: () => void;
|
|
8796
|
+
onCtrlEnter?: () => unknown;
|
|
8797
|
+
onChange?: (value: string) => void;
|
|
8798
|
+
onFocus?: () => void;
|
|
8799
|
+
additionalInputControl?: ReactNode;
|
|
8800
|
+
buttons?: {
|
|
8801
|
+
leftSide?: ReactNode;
|
|
8802
|
+
rightSide?: ReactNode;
|
|
8803
|
+
};
|
|
8804
|
+
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
8805
|
+
placeHolderStringResourceKey?: string;
|
|
8806
|
+
placeHolderStringResourceValues?: {
|
|
8807
|
+
[key: string]: string | number | boolean | Date;
|
|
8808
|
+
};
|
|
8809
|
+
disableBoxShadow?: boolean;
|
|
8810
|
+
ariaLabel?: string;
|
|
8811
|
+
}
|
|
8812
|
+
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8813
|
+
}
|
|
8814
|
+
declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
8841
8815
|
import { FC } from 'react';
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
onDeleteClick?: (attachment: Attachment) => void;
|
|
8847
|
-
previewTheme?: CommentInputTheme;
|
|
8848
|
-
enableModalRouting?: boolean;
|
|
8849
|
-
className?: string;
|
|
8850
|
-
}>;
|
|
8816
|
+
export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
8817
|
+
isActive: boolean;
|
|
8818
|
+
}, never>;
|
|
8819
|
+
export const DropInfo: FC;
|
|
8851
8820
|
}
|
|
8852
|
-
declare module "libs/reach/feature/content/src/comments/
|
|
8853
|
-
import {
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8821
|
+
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
8822
|
+
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
8823
|
+
export function getAllVideosFromString(content: string): Generator<{
|
|
8824
|
+
url: string;
|
|
8825
|
+
type: AttachmentType.YouTubeVideo | AttachmentType.VimeoVideo | AttachmentType.MicrosoftStreamVideo;
|
|
8826
|
+
}, void, unknown>;
|
|
8827
|
+
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
8828
|
+
url: string;
|
|
8829
|
+
subscriptionIdentifier: string;
|
|
8830
|
+
type: AttachmentType.News | AttachmentType.Event | AttachmentType.Page | AttachmentType.Post;
|
|
8831
|
+
id: string;
|
|
8832
|
+
}, void, unknown>;
|
|
8862
8833
|
}
|
|
8863
|
-
declare module "libs/reach/feature/content/src/
|
|
8864
|
-
import {
|
|
8834
|
+
declare module "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator" {
|
|
8835
|
+
import { EmbeddedObject } from "libs/reach/util/common/src/index";
|
|
8836
|
+
export function useEmbeddedObjectValidator(): (embeddedObject: EmbeddedObject) => Promise<boolean>;
|
|
8837
|
+
}
|
|
8838
|
+
declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
8839
|
+
import { CommentInputProps } from "libs/reach/feature/content/src/comments/CommentInput";
|
|
8865
8840
|
import { Attachment, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8841
|
+
export interface ClientAttachment extends Attachment {
|
|
8842
|
+
file?: File;
|
|
8843
|
+
}
|
|
8844
|
+
export type Attachments = (Attachment | ClientAttachment)[];
|
|
8845
|
+
export type RichCommentInputProps = CommentInputProps & {
|
|
8846
|
+
attachments: Attachment[];
|
|
8847
|
+
deletedAttachmentUrls: string[];
|
|
8848
|
+
allowAttachments?: boolean;
|
|
8849
|
+
useLargeDropTarget?: boolean;
|
|
8850
|
+
disableDragAndDrop?: boolean;
|
|
8851
|
+
onAttachmentsChange: (attachments: Attachments) => void;
|
|
8852
|
+
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
8853
|
+
placeHolderStringResourceKey?: string;
|
|
8854
|
+
disableAddGif?: boolean;
|
|
8855
|
+
disableAddFiles?: boolean;
|
|
8856
|
+
parentId?: string;
|
|
8875
8857
|
itemResourceType?: ItemResourceTypes | string;
|
|
8858
|
+
};
|
|
8859
|
+
export const RichCommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & {
|
|
8860
|
+
attachments: Attachment[];
|
|
8861
|
+
deletedAttachmentUrls: string[];
|
|
8862
|
+
allowAttachments?: boolean;
|
|
8863
|
+
useLargeDropTarget?: boolean;
|
|
8864
|
+
disableDragAndDrop?: boolean;
|
|
8865
|
+
onAttachmentsChange: (attachments: Attachments) => void;
|
|
8866
|
+
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
8867
|
+
placeHolderStringResourceKey?: string;
|
|
8868
|
+
disableAddGif?: boolean;
|
|
8869
|
+
disableAddFiles?: boolean;
|
|
8876
8870
|
parentId?: string;
|
|
8877
|
-
|
|
8878
|
-
|
|
8871
|
+
itemResourceType?: ItemResourceTypes | string;
|
|
8872
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
8873
|
+
}
|
|
8874
|
+
declare module "libs/reach/feature/content/src/comments/utils" {
|
|
8875
|
+
import { Comment, Attachment, CurrentUser } from "libs/reach/util/common/src/index";
|
|
8876
|
+
export function canSaveInput(allowSaveWithoutContent: boolean, attachments: Attachment[], content: string): boolean;
|
|
8877
|
+
export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
|
|
8878
|
+
export function canEdit(comment: Comment, user: CurrentUser): boolean;
|
|
8879
8879
|
}
|
|
8880
8880
|
declare module "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList" {
|
|
8881
8881
|
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
@@ -9008,68 +9008,6 @@ declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
export const CreateComment: FC<Props>;
|
|
9010
9010
|
}
|
|
9011
|
-
declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar" {
|
|
9012
|
-
import { FC, ReactNode } from 'react';
|
|
9013
|
-
export const InlineObjectToolbar: FC<{
|
|
9014
|
-
onDelete?: () => void;
|
|
9015
|
-
deleteAriaLabelResourceKey?: string;
|
|
9016
|
-
additionalButtons?: ReactNode;
|
|
9017
|
-
}>;
|
|
9018
|
-
export const InlineObjectToolbarWrapper: FC<{
|
|
9019
|
-
toolbar?: ReactNode;
|
|
9020
|
-
}>;
|
|
9021
|
-
}
|
|
9022
|
-
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
9023
|
-
import { FC, ReactNode } from 'react';
|
|
9024
|
-
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
9025
|
-
export const ImageToolbar: FC<{
|
|
9026
|
-
onDelete?: () => void;
|
|
9027
|
-
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
9028
|
-
onClose?: (e: React.MouseEvent<any>) => void;
|
|
9029
|
-
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
9030
|
-
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
9031
|
-
showFullScreenButton?: boolean;
|
|
9032
|
-
showCloseButton?: boolean;
|
|
9033
|
-
showCropButton?: boolean;
|
|
9034
|
-
alignmentButtons?: ReactNode;
|
|
9035
|
-
}>;
|
|
9036
|
-
}
|
|
9037
|
-
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
9038
|
-
import { FC } from 'react';
|
|
9039
|
-
import { GalleryDetails } from "libs/reach/feature/content/src/common/body/InlineGallery";
|
|
9040
|
-
export const PhotoGallerySlider: FC<{
|
|
9041
|
-
gallery: GalleryDetails;
|
|
9042
|
-
imageUrlResolver: (imageId: string, width?: number, height?: number) => string;
|
|
9043
|
-
onCloseGallery?: () => void;
|
|
9044
|
-
onOpenFullScreen?: () => void;
|
|
9045
|
-
showFullScreenButton?: boolean;
|
|
9046
|
-
showCloseButton?: boolean;
|
|
9047
|
-
height?: number;
|
|
9048
|
-
forceMobileView?: boolean;
|
|
9049
|
-
}>;
|
|
9050
|
-
export const ClickableImageWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
9051
|
-
}
|
|
9052
|
-
declare module "libs/reach/feature/content/src/common/body/InlineGallery" {
|
|
9053
|
-
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9054
|
-
import { ImageDetails } from "libs/reach/util/common/src/index";
|
|
9055
|
-
export interface GalleryDetails {
|
|
9056
|
-
galleryId: string;
|
|
9057
|
-
images: ImageDetails[];
|
|
9058
|
-
}
|
|
9059
|
-
export const InlineGalleryMapper: HtmlComponentMapper;
|
|
9060
|
-
}
|
|
9061
|
-
declare module "libs/reach/feature/content/src/posts/ImagesAndFilesList" {
|
|
9062
|
-
import { FC } from 'react';
|
|
9063
|
-
import { ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
9064
|
-
export const ImagesAndFilesList: FC<{
|
|
9065
|
-
item: ItemWithAttachments;
|
|
9066
|
-
basePath: string;
|
|
9067
|
-
imagesGridBackgroundColor?: string;
|
|
9068
|
-
onPlayVideo?: (url: string, videoId: string) => void;
|
|
9069
|
-
onPlayAudio?: (url: string, audioId: string) => void;
|
|
9070
|
-
className?: string;
|
|
9071
|
-
}>;
|
|
9072
|
-
}
|
|
9073
9011
|
declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
9074
9012
|
import { FC } from 'react';
|
|
9075
9013
|
import { Account, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -9154,6 +9092,68 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
9154
9092
|
export const EditCommentWithAttachments: FC<Props>;
|
|
9155
9093
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
9156
9094
|
}
|
|
9095
|
+
declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar" {
|
|
9096
|
+
import { FC, ReactNode } from 'react';
|
|
9097
|
+
export const InlineObjectToolbar: FC<{
|
|
9098
|
+
onDelete?: () => void;
|
|
9099
|
+
deleteAriaLabelResourceKey?: string;
|
|
9100
|
+
additionalButtons?: ReactNode;
|
|
9101
|
+
}>;
|
|
9102
|
+
export const InlineObjectToolbarWrapper: FC<{
|
|
9103
|
+
toolbar?: ReactNode;
|
|
9104
|
+
}>;
|
|
9105
|
+
}
|
|
9106
|
+
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
9107
|
+
import { FC, ReactNode } from 'react';
|
|
9108
|
+
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
9109
|
+
export const ImageToolbar: FC<{
|
|
9110
|
+
onDelete?: () => void;
|
|
9111
|
+
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
9112
|
+
onClose?: (e: React.MouseEvent<any>) => void;
|
|
9113
|
+
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
9114
|
+
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
9115
|
+
showFullScreenButton?: boolean;
|
|
9116
|
+
showCloseButton?: boolean;
|
|
9117
|
+
showCropButton?: boolean;
|
|
9118
|
+
alignmentButtons?: ReactNode;
|
|
9119
|
+
}>;
|
|
9120
|
+
}
|
|
9121
|
+
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
9122
|
+
import { FC } from 'react';
|
|
9123
|
+
import { GalleryDetails } from "libs/reach/feature/content/src/common/body/InlineGallery";
|
|
9124
|
+
export const PhotoGallerySlider: FC<{
|
|
9125
|
+
gallery: GalleryDetails;
|
|
9126
|
+
imageUrlResolver: (imageId: string, width?: number, height?: number) => string;
|
|
9127
|
+
onCloseGallery?: () => void;
|
|
9128
|
+
onOpenFullScreen?: () => void;
|
|
9129
|
+
showFullScreenButton?: boolean;
|
|
9130
|
+
showCloseButton?: boolean;
|
|
9131
|
+
height?: number;
|
|
9132
|
+
forceMobileView?: boolean;
|
|
9133
|
+
}>;
|
|
9134
|
+
export const ClickableImageWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
9135
|
+
}
|
|
9136
|
+
declare module "libs/reach/feature/content/src/common/body/InlineGallery" {
|
|
9137
|
+
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9138
|
+
import { ImageDetails } from "libs/reach/util/common/src/index";
|
|
9139
|
+
export interface GalleryDetails {
|
|
9140
|
+
galleryId: string;
|
|
9141
|
+
images: ImageDetails[];
|
|
9142
|
+
}
|
|
9143
|
+
export const InlineGalleryMapper: HtmlComponentMapper;
|
|
9144
|
+
}
|
|
9145
|
+
declare module "libs/reach/feature/content/src/posts/ImagesAndFilesList" {
|
|
9146
|
+
import { FC } from 'react';
|
|
9147
|
+
import { ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
9148
|
+
export const ImagesAndFilesList: FC<{
|
|
9149
|
+
item: ItemWithAttachments;
|
|
9150
|
+
basePath: string;
|
|
9151
|
+
imagesGridBackgroundColor?: string;
|
|
9152
|
+
onPlayVideo?: (url: string, videoId: string) => void;
|
|
9153
|
+
onPlayAudio?: (url: string, audioId: string) => void;
|
|
9154
|
+
className?: string;
|
|
9155
|
+
}>;
|
|
9156
|
+
}
|
|
9157
9157
|
declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton" {
|
|
9158
9158
|
import { FC } from 'react';
|
|
9159
9159
|
export const ContentWithShowMoreButton: FC<{
|
|
@@ -9221,22 +9221,19 @@ declare module "libs/reach/feature/content/src/comments/useCommentsPageLoader" {
|
|
|
9221
9221
|
];
|
|
9222
9222
|
}
|
|
9223
9223
|
declare module "libs/reach/feature/content/src/comments/index" {
|
|
9224
|
+
export * from "libs/reach/feature/content/src/comments/AttachmentList";
|
|
9225
|
+
export * from "libs/reach/feature/content/src/comments/CommentContentUtils";
|
|
9226
|
+
export * from "libs/reach/feature/content/src/comments/CommentInput";
|
|
9224
9227
|
export * from "libs/reach/feature/content/src/comments/ContentDisplay";
|
|
9225
|
-
export * from "libs/reach/feature/content/src/comments/FollowComments";
|
|
9226
9228
|
export * from "libs/reach/feature/content/src/comments/CreateComment";
|
|
9227
|
-
export * from "libs/reach/feature/content/src/comments/
|
|
9229
|
+
export * from "libs/reach/feature/content/src/comments/EditCommentWithAttachments";
|
|
9230
|
+
export * from "libs/reach/feature/content/src/comments/FollowComments";
|
|
9228
9231
|
export * from "libs/reach/feature/content/src/comments/LegacyCommentDisplay";
|
|
9229
|
-
export * from "libs/reach/feature/content/src/comments/useCommentApi";
|
|
9230
|
-
export * from "libs/reach/feature/content/src/comments/UrlMatcher";
|
|
9231
|
-
export * from "libs/reach/feature/content/src/comments/ContentDisplay";
|
|
9232
9232
|
export * from "libs/reach/feature/content/src/comments/RichCommentInput";
|
|
9233
|
-
export * from "libs/reach/feature/content/src/comments/ContentDisplay";
|
|
9234
|
-
export * from "libs/reach/feature/content/src/comments/AttachmentList";
|
|
9235
|
-
export * from "libs/reach/feature/content/src/comments/EditCommentWithAttachments";
|
|
9236
9233
|
export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
|
|
9237
|
-
export * from "libs/reach/feature/content/src/comments/
|
|
9234
|
+
export * from "libs/reach/feature/content/src/comments/UrlMatcher";
|
|
9235
|
+
export * from "libs/reach/feature/content/src/comments/useCommentApi";
|
|
9238
9236
|
export * from "libs/reach/feature/content/src/comments/useCommentsPageLoader";
|
|
9239
|
-
export * from "libs/reach/feature/content/src/comments/CommentContentUtils";
|
|
9240
9237
|
}
|
|
9241
9238
|
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
9242
9239
|
import { FC } from 'react';
|
|
@@ -12851,6 +12848,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12851
12848
|
import { FC } from 'react';
|
|
12852
12849
|
interface ICommentEditorHeaderProps {
|
|
12853
12850
|
isCollapsed: boolean;
|
|
12851
|
+
mobileHeaderTitle: string;
|
|
12854
12852
|
onCancel: () => void;
|
|
12855
12853
|
}
|
|
12856
12854
|
const CommentEditorHeader: FC<ICommentEditorHeaderProps>;
|
|
@@ -12881,8 +12879,9 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12881
12879
|
autofocus?: boolean;
|
|
12882
12880
|
comment?: Comment;
|
|
12883
12881
|
isCollapsed?: boolean;
|
|
12884
|
-
isSaving
|
|
12885
|
-
|
|
12882
|
+
isSaving: boolean;
|
|
12883
|
+
mobileHeaderTitle?: string;
|
|
12884
|
+
onCancel: () => void;
|
|
12886
12885
|
onFocus?: () => void;
|
|
12887
12886
|
onSave: (newContent: {
|
|
12888
12887
|
content?: string;
|
|
@@ -12922,6 +12921,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12922
12921
|
interface ICommentMetadataProps {
|
|
12923
12922
|
comment: Comment;
|
|
12924
12923
|
onReply: () => void;
|
|
12924
|
+
setIsMobileEditorOpen?: (isOpen: boolean) => void;
|
|
12925
12925
|
totalReplies: number;
|
|
12926
12926
|
}
|
|
12927
12927
|
const CommentMetadata: FC<ICommentMetadataProps>;
|
|
@@ -12932,14 +12932,33 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12932
12932
|
import { FC } from 'react';
|
|
12933
12933
|
interface ICommentDisplayProps {
|
|
12934
12934
|
comment: Comment;
|
|
12935
|
-
onEdit: () => void;
|
|
12936
12935
|
onDelete: () => void;
|
|
12936
|
+
onEdit: () => void;
|
|
12937
12937
|
onReply?: () => void;
|
|
12938
|
+
setIsMobileEditorOpen?: (isOpen: boolean) => void;
|
|
12938
12939
|
totalReplies: number;
|
|
12939
12940
|
}
|
|
12940
12941
|
const CommentDisplay: FC<ICommentDisplayProps>;
|
|
12941
12942
|
export default CommentDisplay;
|
|
12942
12943
|
}
|
|
12944
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/MobileCommentEditor" {
|
|
12945
|
+
import { FC } from 'react';
|
|
12946
|
+
import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12947
|
+
interface IMobileCommentEditorProps {
|
|
12948
|
+
comment?: CommentWithReplies;
|
|
12949
|
+
isSaving: boolean;
|
|
12950
|
+
mobileHeaderTitle: string;
|
|
12951
|
+
onDismiss: () => void;
|
|
12952
|
+
onSave: (newContent: {
|
|
12953
|
+
content?: string;
|
|
12954
|
+
formattedContent?: string;
|
|
12955
|
+
}, clearContent: () => void) => Promise<void>;
|
|
12956
|
+
parentItemId: string;
|
|
12957
|
+
placeholder?: string;
|
|
12958
|
+
}
|
|
12959
|
+
const MobileCommentEditor: FC<IMobileCommentEditorProps>;
|
|
12960
|
+
export default MobileCommentEditor;
|
|
12961
|
+
}
|
|
12943
12962
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItemReplies" {
|
|
12944
12963
|
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
12945
12964
|
import { FC } from 'react';
|
|
@@ -12948,7 +12967,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12948
12967
|
isCollapsed: boolean;
|
|
12949
12968
|
isReplyMode: boolean;
|
|
12950
12969
|
parentItemId: string;
|
|
12951
|
-
refetchComments: () => void
|
|
12970
|
+
refetchComments: () => Promise<void>;
|
|
12952
12971
|
threadId: string;
|
|
12953
12972
|
totalInitialReplies: number;
|
|
12954
12973
|
}
|
|
@@ -12974,7 +12993,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12974
12993
|
onEdit: (isEditMode: boolean) => void;
|
|
12975
12994
|
onReply: (isReplyMode: boolean) => void;
|
|
12976
12995
|
parentItemId: string;
|
|
12977
|
-
refetchComments: () => void
|
|
12996
|
+
refetchComments: () => Promise<void>;
|
|
12978
12997
|
totalReplies: number;
|
|
12979
12998
|
}
|
|
12980
12999
|
const CommentListItem: FC<ICommentListItemProps>;
|
|
@@ -12983,10 +13002,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12983
13002
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentList" {
|
|
12984
13003
|
import { FC } from 'react';
|
|
12985
13004
|
interface ICommentListProps {
|
|
12986
|
-
autofocus
|
|
12987
|
-
hideComments
|
|
13005
|
+
autofocus: boolean;
|
|
13006
|
+
hideComments: () => void;
|
|
12988
13007
|
itemId: string;
|
|
12989
13008
|
refetchItem: (itemId: string) => Promise<void>;
|
|
13009
|
+
setShowCommentsList: (isOpen: boolean) => void;
|
|
12990
13010
|
totalComments: number;
|
|
12991
13011
|
}
|
|
12992
13012
|
const CommentList: FC<ICommentListProps>;
|