@livetiles/reach-plugin-types 0.5.0-preview.244 → 0.5.0-preview.246
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 +351 -343
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7028,105 +7028,24 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
7028
7028
|
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
7029
7029
|
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
7030
7030
|
}
|
|
7031
|
-
declare module "libs/reach/feature/content/src/
|
|
7031
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
7032
7032
|
import { FC } from 'react';
|
|
7033
|
-
|
|
7034
|
-
interface Props {
|
|
7035
|
-
type: ItemResourceTypes;
|
|
7036
|
-
itemId: string;
|
|
7037
|
-
recurrenceSeriesId?: string;
|
|
7038
|
-
className?: string;
|
|
7039
|
-
scope: ConversationScope;
|
|
7040
|
-
hideProfileUrl?: boolean;
|
|
7041
|
-
hideWarning?: boolean;
|
|
7042
|
-
onToggleFollow?: (isFollowed: boolean) => void;
|
|
7043
|
-
}
|
|
7044
|
-
export const FollowComments: FC<Props>;
|
|
7045
|
-
}
|
|
7046
|
-
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
7047
|
-
import { ReactNode } from 'react';
|
|
7048
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
7049
|
-
export interface UserSuggestion {
|
|
7050
|
-
id: string;
|
|
7051
|
-
upn: string;
|
|
7052
|
-
displayName: string;
|
|
7053
|
-
display: string;
|
|
7054
|
-
}
|
|
7055
|
-
export interface SuggestionArgs {
|
|
7056
|
-
searchText: string;
|
|
7057
|
-
updateSuggestions: (suggestions: UserSuggestion[]) => any;
|
|
7058
|
-
}
|
|
7059
|
-
export interface CommentInputProps {
|
|
7060
|
-
className?: string;
|
|
7061
|
-
content: string;
|
|
7033
|
+
export const ConfirmationBox: FC<{
|
|
7062
7034
|
disabled?: boolean;
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
onChange?: (value: string) => void;
|
|
7067
|
-
onFocus?: () => void;
|
|
7068
|
-
additionalInputControl?: ReactNode;
|
|
7069
|
-
buttons?: {
|
|
7070
|
-
leftSide?: ReactNode;
|
|
7071
|
-
rightSide?: ReactNode;
|
|
7072
|
-
};
|
|
7073
|
-
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7074
|
-
placeHolderStringResourceKey?: string;
|
|
7075
|
-
placeHolderStringResourceValues?: {
|
|
7076
|
-
[key: string]: string | number | boolean | Date;
|
|
7077
|
-
};
|
|
7078
|
-
disableBoxShadow?: boolean;
|
|
7079
|
-
ariaLabel?: string;
|
|
7080
|
-
}
|
|
7081
|
-
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7035
|
+
onChange?: (value: boolean) => void;
|
|
7036
|
+
checked: boolean;
|
|
7037
|
+
}>;
|
|
7082
7038
|
}
|
|
7083
|
-
declare module "libs/reach/feature/content/src/
|
|
7084
|
-
import { FC } from 'react';
|
|
7085
|
-
export const
|
|
7039
|
+
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
7040
|
+
import { FC, ReactNode } from 'react';
|
|
7041
|
+
export const GutterMarkerIcon: FC<{
|
|
7042
|
+
iconName: string;
|
|
7043
|
+
children: ReactNode;
|
|
7086
7044
|
isActive: boolean;
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7092
|
-
export interface KalturaProperties {
|
|
7093
|
-
sp?: string;
|
|
7094
|
-
uiconfId?: string;
|
|
7095
|
-
partnerId?: string;
|
|
7096
|
-
entryId?: string;
|
|
7097
|
-
}
|
|
7098
|
-
export class VideoUrlParser {
|
|
7099
|
-
private url;
|
|
7100
|
-
private static ytRegex;
|
|
7101
|
-
private static vimeoRegex;
|
|
7102
|
-
private static microsoftStreamRegex;
|
|
7103
|
-
private static vimeoDirectLinkRegex;
|
|
7104
|
-
private static vimeoRedirectLinkRegex;
|
|
7105
|
-
private static kalturaRegex;
|
|
7106
|
-
readonly source: VideoSource | null;
|
|
7107
|
-
readonly id: string | null;
|
|
7108
|
-
readonly isDirectVideoUrl: boolean;
|
|
7109
|
-
readonly videoProperties: any;
|
|
7110
|
-
readonly thumbnailUrl: string;
|
|
7111
|
-
constructor(url: string);
|
|
7112
|
-
isValid(features: FeatureSet): boolean;
|
|
7113
|
-
}
|
|
7114
|
-
export function getVideoSources(features: FeatureSet): any[];
|
|
7115
|
-
export function getAdditionalVideoSources(): import("@livetiles/shared/util/environment").VideoSource[];
|
|
7116
|
-
export function getAllVideoSources(features: FeatureSet): any[];
|
|
7117
|
-
}
|
|
7118
|
-
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
7119
|
-
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
7120
|
-
export function getAllVideosFromString(content: string): Generator<{
|
|
7121
|
-
url: string;
|
|
7122
|
-
type: AttachmentType;
|
|
7123
|
-
}, void, unknown>;
|
|
7124
|
-
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
7125
|
-
url: string;
|
|
7126
|
-
subscriptionIdentifier: string;
|
|
7127
|
-
type: AttachmentType.News | AttachmentType.Event | AttachmentType.Page | AttachmentType.Post;
|
|
7128
|
-
id: string;
|
|
7129
|
-
}, void, unknown>;
|
|
7045
|
+
color: string;
|
|
7046
|
+
tooltipResourceKey?: string;
|
|
7047
|
+
className?: string;
|
|
7048
|
+
}>;
|
|
7130
7049
|
}
|
|
7131
7050
|
declare module "libs/reach/feature/content/src/filter/OwnerFilterDefinition" {
|
|
7132
7051
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
@@ -7180,6 +7099,49 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
7180
7099
|
And = "AND"
|
|
7181
7100
|
}
|
|
7182
7101
|
}
|
|
7102
|
+
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
7103
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7104
|
+
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
7105
|
+
author?: string;
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
7109
|
+
import { FilterWithLogicalOperator, IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7110
|
+
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
7111
|
+
channels?: FilterWithLogicalOperator;
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
7115
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7116
|
+
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
7117
|
+
export interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
7118
|
+
state?: WorkflowStatus;
|
|
7119
|
+
}
|
|
7120
|
+
}
|
|
7121
|
+
declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
7122
|
+
import { AuthorFilterDefinition } from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7123
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7124
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7125
|
+
import { StateFilterDefinition } from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7126
|
+
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
7127
|
+
groupId?: string;
|
|
7128
|
+
bookmarksOnly?: boolean;
|
|
7129
|
+
unreadOnly?: boolean;
|
|
7130
|
+
includeExpired?: boolean;
|
|
7131
|
+
}
|
|
7132
|
+
}
|
|
7133
|
+
declare module "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition" {
|
|
7134
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7135
|
+
export interface AfterPublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7136
|
+
afterDate?: string;
|
|
7137
|
+
}
|
|
7138
|
+
}
|
|
7139
|
+
declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinition" {
|
|
7140
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7141
|
+
export interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
7142
|
+
contacts?: string[];
|
|
7143
|
+
}
|
|
7144
|
+
}
|
|
7183
7145
|
declare module "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder" {
|
|
7184
7146
|
import { SortDirection } from "libs/reach/util/common/src/index";
|
|
7185
7147
|
export class SortFieldsDefinitionBuilder<T extends string> {
|
|
@@ -7195,18 +7157,6 @@ declare module "libs/reach/feature/content/src/filter/EventsStartDateFilterDefin
|
|
|
7195
7157
|
startsBefore?: string;
|
|
7196
7158
|
}
|
|
7197
7159
|
}
|
|
7198
|
-
declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinition" {
|
|
7199
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7200
|
-
export interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
7201
|
-
contacts?: string[];
|
|
7202
|
-
}
|
|
7203
|
-
}
|
|
7204
|
-
declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition" {
|
|
7205
|
-
import { FilterWithLogicalOperator, IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7206
|
-
export interface ChannelsFilterDefinition extends IndexableFilterDefinition {
|
|
7207
|
-
channels?: FilterWithLogicalOperator;
|
|
7208
|
-
}
|
|
7209
|
-
}
|
|
7210
7160
|
declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
7211
7161
|
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7212
7162
|
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
@@ -7223,18 +7173,6 @@ declare module "libs/reach/feature/content/src/filter/EventFilterDefinition" {
|
|
|
7223
7173
|
}
|
|
7224
7174
|
export const eventsPastViewSortDefinition: EventSortFieldsDefinitionBuilder;
|
|
7225
7175
|
}
|
|
7226
|
-
declare module "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition" {
|
|
7227
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7228
|
-
export interface AfterPublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7229
|
-
afterDate?: string;
|
|
7230
|
-
}
|
|
7231
|
-
}
|
|
7232
|
-
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
7233
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7234
|
-
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
7235
|
-
author?: string;
|
|
7236
|
-
}
|
|
7237
|
-
}
|
|
7238
7176
|
declare module "libs/reach/feature/content/src/filter/FilteringProps" {
|
|
7239
7177
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7240
7178
|
export interface FilteringProps {
|
|
@@ -7244,25 +7182,6 @@ declare module "libs/reach/feature/content/src/filter/FilteringProps" {
|
|
|
7244
7182
|
isFilterActive?: boolean;
|
|
7245
7183
|
}
|
|
7246
7184
|
}
|
|
7247
|
-
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
7248
|
-
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7249
|
-
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
7250
|
-
export interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
7251
|
-
state?: WorkflowStatus;
|
|
7252
|
-
}
|
|
7253
|
-
}
|
|
7254
|
-
declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
7255
|
-
import { AuthorFilterDefinition } from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7256
|
-
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7257
|
-
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7258
|
-
import { StateFilterDefinition } from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7259
|
-
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
7260
|
-
groupId?: string;
|
|
7261
|
-
bookmarksOnly?: boolean;
|
|
7262
|
-
unreadOnly?: boolean;
|
|
7263
|
-
includeExpired?: boolean;
|
|
7264
|
-
}
|
|
7265
|
-
}
|
|
7266
7185
|
declare module "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition" {
|
|
7267
7186
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7268
7187
|
export enum ItemTypeFilterFlag {
|
|
@@ -7310,39 +7229,296 @@ declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
|
7310
7229
|
showFilterSidebar?: boolean;
|
|
7311
7230
|
}
|
|
7312
7231
|
}
|
|
7313
|
-
declare module "libs/reach/feature/content/src/filter/index" {
|
|
7314
|
-
export * from "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition";
|
|
7315
|
-
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7316
|
-
export * from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7317
|
-
export * from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7318
|
-
export * from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7319
|
-
export * from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7320
|
-
export * from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7321
|
-
export * from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7322
|
-
export * from "libs/reach/feature/content/src/filter/FilteringProps";
|
|
7323
|
-
export * from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7324
|
-
export * from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7325
|
-
export * from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7326
|
-
export * from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7327
|
-
export * from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7328
|
-
export * from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7329
|
-
export * from "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition";
|
|
7330
|
-
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
7331
|
-
export * from "libs/reach/feature/content/src/filter/utils";
|
|
7232
|
+
declare module "libs/reach/feature/content/src/filter/index" {
|
|
7233
|
+
export * from "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition";
|
|
7234
|
+
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7235
|
+
export * from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7236
|
+
export * from "libs/reach/feature/content/src/filter/BeforePublishingDateFilterDefinition";
|
|
7237
|
+
export * from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7238
|
+
export * from "libs/reach/feature/content/src/filter/EventContactsFilterDefinition";
|
|
7239
|
+
export * from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7240
|
+
export * from "libs/reach/feature/content/src/filter/EventsStartDateFilterDefinition";
|
|
7241
|
+
export * from "libs/reach/feature/content/src/filter/FilteringProps";
|
|
7242
|
+
export * from "libs/reach/feature/content/src/filter/KeywordsFilterDefinition";
|
|
7243
|
+
export * from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7244
|
+
export * from "libs/reach/feature/content/src/filter/OwnerFilterDefinition";
|
|
7245
|
+
export * from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
7246
|
+
export * from "libs/reach/feature/content/src/filter/SourceFilterDefinition";
|
|
7247
|
+
export * from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7248
|
+
export * from "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition";
|
|
7249
|
+
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
7250
|
+
export * from "libs/reach/feature/content/src/filter/utils";
|
|
7251
|
+
}
|
|
7252
|
+
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
7253
|
+
import { FilterWithLogicalOperator, LogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
7254
|
+
export function getCommaSeparatedChannelsString(channels: FilterWithLogicalOperator): {
|
|
7255
|
+
channels?: undefined;
|
|
7256
|
+
} | {
|
|
7257
|
+
channels: string;
|
|
7258
|
+
};
|
|
7259
|
+
export function getCommaSeparatedKeywordsString(keywords: FilterWithLogicalOperator): {
|
|
7260
|
+
keywords?: undefined;
|
|
7261
|
+
} | {
|
|
7262
|
+
keywords: string;
|
|
7263
|
+
};
|
|
7264
|
+
export function convertToFilterWithLogicalOperator(value: string, operator?: LogicalOperator): FilterWithLogicalOperator;
|
|
7265
|
+
}
|
|
7266
|
+
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
7267
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7268
|
+
import { Observable } from 'rxjs';
|
|
7269
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7270
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7271
|
+
import { Api } from 'restful.js';
|
|
7272
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7273
|
+
export function fetchNewsItems(path: string, cacheKey: string, api: Api, storage: Storage, paginationToken?: string, filterDefinition?: NewsFilterDefinition, isArray?: boolean): Observable<PaginatedList<NewsItem>>;
|
|
7274
|
+
}
|
|
7275
|
+
declare module "libs/reach/feature/content/src/news/NewsStatisticsSummary" {
|
|
7276
|
+
export default interface NewsStatisticsSummary {
|
|
7277
|
+
readCount: number;
|
|
7278
|
+
bookmarkCount: number;
|
|
7279
|
+
commentCount: number;
|
|
7280
|
+
feedbackCounts: {
|
|
7281
|
+
[key: string]: number;
|
|
7282
|
+
};
|
|
7283
|
+
replyCount: number;
|
|
7284
|
+
}
|
|
7285
|
+
}
|
|
7286
|
+
declare module "libs/reach/feature/content/src/news/NewsApiService" {
|
|
7287
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7288
|
+
import { Observable } from 'rxjs';
|
|
7289
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7290
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7291
|
+
import { ItemStatistics } from "libs/reach/util/common/src/index";
|
|
7292
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7293
|
+
import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/index";
|
|
7294
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7295
|
+
export class NewsApiService {
|
|
7296
|
+
private factory;
|
|
7297
|
+
private storage;
|
|
7298
|
+
private static readonly bookmarksCacheKey;
|
|
7299
|
+
private static readonly newsItemsCacheKey;
|
|
7300
|
+
private static readonly newsCacheKey;
|
|
7301
|
+
private static readonly allNewsCacheKey;
|
|
7302
|
+
private static readonly myUnreadNewsCacheKey;
|
|
7303
|
+
private api;
|
|
7304
|
+
constructor(factory: ClientFactoryInstance, subscriptionId: string, storage: Storage);
|
|
7305
|
+
trackExternalItem: (itemId: string, itemType: ItemResourceTypes) => Promise<unknown>;
|
|
7306
|
+
getAllNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7307
|
+
getAllUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7308
|
+
getMyNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7309
|
+
getMyUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7310
|
+
getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
|
|
7311
|
+
private getNewsFromCache;
|
|
7312
|
+
get: (newsId: string) => Observable<NewsItem>;
|
|
7313
|
+
getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number) => string;
|
|
7314
|
+
getStatistics: (newsId: string) => Promise<ItemStatistics>;
|
|
7315
|
+
refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
|
|
7316
|
+
private static getUpdatedStatistics;
|
|
7317
|
+
private tryUpdateStatisticsInCache;
|
|
7318
|
+
getExternalItemRoute: (resourceType: ItemResourceTypes, itemId: string, accessToken: string) => string;
|
|
7319
|
+
}
|
|
7320
|
+
}
|
|
7321
|
+
declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
7322
|
+
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7323
|
+
export function useNewsApi(): NewsApiService;
|
|
7324
|
+
}
|
|
7325
|
+
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7326
|
+
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7327
|
+
export default interface FeedbackSummary {
|
|
7328
|
+
records: FeedbackItem[];
|
|
7329
|
+
}
|
|
7330
|
+
export enum FeedbackItemType {
|
|
7331
|
+
comment = "comment",
|
|
7332
|
+
like = "like",
|
|
7333
|
+
confirm = "confirm",
|
|
7334
|
+
poll = "poll",
|
|
7335
|
+
eventRegistration = "eventRegistration"
|
|
7336
|
+
}
|
|
7337
|
+
export interface FeedbackItem {
|
|
7338
|
+
type: FeedbackItemType;
|
|
7339
|
+
timestamp: string;
|
|
7340
|
+
}
|
|
7341
|
+
export interface PollFeedbackItem extends FeedbackItem {
|
|
7342
|
+
type: FeedbackItemType.poll;
|
|
7343
|
+
answers: PollQuestionAnswer[];
|
|
7344
|
+
}
|
|
7345
|
+
}
|
|
7346
|
+
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
7347
|
+
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
7348
|
+
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
7349
|
+
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7350
|
+
export const feedbackCache: {
|
|
7351
|
+
[newsId: string]: Promise<FeedbackSummary>;
|
|
7352
|
+
};
|
|
7353
|
+
export function useFeedbackApi(): {
|
|
7354
|
+
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
7355
|
+
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7356
|
+
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7357
|
+
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
7358
|
+
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
7359
|
+
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7360
|
+
};
|
|
7361
|
+
}
|
|
7362
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
7363
|
+
import { FC } from 'react';
|
|
7364
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7365
|
+
export const ConfirmationSection: FC<{
|
|
7366
|
+
item?: NewsItem;
|
|
7367
|
+
showDescription: boolean;
|
|
7368
|
+
readOnly?: boolean;
|
|
7369
|
+
className?: string;
|
|
7370
|
+
}>;
|
|
7371
|
+
}
|
|
7372
|
+
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
7373
|
+
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7374
|
+
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
7375
|
+
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
7376
|
+
export class NewsService {
|
|
7377
|
+
static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7378
|
+
static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7379
|
+
static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
7380
|
+
static getContentLanguages(contents: {
|
|
7381
|
+
[lang: string]: ContentDefinition;
|
|
7382
|
+
}, languages: LanguageBase[], contentValidator?: (c: PublishableItemContent) => boolean): string[];
|
|
7383
|
+
static getLanguageForPublishableItem(item: PublishableItem, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7384
|
+
static getLanguageForContent(contents: {
|
|
7385
|
+
[lang: string]: ContentDefinition;
|
|
7386
|
+
}, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7387
|
+
static getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7388
|
+
}
|
|
7389
|
+
}
|
|
7390
|
+
declare module "libs/reach/feature/content/src/feedback/PollTranslationContext" {
|
|
7391
|
+
import { FC } from 'react';
|
|
7392
|
+
import { PublishableItemContents } from "libs/reach/util/common/src/index";
|
|
7393
|
+
export interface TranslationItem {
|
|
7394
|
+
language: string;
|
|
7395
|
+
id: string;
|
|
7396
|
+
text: string;
|
|
7397
|
+
}
|
|
7398
|
+
export const PollTranslationContext: import("react").Context<{
|
|
7399
|
+
getTranslation: (id: string) => string;
|
|
7400
|
+
getAllTranslations: (id: string) => TranslationItem[];
|
|
7401
|
+
}>;
|
|
7402
|
+
export const PollTranslationContextProvider: FC<{
|
|
7403
|
+
contents?: PublishableItemContents;
|
|
7404
|
+
language: string;
|
|
7405
|
+
additionalTranslations?: TranslationItem[];
|
|
7406
|
+
}>;
|
|
7407
|
+
}
|
|
7408
|
+
declare module "libs/reach/feature/content/src/feedback/utils" {
|
|
7409
|
+
import { CurrentUser, FeedbackSettings, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7410
|
+
export function hasFeedbackType(feedbackSettings: FeedbackSettings, feedbackType: string): boolean;
|
|
7411
|
+
export function getCommentAndReplyCountTooltipResource(itemType: ItemResourceTypes, replyToComments: boolean): string;
|
|
7412
|
+
export function hasDisabledCommentsNotificationSettings(user: CurrentUser): boolean;
|
|
7413
|
+
}
|
|
7414
|
+
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
7415
|
+
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
7416
|
+
export * from "libs/reach/feature/content/src/feedback/GutterMakerIcon";
|
|
7417
|
+
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
7418
|
+
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
7419
|
+
}
|
|
7420
|
+
declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
7421
|
+
import { FC } from 'react';
|
|
7422
|
+
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7423
|
+
interface Props {
|
|
7424
|
+
type: ItemResourceTypes;
|
|
7425
|
+
itemId: string;
|
|
7426
|
+
recurrenceSeriesId?: string;
|
|
7427
|
+
className?: string;
|
|
7428
|
+
scope: ConversationScope;
|
|
7429
|
+
hideProfileUrl?: boolean;
|
|
7430
|
+
onToggleFollow?: (isFollowed: boolean) => void;
|
|
7431
|
+
}
|
|
7432
|
+
export const FollowComments: FC<Props>;
|
|
7433
|
+
export const FollowCommentsNotificationWarning: FC<{
|
|
7434
|
+
hideProfileUrl?: boolean;
|
|
7435
|
+
className?: string;
|
|
7436
|
+
}>;
|
|
7437
|
+
}
|
|
7438
|
+
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
7439
|
+
import { ReactNode } from 'react';
|
|
7440
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
7441
|
+
export interface UserSuggestion {
|
|
7442
|
+
id: string;
|
|
7443
|
+
upn: string;
|
|
7444
|
+
displayName: string;
|
|
7445
|
+
display: string;
|
|
7446
|
+
}
|
|
7447
|
+
export interface SuggestionArgs {
|
|
7448
|
+
searchText: string;
|
|
7449
|
+
updateSuggestions: (suggestions: UserSuggestion[]) => any;
|
|
7450
|
+
}
|
|
7451
|
+
export interface CommentInputProps {
|
|
7452
|
+
className?: string;
|
|
7453
|
+
content: string;
|
|
7454
|
+
disabled?: boolean;
|
|
7455
|
+
autoFocus?: boolean;
|
|
7456
|
+
onEnter?: () => void;
|
|
7457
|
+
onCtrlEnter?: () => unknown;
|
|
7458
|
+
onChange?: (value: string) => void;
|
|
7459
|
+
onFocus?: () => void;
|
|
7460
|
+
additionalInputControl?: ReactNode;
|
|
7461
|
+
buttons?: {
|
|
7462
|
+
leftSide?: ReactNode;
|
|
7463
|
+
rightSide?: ReactNode;
|
|
7464
|
+
};
|
|
7465
|
+
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
7466
|
+
placeHolderStringResourceKey?: string;
|
|
7467
|
+
placeHolderStringResourceValues?: {
|
|
7468
|
+
[key: string]: string | number | boolean | Date;
|
|
7469
|
+
};
|
|
7470
|
+
disableBoxShadow?: boolean;
|
|
7471
|
+
ariaLabel?: string;
|
|
7472
|
+
}
|
|
7473
|
+
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7474
|
+
}
|
|
7475
|
+
declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
7476
|
+
import { FC } from 'react';
|
|
7477
|
+
export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7478
|
+
isActive: boolean;
|
|
7479
|
+
}, never>;
|
|
7480
|
+
export const DropInfo: FC;
|
|
7332
7481
|
}
|
|
7333
|
-
declare module "libs/reach/feature/content/src/
|
|
7334
|
-
import {
|
|
7335
|
-
export
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7482
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7483
|
+
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7484
|
+
export interface KalturaProperties {
|
|
7485
|
+
sp?: string;
|
|
7486
|
+
uiconfId?: string;
|
|
7487
|
+
partnerId?: string;
|
|
7488
|
+
entryId?: string;
|
|
7489
|
+
}
|
|
7490
|
+
export class VideoUrlParser {
|
|
7491
|
+
private url;
|
|
7492
|
+
private static ytRegex;
|
|
7493
|
+
private static vimeoRegex;
|
|
7494
|
+
private static microsoftStreamRegex;
|
|
7495
|
+
private static vimeoDirectLinkRegex;
|
|
7496
|
+
private static vimeoRedirectLinkRegex;
|
|
7497
|
+
private static kalturaRegex;
|
|
7498
|
+
readonly source: VideoSource | null;
|
|
7499
|
+
readonly id: string | null;
|
|
7500
|
+
readonly isDirectVideoUrl: boolean;
|
|
7501
|
+
readonly videoProperties: any;
|
|
7502
|
+
readonly thumbnailUrl: string;
|
|
7503
|
+
constructor(url: string);
|
|
7504
|
+
isValid(features: FeatureSet): boolean;
|
|
7505
|
+
}
|
|
7506
|
+
export function getVideoSources(features: FeatureSet): any[];
|
|
7507
|
+
export function getAdditionalVideoSources(): import("@livetiles/shared/util/environment").VideoSource[];
|
|
7508
|
+
export function getAllVideoSources(features: FeatureSet): any[];
|
|
7509
|
+
}
|
|
7510
|
+
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
7511
|
+
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
7512
|
+
export function getAllVideosFromString(content: string): Generator<{
|
|
7513
|
+
url: string;
|
|
7514
|
+
type: AttachmentType;
|
|
7515
|
+
}, void, unknown>;
|
|
7516
|
+
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
7517
|
+
url: string;
|
|
7518
|
+
subscriptionIdentifier: string;
|
|
7519
|
+
type: AttachmentType.News | AttachmentType.Event | AttachmentType.Page | AttachmentType.Post;
|
|
7520
|
+
id: string;
|
|
7521
|
+
}, void, unknown>;
|
|
7346
7522
|
}
|
|
7347
7523
|
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
7348
7524
|
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
@@ -7354,65 +7530,6 @@ declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
|
7354
7530
|
getEventRecurrences: (eventId: string, from: string, to: string) => Promise<EventRecurrenceInfo[]>;
|
|
7355
7531
|
};
|
|
7356
7532
|
}
|
|
7357
|
-
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
7358
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7359
|
-
import { Observable } from 'rxjs';
|
|
7360
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7361
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7362
|
-
import { Api } from 'restful.js';
|
|
7363
|
-
import { Storage } from "libs/reach/util/context/src/index";
|
|
7364
|
-
export function fetchNewsItems(path: string, cacheKey: string, api: Api, storage: Storage, paginationToken?: string, filterDefinition?: NewsFilterDefinition, isArray?: boolean): Observable<PaginatedList<NewsItem>>;
|
|
7365
|
-
}
|
|
7366
|
-
declare module "libs/reach/feature/content/src/news/NewsStatisticsSummary" {
|
|
7367
|
-
export default interface NewsStatisticsSummary {
|
|
7368
|
-
readCount: number;
|
|
7369
|
-
bookmarkCount: number;
|
|
7370
|
-
commentCount: number;
|
|
7371
|
-
feedbackCounts: {
|
|
7372
|
-
[key: string]: number;
|
|
7373
|
-
};
|
|
7374
|
-
replyCount: number;
|
|
7375
|
-
}
|
|
7376
|
-
}
|
|
7377
|
-
declare module "libs/reach/feature/content/src/news/NewsApiService" {
|
|
7378
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7379
|
-
import { Observable } from 'rxjs';
|
|
7380
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7381
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7382
|
-
import { ItemStatistics } from "libs/reach/util/common/src/index";
|
|
7383
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7384
|
-
import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/index";
|
|
7385
|
-
import { Storage } from "libs/reach/util/context/src/index";
|
|
7386
|
-
export class NewsApiService {
|
|
7387
|
-
private factory;
|
|
7388
|
-
private storage;
|
|
7389
|
-
private static readonly bookmarksCacheKey;
|
|
7390
|
-
private static readonly newsItemsCacheKey;
|
|
7391
|
-
private static readonly newsCacheKey;
|
|
7392
|
-
private static readonly allNewsCacheKey;
|
|
7393
|
-
private static readonly myUnreadNewsCacheKey;
|
|
7394
|
-
private api;
|
|
7395
|
-
constructor(factory: ClientFactoryInstance, subscriptionId: string, storage: Storage);
|
|
7396
|
-
trackExternalItem: (itemId: string, itemType: ItemResourceTypes) => Promise<unknown>;
|
|
7397
|
-
getAllNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7398
|
-
getAllUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7399
|
-
getMyNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7400
|
-
getMyUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7401
|
-
getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
|
|
7402
|
-
private getNewsFromCache;
|
|
7403
|
-
get: (newsId: string) => Observable<NewsItem>;
|
|
7404
|
-
getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number) => string;
|
|
7405
|
-
getStatistics: (newsId: string) => Promise<ItemStatistics>;
|
|
7406
|
-
refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
|
|
7407
|
-
private static getUpdatedStatistics;
|
|
7408
|
-
private tryUpdateStatisticsInCache;
|
|
7409
|
-
getExternalItemRoute: (resourceType: ItemResourceTypes, itemId: string, accessToken: string) => string;
|
|
7410
|
-
}
|
|
7411
|
-
}
|
|
7412
|
-
declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
7413
|
-
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7414
|
-
export function useNewsApi(): NewsApiService;
|
|
7415
|
-
}
|
|
7416
7533
|
declare module "libs/reach/feature/content/src/pages/PageFilterDefinition" {
|
|
7417
7534
|
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7418
7535
|
import { PageType } from "libs/reach/util/common/src/index";
|
|
@@ -7472,43 +7589,6 @@ declare module "libs/reach/feature/content/src/posts/utils" {
|
|
|
7472
7589
|
export function getPostsBaseRoute(post: Post, user: CurrentUser, baseUrl?: string, includeGroupId?: boolean): string;
|
|
7473
7590
|
export function getPostsHashtagFilterRoute(post: Post, user: CurrentUser, hashtag: string): string;
|
|
7474
7591
|
}
|
|
7475
|
-
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7476
|
-
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7477
|
-
export default interface FeedbackSummary {
|
|
7478
|
-
records: FeedbackItem[];
|
|
7479
|
-
}
|
|
7480
|
-
export enum FeedbackItemType {
|
|
7481
|
-
comment = "comment",
|
|
7482
|
-
like = "like",
|
|
7483
|
-
confirm = "confirm",
|
|
7484
|
-
poll = "poll",
|
|
7485
|
-
eventRegistration = "eventRegistration"
|
|
7486
|
-
}
|
|
7487
|
-
export interface FeedbackItem {
|
|
7488
|
-
type: FeedbackItemType;
|
|
7489
|
-
timestamp: string;
|
|
7490
|
-
}
|
|
7491
|
-
export interface PollFeedbackItem extends FeedbackItem {
|
|
7492
|
-
type: FeedbackItemType.poll;
|
|
7493
|
-
answers: PollQuestionAnswer[];
|
|
7494
|
-
}
|
|
7495
|
-
}
|
|
7496
|
-
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
7497
|
-
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
7498
|
-
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
7499
|
-
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7500
|
-
export const feedbackCache: {
|
|
7501
|
-
[newsId: string]: Promise<FeedbackSummary>;
|
|
7502
|
-
};
|
|
7503
|
-
export function useFeedbackApi(): {
|
|
7504
|
-
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
7505
|
-
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7506
|
-
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7507
|
-
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
7508
|
-
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
7509
|
-
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7510
|
-
};
|
|
7511
|
-
}
|
|
7512
7592
|
declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
7513
7593
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7514
7594
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
@@ -7675,24 +7755,6 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
7675
7755
|
showAllKeywordsInCallout?: boolean;
|
|
7676
7756
|
}>;
|
|
7677
7757
|
}
|
|
7678
|
-
declare module "libs/reach/feature/content/src/news/NewsService" {
|
|
7679
|
-
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7680
|
-
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
7681
|
-
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
7682
|
-
export class NewsService {
|
|
7683
|
-
static getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7684
|
-
static getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7685
|
-
static getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
7686
|
-
static getContentLanguages(contents: {
|
|
7687
|
-
[lang: string]: ContentDefinition;
|
|
7688
|
-
}, languages: LanguageBase[], contentValidator?: (c: PublishableItemContent) => boolean): string[];
|
|
7689
|
-
static getLanguageForPublishableItem(item: PublishableItem, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7690
|
-
static getLanguageForContent(contents: {
|
|
7691
|
-
[lang: string]: ContentDefinition;
|
|
7692
|
-
}, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7693
|
-
static getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7694
|
-
}
|
|
7695
|
-
}
|
|
7696
7758
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7697
7759
|
import { FC, MouseEvent } from 'react';
|
|
7698
7760
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -7943,24 +8005,6 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7943
8005
|
isRegistered?: boolean;
|
|
7944
8006
|
}, never>;
|
|
7945
8007
|
}
|
|
7946
|
-
declare module "libs/reach/feature/content/src/feedback/PollTranslationContext" {
|
|
7947
|
-
import { FC } from 'react';
|
|
7948
|
-
import { PublishableItemContents } from "libs/reach/util/common/src/index";
|
|
7949
|
-
export interface TranslationItem {
|
|
7950
|
-
language: string;
|
|
7951
|
-
id: string;
|
|
7952
|
-
text: string;
|
|
7953
|
-
}
|
|
7954
|
-
export const PollTranslationContext: import("react").Context<{
|
|
7955
|
-
getTranslation: (id: string) => string;
|
|
7956
|
-
getAllTranslations: (id: string) => TranslationItem[];
|
|
7957
|
-
}>;
|
|
7958
|
-
export const PollTranslationContextProvider: FC<{
|
|
7959
|
-
contents?: PublishableItemContents;
|
|
7960
|
-
language: string;
|
|
7961
|
-
additionalTranslations?: TranslationItem[];
|
|
7962
|
-
}>;
|
|
7963
|
-
}
|
|
7964
8008
|
declare module "libs/reach/feature/content/src/events/eventUtils" {
|
|
7965
8009
|
import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
|
|
7966
8010
|
import { MessageDescriptor } from 'react-intl';
|
|
@@ -8091,11 +8135,6 @@ declare module "libs/reach/feature/content/src/feedback/LikeButton" {
|
|
|
8091
8135
|
className?: string;
|
|
8092
8136
|
}>;
|
|
8093
8137
|
}
|
|
8094
|
-
declare module "libs/reach/feature/content/src/feedback/utils" {
|
|
8095
|
-
import { FeedbackSettings, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8096
|
-
export function hasFeedbackType(feedbackSettings: FeedbackSettings, feedbackType: string): boolean;
|
|
8097
|
-
export function getCommentAndReplyCountTooltipResource(itemType: ItemResourceTypes, replyToComments: boolean): string;
|
|
8098
|
-
}
|
|
8099
8138
|
declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
8100
8139
|
import { ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8101
8140
|
import { FC } from 'react';
|
|
@@ -9872,6 +9911,7 @@ declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtons"
|
|
|
9872
9911
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
9873
9912
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
9874
9913
|
import { Feedback } from "libs/reach/util/common/src/index";
|
|
9914
|
+
import { ReactNode } from 'hoist-non-react-statics/node_modules/@types/react';
|
|
9875
9915
|
export const FeedbackButtonContext: import("react").Context<{
|
|
9876
9916
|
statistics: ItemStatistics;
|
|
9877
9917
|
item: PublishableItem;
|
|
@@ -9884,6 +9924,7 @@ declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtons"
|
|
|
9884
9924
|
item: PublishableItem;
|
|
9885
9925
|
hasFeedbackEnabled: (feedbackType: Feedback) => boolean;
|
|
9886
9926
|
language: string;
|
|
9927
|
+
warningMessage?: ReactNode;
|
|
9887
9928
|
className?: string;
|
|
9888
9929
|
}>;
|
|
9889
9930
|
}
|
|
@@ -9922,16 +9963,18 @@ declare module "libs/reach/feature/content/src/comments/PublishableItemThreadVie
|
|
|
9922
9963
|
}>;
|
|
9923
9964
|
}
|
|
9924
9965
|
declare module "libs/reach/feature/content/src/feedback/FeedbackSection" {
|
|
9925
|
-
import { FC } from 'react';
|
|
9966
|
+
import { FC, ReactNode } from 'react';
|
|
9926
9967
|
import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
9927
9968
|
export const FeedbackSection: FC<{
|
|
9928
9969
|
item: PublishableItem;
|
|
9970
|
+
buttons: ReactNode[];
|
|
9929
9971
|
language: string;
|
|
9930
9972
|
type: ItemResourceTypes;
|
|
9931
9973
|
feedbackSettings: FeedbackSettings;
|
|
9932
9974
|
hideComments?: boolean;
|
|
9933
9975
|
disableLoginForPublicUser?: boolean;
|
|
9934
9976
|
isReadOnly?: boolean;
|
|
9977
|
+
warningMessage?: ReactNode;
|
|
9935
9978
|
className?: string;
|
|
9936
9979
|
}>;
|
|
9937
9980
|
}
|
|
@@ -10135,17 +10178,6 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
10135
10178
|
isMobilePreview?: boolean;
|
|
10136
10179
|
}>;
|
|
10137
10180
|
}
|
|
10138
|
-
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
10139
|
-
import { FC, ReactNode } from 'react';
|
|
10140
|
-
export const GutterMarkerIcon: FC<{
|
|
10141
|
-
iconName: string;
|
|
10142
|
-
children: ReactNode;
|
|
10143
|
-
isActive: boolean;
|
|
10144
|
-
color: string;
|
|
10145
|
-
tooltipResourceKey?: string;
|
|
10146
|
-
className?: string;
|
|
10147
|
-
}>;
|
|
10148
|
-
}
|
|
10149
10181
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewTitle" {
|
|
10150
10182
|
import { FC } from 'react';
|
|
10151
10183
|
export const DetailViewTitle: FC;
|
|
@@ -10171,24 +10203,6 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
10171
10203
|
onKeywordClick?: (keyword: string) => unknown;
|
|
10172
10204
|
}>;
|
|
10173
10205
|
}
|
|
10174
|
-
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
10175
|
-
import { FC } from 'react';
|
|
10176
|
-
export const ConfirmationBox: FC<{
|
|
10177
|
-
disabled?: boolean;
|
|
10178
|
-
onChange?: (value: boolean) => void;
|
|
10179
|
-
checked: boolean;
|
|
10180
|
-
}>;
|
|
10181
|
-
}
|
|
10182
|
-
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
10183
|
-
import { FC } from 'react';
|
|
10184
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
10185
|
-
export const ConfirmationSection: FC<{
|
|
10186
|
-
item?: NewsItem;
|
|
10187
|
-
showDescription: boolean;
|
|
10188
|
-
readOnly?: boolean;
|
|
10189
|
-
className?: string;
|
|
10190
|
-
}>;
|
|
10191
|
-
}
|
|
10192
10206
|
declare module "libs/reach/feature/content/src/common/detail/news/controls/DetailViewConfirmations" {
|
|
10193
10207
|
import { FC } from 'react';
|
|
10194
10208
|
export const DetailViewConfirmations: FC;
|
|
@@ -11599,12 +11613,6 @@ declare module "libs/reach/feature/content/src/comments/index" {
|
|
|
11599
11613
|
export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
|
|
11600
11614
|
export * from "libs/reach/feature/content/src/comments/CommentInput";
|
|
11601
11615
|
}
|
|
11602
|
-
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
11603
|
-
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
11604
|
-
export * from "libs/reach/feature/content/src/feedback/GutterMakerIcon";
|
|
11605
|
-
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
11606
|
-
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
11607
|
-
}
|
|
11608
11616
|
declare module "libs/reach/feature/content/src/forms/KeywordDialog" {
|
|
11609
11617
|
import { FC, ReactNode } from 'react';
|
|
11610
11618
|
import { Keyword } from "libs/reach/util/common/src/index";
|