@livetiles/reach-plugin-types 0.5.0-preview.1151 → 0.5.0-preview.1153
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 +1037 -974
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6530,6 +6530,25 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
|
|
|
6530
6530
|
export { default as ProfileButton } from "libs/reach/ui/common/src/reach-2/buttons/ProfileButton";
|
|
6531
6531
|
export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
|
|
6532
6532
|
}
|
|
6533
|
+
declare module "libs/reach/ui/common/src/reach-2/carousel/Carousel" {
|
|
6534
|
+
import { FC } from 'react';
|
|
6535
|
+
export interface ICarouselImageProps {
|
|
6536
|
+
caption?: string;
|
|
6537
|
+
id: string;
|
|
6538
|
+
url: string;
|
|
6539
|
+
}
|
|
6540
|
+
interface ICarouselProps {
|
|
6541
|
+
className?: string;
|
|
6542
|
+
images: ICarouselImageProps[];
|
|
6543
|
+
selectedImageId: string;
|
|
6544
|
+
}
|
|
6545
|
+
const Carousel: FC<ICarouselProps>;
|
|
6546
|
+
export default Carousel;
|
|
6547
|
+
}
|
|
6548
|
+
declare module "libs/reach/ui/common/src/reach-2/carousel/index" {
|
|
6549
|
+
export { default as Carousel } from "libs/reach/ui/common/src/reach-2/carousel/Carousel";
|
|
6550
|
+
export type { ICarouselImageProps } from "libs/reach/ui/common/src/reach-2/carousel/Carousel";
|
|
6551
|
+
}
|
|
6533
6552
|
declare module "libs/reach/ui/common/src/reach-2/DateTimeDisplay" {
|
|
6534
6553
|
import { FC } from 'react';
|
|
6535
6554
|
interface Props {
|
|
@@ -6684,6 +6703,27 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
|
|
|
6684
6703
|
}
|
|
6685
6704
|
export const BaseDialog: import("react").ForwardRefExoticComponent<BaseDialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6686
6705
|
}
|
|
6706
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6707
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6708
|
+
import { FC } from 'react';
|
|
6709
|
+
export type BasePopoverAlignType = 'start' | 'center' | 'end';
|
|
6710
|
+
export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
|
|
6711
|
+
export interface BasePopoverProps {
|
|
6712
|
+
align?: BasePopoverAlignType;
|
|
6713
|
+
alignOffset?: number;
|
|
6714
|
+
anchor?: JSX.Element;
|
|
6715
|
+
className?: string;
|
|
6716
|
+
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6717
|
+
isOpen?: boolean;
|
|
6718
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
6719
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
6720
|
+
onOpenChange?: (open: boolean) => void;
|
|
6721
|
+
side?: BasePopoverSideType;
|
|
6722
|
+
sideOffset?: number;
|
|
6723
|
+
trigger?: JSX.Element;
|
|
6724
|
+
}
|
|
6725
|
+
export const BasePopover: FC<BasePopoverProps>;
|
|
6726
|
+
}
|
|
6687
6727
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
|
|
6688
6728
|
import { MouseEvent } from 'react';
|
|
6689
6729
|
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
@@ -6703,6 +6743,16 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
|
|
|
6703
6743
|
}
|
|
6704
6744
|
export const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6705
6745
|
}
|
|
6746
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
|
|
6747
|
+
import { FC } from 'react';
|
|
6748
|
+
import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
6749
|
+
export const ConfirmationDialog: FC<Omit<DialogProps, 'onSave' | 'disableSave' | 'saveButtonLabel'> & {
|
|
6750
|
+
onConfirm?: () => void;
|
|
6751
|
+
confirmButtonLabel?: string;
|
|
6752
|
+
isDestructive?: boolean;
|
|
6753
|
+
description?: string;
|
|
6754
|
+
}>;
|
|
6755
|
+
}
|
|
6706
6756
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
6707
6757
|
import { FC, SVGProps } from 'react';
|
|
6708
6758
|
import { AnimationBuilder } from '@ionic/core';
|
|
@@ -6717,10 +6767,17 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
|
6717
6767
|
};
|
|
6718
6768
|
export const MobileInlineModal: FC<MobileInlineModalProps>;
|
|
6719
6769
|
}
|
|
6720
|
-
declare module "libs/reach/ui/common/src/reach-2/surfaces/
|
|
6721
|
-
import { FC } from 'react';
|
|
6722
|
-
|
|
6723
|
-
|
|
6770
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren" {
|
|
6771
|
+
import { FC, ReactNode } from 'react';
|
|
6772
|
+
export interface ModalBottomSheetWithStackedChildrenProps {
|
|
6773
|
+
addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
|
|
6774
|
+
closeCurrentLayer: () => void;
|
|
6775
|
+
closeAllLayers: () => void;
|
|
6776
|
+
}
|
|
6777
|
+
export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
|
|
6778
|
+
export const ModalBottomSheetWithStackedChildren: FC<{
|
|
6779
|
+
className?: string;
|
|
6780
|
+
}>;
|
|
6724
6781
|
}
|
|
6725
6782
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet" {
|
|
6726
6783
|
import { ReactNode } from 'react';
|
|
@@ -6736,18 +6793,6 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet" {
|
|
|
6736
6793
|
}
|
|
6737
6794
|
export const ModalBottomSheet: import("react").ForwardRefExoticComponent<ModalBottomSheetProps & import("react").RefAttributes<HTMLIonModalElement>>;
|
|
6738
6795
|
}
|
|
6739
|
-
declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren" {
|
|
6740
|
-
import { FC, ReactNode } from 'react';
|
|
6741
|
-
export interface ModalBottomSheetWithStackedChildrenProps {
|
|
6742
|
-
addNewLayer: (children: (closeCurrentLayer: () => void) => ReactNode, onDismiss: (() => void) | undefined, initialBreakpoint: number) => void;
|
|
6743
|
-
closeCurrentLayer: () => void;
|
|
6744
|
-
closeAllLayers: () => void;
|
|
6745
|
-
}
|
|
6746
|
-
export const StackedChildrenContext: import("react").Context<ModalBottomSheetWithStackedChildrenProps>;
|
|
6747
|
-
export const ModalBottomSheetWithStackedChildren: FC<{
|
|
6748
|
-
className?: string;
|
|
6749
|
-
}>;
|
|
6750
|
-
}
|
|
6751
6796
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
|
|
6752
6797
|
import { FC } from 'react';
|
|
6753
6798
|
import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
@@ -6758,47 +6803,22 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
|
|
|
6758
6803
|
}
|
|
6759
6804
|
export const Modal: FC<ModalProps>;
|
|
6760
6805
|
}
|
|
6761
|
-
declare module "libs/reach/ui/common/src/reach-2/surfaces/
|
|
6762
|
-
import { FC } from 'react';
|
|
6763
|
-
import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
6764
|
-
export const ConfirmationDialog: FC<Omit<DialogProps, 'onSave' | 'disableSave' | 'saveButtonLabel'> & {
|
|
6765
|
-
onConfirm?: () => void;
|
|
6766
|
-
confirmButtonLabel?: string;
|
|
6767
|
-
isDestructive?: boolean;
|
|
6768
|
-
description?: string;
|
|
6769
|
-
}>;
|
|
6770
|
-
}
|
|
6771
|
-
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6772
|
-
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6806
|
+
declare module "libs/reach/ui/common/src/reach-2/surfaces/Panel" {
|
|
6773
6807
|
import { FC } from 'react';
|
|
6774
|
-
|
|
6775
|
-
export
|
|
6776
|
-
export interface BasePopoverProps {
|
|
6777
|
-
align?: BasePopoverAlignType;
|
|
6778
|
-
alignOffset?: number;
|
|
6779
|
-
anchor?: JSX.Element;
|
|
6780
|
-
className?: string;
|
|
6781
|
-
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6782
|
-
isOpen?: boolean;
|
|
6783
|
-
onCloseAutoFocus?: (event: Event) => void;
|
|
6784
|
-
onOpenAutoFocus?: (event: Event) => void;
|
|
6785
|
-
onOpenChange?: (open: boolean) => void;
|
|
6786
|
-
side?: BasePopoverSideType;
|
|
6787
|
-
sideOffset?: number;
|
|
6788
|
-
trigger?: JSX.Element;
|
|
6789
|
-
}
|
|
6790
|
-
export const BasePopover: FC<BasePopoverProps>;
|
|
6808
|
+
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6809
|
+
export const Panel: FC<BaseDialogProps>;
|
|
6791
6810
|
}
|
|
6792
6811
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
6812
|
+
export { DialogType } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6813
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6814
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/BasePopover";
|
|
6815
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog";
|
|
6793
6816
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
6794
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
|
|
6795
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren";
|
|
6796
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
6797
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/Modal";
|
|
6798
6817
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal";
|
|
6799
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/
|
|
6800
|
-
export * from "libs/reach/ui/common/src/reach-2/surfaces/
|
|
6801
|
-
export
|
|
6818
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/Modal";
|
|
6819
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
6820
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithStackedChildren";
|
|
6821
|
+
export * from "libs/reach/ui/common/src/reach-2/surfaces/Panel";
|
|
6802
6822
|
}
|
|
6803
6823
|
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6804
6824
|
import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
@@ -7010,6 +7030,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
7010
7030
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
7011
7031
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
7012
7032
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
7033
|
+
export * from "libs/reach/ui/common/src/reach-2/carousel/index";
|
|
7013
7034
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|
|
7014
7035
|
export * from "libs/reach/ui/common/src/reach-2/divider/Divider";
|
|
7015
7036
|
export * from "libs/reach/ui/common/src/reach-2/icons/index";
|
|
@@ -7047,188 +7068,152 @@ declare module "libs/reach/ui/common/src/index" {
|
|
|
7047
7068
|
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
7048
7069
|
export * from "libs/reach/ui/common/src/reach-2/index";
|
|
7049
7070
|
}
|
|
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;
|
|
7071
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7072
|
+
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7073
|
+
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7074
|
+
export interface KalturaProperties {
|
|
7075
|
+
sp: string;
|
|
7076
|
+
uiconfId: string;
|
|
7077
|
+
partnerId: string;
|
|
7078
|
+
entryId: string;
|
|
7065
7079
|
}
|
|
7066
|
-
export
|
|
7067
|
-
|
|
7080
|
+
export interface MicrosoftStreamProperties {
|
|
7081
|
+
isSharePoint: boolean;
|
|
7082
|
+
}
|
|
7083
|
+
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
7084
|
+
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7085
|
+
export class VideoUrlParser {
|
|
7086
|
+
private url;
|
|
7087
|
+
private additionalVideoSources?;
|
|
7088
|
+
private static ytRegex;
|
|
7089
|
+
private static vimeoRegex;
|
|
7090
|
+
private static microsoftStreamRegex;
|
|
7091
|
+
private static microsoftStreamSharepointRegex;
|
|
7092
|
+
private static vimeoDirectLinkRegex;
|
|
7093
|
+
private static vimeoRedirectLinkRegex;
|
|
7094
|
+
private static kalturaRegex;
|
|
7095
|
+
readonly source: VideoSource | null;
|
|
7096
|
+
readonly id: string | null;
|
|
7097
|
+
readonly isDirectVideoUrl: boolean;
|
|
7098
|
+
readonly videoProperties: TVideoProperties | null;
|
|
7099
|
+
readonly thumbnailUrl: string | null;
|
|
7100
|
+
constructor(url: string, additionalVideoSources?: VideoSourceEnvironment[]);
|
|
7101
|
+
hasValidGenericUrlVideoSourcePrefix(url: string): boolean;
|
|
7102
|
+
isValid(features: FeatureSet): boolean;
|
|
7103
|
+
isSharepointUrl(url: string): boolean;
|
|
7104
|
+
}
|
|
7105
|
+
export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7106
|
+
export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7068
7107
|
}
|
|
7069
|
-
declare module "libs/reach/feature/content/src/
|
|
7108
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoCustomThumbnailPicker" {
|
|
7070
7109
|
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;
|
|
7110
|
+
import { VideoInfo } from "libs/reach/feature/content/src/index";
|
|
7111
|
+
export const VideoCustomThumbnailPicker: FC<{
|
|
7112
|
+
videoInfo: VideoInfo;
|
|
7113
|
+
onCustomThumbnailAdded: (file: File | null) => void;
|
|
7114
|
+
onRemoveCustomThumbnail: () => void;
|
|
7115
|
+
customThumbnail?: File | null;
|
|
7082
7116
|
}>;
|
|
7083
7117
|
}
|
|
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;
|
|
7118
|
+
declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
|
|
7119
|
+
import { FC } from 'react';
|
|
7120
|
+
import { BannerInfo, VideoSource } from "libs/reach/util/common/src/index";
|
|
7121
|
+
export interface VideoInfo {
|
|
7122
|
+
id: string;
|
|
7123
|
+
source: VideoSource;
|
|
7124
|
+
url?: string;
|
|
7125
|
+
isDirectUrl?: boolean;
|
|
7101
7126
|
}
|
|
7102
|
-
export
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7127
|
+
export const InsertVideoDialog: FC<{
|
|
7128
|
+
titleResource: string;
|
|
7129
|
+
onCancel: () => void;
|
|
7130
|
+
onSave: (videoInfo: VideoInfo, customThumbnail?: File) => void;
|
|
7131
|
+
isOpen?: boolean;
|
|
7132
|
+
disableCustomThumbnail?: boolean;
|
|
7133
|
+
initialDataProps?: {
|
|
7134
|
+
bannerInfo: BannerInfo;
|
|
7135
|
+
itemId: string;
|
|
7136
|
+
token: string;
|
|
7137
|
+
subscriptionId: string;
|
|
7138
|
+
};
|
|
7139
|
+
}>;
|
|
7140
|
+
}
|
|
7141
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
|
|
7142
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7143
|
+
import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
|
|
7144
|
+
export const getMicrosoftStreamVideoUrl: (url: string) => string;
|
|
7145
|
+
export class VideoElementGenerator {
|
|
7146
|
+
private videoInfo;
|
|
7147
|
+
private iframeAreaLabel;
|
|
7148
|
+
private autoplay?;
|
|
7149
|
+
private width?;
|
|
7150
|
+
private videoProperties?;
|
|
7151
|
+
constructor(videoInfo: VideoInfo, iframeAreaLabel: string, autoplay?: boolean, width?: string, videoProperties?: TVideoProperties);
|
|
7152
|
+
private getYouTubeVideoElement;
|
|
7153
|
+
private getVimeoVideoElement;
|
|
7154
|
+
private getExternalVimeoVideoElement;
|
|
7155
|
+
private getMicrosoftStreamSharePointVideoElement;
|
|
7156
|
+
private getMicrosoftStreamVideoElement;
|
|
7157
|
+
private getKalturaVideoElement;
|
|
7158
|
+
private getGenericURLVideoElement;
|
|
7159
|
+
private getVideoElement;
|
|
7160
|
+
private getNotSupportedElement;
|
|
7161
|
+
static getVideoElement(videoInfo: VideoInfo, autoplay?: boolean, width?: string, iframeAreaLabel?: string, videoProperties?: TVideoProperties): HTMLElement;
|
|
7162
|
+
static getVideoType(videoInfo: VideoInfo): "" | "YouTube" | "Vimeo" | "Kaltura" | "Microsoft Stream" | "Generic";
|
|
7108
7163
|
}
|
|
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;
|
|
7176
|
-
}
|
|
7177
|
-
}
|
|
7178
|
-
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
7179
|
-
export interface CommentFilter {
|
|
7180
|
-
token: string;
|
|
7181
|
-
sortOrder: SortOrder;
|
|
7182
|
-
pageSize: number;
|
|
7183
|
-
}
|
|
7184
|
-
export enum SortOrder {
|
|
7185
|
-
Asc = 0,
|
|
7186
|
-
Desc = 1
|
|
7187
|
-
}
|
|
7188
|
-
}
|
|
7189
|
-
declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
7190
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7191
|
-
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
7192
|
-
import { Attachment } from "libs/reach/util/common/src/index";
|
|
7193
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7194
|
-
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
7195
|
-
export function useCommentApi(): {
|
|
7196
|
-
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
7197
|
-
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
7198
|
-
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
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
7164
|
}
|
|
7210
|
-
declare module "libs/reach/feature/content/src/forms/
|
|
7211
|
-
|
|
7165
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoView" {
|
|
7166
|
+
import { FC } from 'react';
|
|
7167
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7168
|
+
export const VideoView: FC<{
|
|
7169
|
+
videoInfo: VideoInfo;
|
|
7170
|
+
autoplay?: boolean;
|
|
7171
|
+
width?: string;
|
|
7172
|
+
parentId?: string;
|
|
7173
|
+
className?: string;
|
|
7174
|
+
}>;
|
|
7212
7175
|
}
|
|
7213
|
-
declare module "libs/reach/feature/content/src/
|
|
7176
|
+
declare module "libs/reach/feature/content/src/forms/videos/VideoWithThumbnailView" {
|
|
7214
7177
|
import { FC } from 'react';
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7178
|
+
import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
|
|
7179
|
+
export const VideoWithThumbnailView: FC<{
|
|
7180
|
+
videoInfo: VideoInfo;
|
|
7181
|
+
videoThumbnailUrl: string;
|
|
7182
|
+
parentId?: string;
|
|
7183
|
+
className?: string;
|
|
7219
7184
|
}>;
|
|
7220
7185
|
}
|
|
7221
|
-
declare module "libs/reach/feature/content/src/
|
|
7222
|
-
import { FC
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
tooltipResourceKey?: string;
|
|
7186
|
+
declare module "libs/reach/feature/content/src/posts/VideoList" {
|
|
7187
|
+
import { FC } from 'react';
|
|
7188
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
7189
|
+
export const VideoList: FC<{
|
|
7190
|
+
attachments: Attachment[];
|
|
7191
|
+
parentId?: string;
|
|
7192
|
+
onDeleteClick?: (video: Attachment) => void;
|
|
7229
7193
|
className?: string;
|
|
7230
7194
|
}>;
|
|
7231
7195
|
}
|
|
7196
|
+
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7197
|
+
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7198
|
+
export default interface FeedbackSummary {
|
|
7199
|
+
records: FeedbackItem[];
|
|
7200
|
+
}
|
|
7201
|
+
export enum FeedbackItemType {
|
|
7202
|
+
comment = "comment",
|
|
7203
|
+
like = "like",
|
|
7204
|
+
confirm = "confirm",
|
|
7205
|
+
poll = "poll",
|
|
7206
|
+
eventRegistration = "eventRegistration"
|
|
7207
|
+
}
|
|
7208
|
+
export interface FeedbackItem {
|
|
7209
|
+
type: FeedbackItemType;
|
|
7210
|
+
timestamp: string;
|
|
7211
|
+
}
|
|
7212
|
+
export interface PollFeedbackItem extends FeedbackItem {
|
|
7213
|
+
type: FeedbackItemType.poll;
|
|
7214
|
+
answers: PollQuestionAnswer[];
|
|
7215
|
+
}
|
|
7216
|
+
}
|
|
7232
7217
|
declare module "libs/reach/feature/content/src/filter/OwnerFilterDefinition" {
|
|
7233
7218
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7234
7219
|
export interface OwnerFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -7281,6 +7266,28 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
7281
7266
|
And = "AND"
|
|
7282
7267
|
}
|
|
7283
7268
|
}
|
|
7269
|
+
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
7270
|
+
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
7271
|
+
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
7272
|
+
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7273
|
+
export const feedbackCache: {
|
|
7274
|
+
[newsId: string]: Promise<FeedbackSummary>;
|
|
7275
|
+
};
|
|
7276
|
+
export function useFeedbackApi(): {
|
|
7277
|
+
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
7278
|
+
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7279
|
+
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7280
|
+
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
7281
|
+
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
7282
|
+
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7283
|
+
};
|
|
7284
|
+
}
|
|
7285
|
+
declare module "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition" {
|
|
7286
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7287
|
+
export interface AfterPublishingDateFilterDefinition extends IndexableFilterDefinition {
|
|
7288
|
+
afterDate?: string;
|
|
7289
|
+
}
|
|
7290
|
+
}
|
|
7284
7291
|
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
7285
7292
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7286
7293
|
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -7293,31 +7300,6 @@ declare module "libs/reach/feature/content/src/filter/ChannelsFilterDefinition"
|
|
|
7293
7300
|
channels?: FilterWithLogicalOperator;
|
|
7294
7301
|
}
|
|
7295
7302
|
}
|
|
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
7303
|
declare module "libs/reach/feature/content/src/filter/EventContactsFilterDefinition" {
|
|
7322
7304
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7323
7305
|
export interface EventContactsFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -7364,6 +7346,25 @@ declare module "libs/reach/feature/content/src/filter/FilteringProps" {
|
|
|
7364
7346
|
isFilterActive?: boolean;
|
|
7365
7347
|
}
|
|
7366
7348
|
}
|
|
7349
|
+
declare module "libs/reach/feature/content/src/filter/StateFilterDefinition" {
|
|
7350
|
+
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7351
|
+
import { WorkflowStatus } from "libs/reach/util/common/src/index";
|
|
7352
|
+
export interface StateFilterDefinition extends IndexableFilterDefinition {
|
|
7353
|
+
state?: WorkflowStatus;
|
|
7354
|
+
}
|
|
7355
|
+
}
|
|
7356
|
+
declare module "libs/reach/feature/content/src/filter/NewsFilterDefinition" {
|
|
7357
|
+
import { AuthorFilterDefinition } from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
7358
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7359
|
+
import { ChannelsFilterDefinition } from "libs/reach/feature/content/src/filter/ChannelsFilterDefinition";
|
|
7360
|
+
import { StateFilterDefinition } from "libs/reach/feature/content/src/filter/StateFilterDefinition";
|
|
7361
|
+
export interface NewsFilterDefinition extends PublishableItemFilterDefinition, AuthorFilterDefinition, ChannelsFilterDefinition, StateFilterDefinition {
|
|
7362
|
+
groupId?: string;
|
|
7363
|
+
bookmarksOnly?: boolean;
|
|
7364
|
+
unreadOnly?: boolean;
|
|
7365
|
+
includeExpired?: boolean;
|
|
7366
|
+
}
|
|
7367
|
+
}
|
|
7367
7368
|
declare module "libs/reach/feature/content/src/filter/ItemTypeFilterDefinition" {
|
|
7368
7369
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7369
7370
|
export enum ItemTypeFilterFlag {
|
|
@@ -7413,6 +7414,20 @@ declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
|
7413
7414
|
showFilterSidebar?: boolean;
|
|
7414
7415
|
}
|
|
7415
7416
|
}
|
|
7417
|
+
declare module "libs/reach/feature/content/src/filter/utils" {
|
|
7418
|
+
import { FilterWithLogicalOperator, LogicalOperator } from "libs/reach/feature/content/src/filter/index";
|
|
7419
|
+
export function getCommaSeparatedChannelsString(channels: FilterWithLogicalOperator): {
|
|
7420
|
+
channels?: undefined;
|
|
7421
|
+
} | {
|
|
7422
|
+
channels: string;
|
|
7423
|
+
};
|
|
7424
|
+
export function getCommaSeparatedKeywordsString(keywords: FilterWithLogicalOperator): {
|
|
7425
|
+
keywords?: undefined;
|
|
7426
|
+
} | {
|
|
7427
|
+
keywords: string;
|
|
7428
|
+
};
|
|
7429
|
+
export function convertToFilterWithLogicalOperator(value: string, operator?: LogicalOperator): FilterWithLogicalOperator;
|
|
7430
|
+
}
|
|
7416
7431
|
declare module "libs/reach/feature/content/src/filter/index" {
|
|
7417
7432
|
export * from "libs/reach/feature/content/src/filter/AfterPublishingDateFilterDefinition";
|
|
7418
7433
|
export * from "libs/reach/feature/content/src/filter/AuthorFilterDefinition";
|
|
@@ -7433,530 +7448,101 @@ declare module "libs/reach/feature/content/src/filter/index" {
|
|
|
7433
7448
|
export * from "libs/reach/feature/content/src/filter/useFilter";
|
|
7434
7449
|
export * from "libs/reach/feature/content/src/filter/utils";
|
|
7435
7450
|
}
|
|
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;
|
|
7508
|
-
}
|
|
7509
|
-
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7510
|
-
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7511
|
-
export default interface FeedbackSummary {
|
|
7512
|
-
records: FeedbackItem[];
|
|
7513
|
-
}
|
|
7514
|
-
export enum FeedbackItemType {
|
|
7515
|
-
comment = "comment",
|
|
7516
|
-
like = "like",
|
|
7517
|
-
confirm = "confirm",
|
|
7518
|
-
poll = "poll",
|
|
7519
|
-
eventRegistration = "eventRegistration"
|
|
7520
|
-
}
|
|
7521
|
-
export interface FeedbackItem {
|
|
7522
|
-
type: FeedbackItemType;
|
|
7523
|
-
timestamp: string;
|
|
7524
|
-
}
|
|
7525
|
-
export interface PollFeedbackItem extends FeedbackItem {
|
|
7526
|
-
type: FeedbackItemType.poll;
|
|
7527
|
-
answers: PollQuestionAnswer[];
|
|
7528
|
-
}
|
|
7529
|
-
}
|
|
7530
|
-
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
7531
|
-
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
7532
|
-
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
7533
|
-
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7534
|
-
export const feedbackCache: {
|
|
7535
|
-
[newsId: string]: Promise<FeedbackSummary>;
|
|
7536
|
-
};
|
|
7537
|
-
export function useFeedbackApi(): {
|
|
7538
|
-
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
7539
|
-
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7540
|
-
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7541
|
-
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
7542
|
-
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
7543
|
-
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7544
|
-
};
|
|
7545
|
-
}
|
|
7546
|
-
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
7547
|
-
import { FC } from 'react';
|
|
7548
|
-
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7549
|
-
export const ConfirmationSection: FC<{
|
|
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;
|
|
7579
|
-
}
|
|
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
|
-
}
|
|
7590
|
-
declare module "libs/reach/feature/content/src/feedback/utils" {
|
|
7591
|
-
import { CurrentUser, FeedbackSettings, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7592
|
-
export function hasFeedbackType(feedbackSettings: FeedbackSettings, feedbackType: string): boolean;
|
|
7593
|
-
export function getCommentAndReplyCountTooltipResource(itemType: ItemResourceTypes, replyToComments: boolean): string;
|
|
7594
|
-
export function hasDisabledCommentsNotificationSettings(user: CurrentUser): boolean;
|
|
7595
|
-
}
|
|
7596
|
-
declare module "libs/reach/feature/content/src/feedback/LikersList" {
|
|
7597
|
-
import { FC } from 'react';
|
|
7598
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7599
|
-
export const LikersList: FC<{
|
|
7600
|
-
itemId: string;
|
|
7601
|
-
itemType: ItemResourceTypes;
|
|
7602
|
-
likersCount: number;
|
|
7603
|
-
className?: string;
|
|
7604
|
-
coinSize?: number;
|
|
7605
|
-
}>;
|
|
7606
|
-
}
|
|
7607
|
-
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
7608
|
-
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
7609
|
-
export * from "libs/reach/feature/content/src/feedback/GutterMakerIcon";
|
|
7610
|
-
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
7611
|
-
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
7612
|
-
export * from "libs/reach/feature/content/src/feedback/useFeedbackApi";
|
|
7613
|
-
export * from "libs/reach/feature/content/src/feedback/LikersList";
|
|
7614
|
-
}
|
|
7615
|
-
declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
7616
|
-
import { FC } from 'react';
|
|
7617
|
-
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7618
|
-
export interface Props {
|
|
7619
|
-
type: ItemResourceTypes;
|
|
7620
|
-
itemId: string;
|
|
7621
|
-
recurrenceSeriesId?: string;
|
|
7622
|
-
className?: string;
|
|
7623
|
-
scope: ConversationScope;
|
|
7624
|
-
hideProfileUrl?: boolean;
|
|
7625
|
-
onToggleFollow?: (isFollowed: boolean) => void;
|
|
7626
|
-
isReadOnly?: boolean;
|
|
7627
|
-
}
|
|
7628
|
-
export const FollowComments: FC<Props>;
|
|
7629
|
-
export const FollowCommentsNotificationWarning: FC<{
|
|
7630
|
-
hideProfileUrl?: boolean;
|
|
7631
|
-
className?: string;
|
|
7632
|
-
}>;
|
|
7633
|
-
}
|
|
7634
|
-
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
7635
|
-
import { ReactNode } from 'react';
|
|
7636
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
7637
|
-
export interface UserSuggestion {
|
|
7638
|
-
id: string;
|
|
7639
|
-
upn: string;
|
|
7640
|
-
displayName: string;
|
|
7641
|
-
display: string;
|
|
7642
|
-
}
|
|
7643
|
-
export interface SuggestionArgs {
|
|
7644
|
-
searchText: string;
|
|
7645
|
-
updateSuggestions: (suggestions: UserSuggestion[]) => any;
|
|
7646
|
-
}
|
|
7647
|
-
export interface CommentInputProps {
|
|
7648
|
-
className?: string;
|
|
7649
|
-
content: string;
|
|
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;
|
|
7668
|
-
}
|
|
7669
|
-
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
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;
|
|
7677
|
-
}
|
|
7678
|
-
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7679
|
-
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
7680
|
-
import { VideoSource as VideoSourceEnvironment } from "libs/shared/util/environment/src/index";
|
|
7681
|
-
export interface KalturaProperties {
|
|
7682
|
-
sp: string;
|
|
7683
|
-
uiconfId: string;
|
|
7684
|
-
partnerId: string;
|
|
7685
|
-
entryId: string;
|
|
7686
|
-
}
|
|
7687
|
-
export interface MicrosoftStreamProperties {
|
|
7688
|
-
isSharePoint: boolean;
|
|
7689
|
-
}
|
|
7690
|
-
export type TVideoProperties = KalturaProperties | MicrosoftStreamProperties;
|
|
7691
|
-
export const showPlayerForGenericVideoSource: (url: string, additionalVideoSources?: VideoSourceEnvironment[]) => boolean;
|
|
7692
|
-
export class VideoUrlParser {
|
|
7693
|
-
private url;
|
|
7694
|
-
private additionalVideoSources?;
|
|
7695
|
-
private static ytRegex;
|
|
7696
|
-
private static vimeoRegex;
|
|
7697
|
-
private static microsoftStreamRegex;
|
|
7698
|
-
private static microsoftStreamSharepointRegex;
|
|
7699
|
-
private static vimeoDirectLinkRegex;
|
|
7700
|
-
private static vimeoRedirectLinkRegex;
|
|
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;
|
|
7711
|
-
}
|
|
7712
|
-
export function getVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7713
|
-
export function getAllVideoSources(features: FeatureSet, additionalVideoSources?: VideoSourceEnvironment[]): any[];
|
|
7714
|
-
}
|
|
7715
|
-
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
7716
|
-
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
7717
|
-
export function getAllVideosFromString(content: string): Generator<{
|
|
7718
|
-
url: string;
|
|
7719
|
-
type: AttachmentType.YouTubeVideo | AttachmentType.VimeoVideo | AttachmentType.MicrosoftStreamVideo;
|
|
7720
|
-
}, void, unknown>;
|
|
7721
|
-
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
7722
|
-
url: string;
|
|
7723
|
-
subscriptionIdentifier: string;
|
|
7724
|
-
type: AttachmentType.News | AttachmentType.Event | AttachmentType.Page | AttachmentType.Post;
|
|
7725
|
-
id: string;
|
|
7726
|
-
}, void, unknown>;
|
|
7727
|
-
}
|
|
7728
|
-
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
7729
|
-
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7730
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7731
|
-
import { EventItem, EventRecurrenceInfo } from "libs/reach/util/common/src/index";
|
|
7732
|
-
export function useEventsApi(): {
|
|
7733
|
-
getEvents: (filter?: EventFilterDefinition, sortFieldBuilder?: EventSortFieldsDefinitionBuilder) => Promise<PaginatedList<EventItem>>;
|
|
7734
|
-
getEvent: (id: string) => Promise<EventItem>;
|
|
7735
|
-
getEventRecurrences: (eventId: string, from: string, to: string) => Promise<EventRecurrenceInfo[]>;
|
|
7736
|
-
};
|
|
7737
|
-
}
|
|
7738
|
-
declare module "libs/reach/feature/content/src/pages/PageFilterDefinition" {
|
|
7739
|
-
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7740
|
-
import { PageType } from "libs/reach/util/common/src/index";
|
|
7741
|
-
export interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
7742
|
-
pageContextId?: string;
|
|
7743
|
-
restrictToPageContext?: boolean;
|
|
7744
|
-
rootPagesOnly?: boolean;
|
|
7745
|
-
parentId?: string;
|
|
7746
|
-
pageType?: PageType;
|
|
7747
|
-
}
|
|
7748
|
-
}
|
|
7749
|
-
declare module "libs/reach/feature/content/src/pages/usePagesApi" {
|
|
7750
|
-
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
7751
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7752
|
-
import { PageFilterDefinition } from "libs/reach/feature/content/src/pages/PageFilterDefinition";
|
|
7753
|
-
export function usePagesApi(): {
|
|
7754
|
-
loadPage: (id: string) => Promise<PageItem>;
|
|
7755
|
-
loadPageChildren: (id: string) => Promise<PageNavigationNode[]>;
|
|
7756
|
-
getRootPagesNavigation: () => Promise<PageNavigationNode[]>;
|
|
7757
|
-
getPublishedRootPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7758
|
-
searchPublishedPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7759
|
-
getSubpages: (parentId: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
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>>;
|
|
7763
|
-
};
|
|
7764
|
-
}
|
|
7765
7451
|
declare module "libs/reach/feature/content/src/posts/utils" {
|
|
7766
7452
|
import { Account, BaseItem, Comment, CurrentUser, ItemStatistics, ItemWithAttachments, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
7767
7453
|
import { FilterWithLogicalOperator } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7768
7454
|
export enum CoverType {
|
|
7769
|
-
Image = 0,
|
|
7770
|
-
Video = 1
|
|
7771
|
-
}
|
|
7772
|
-
export interface CoverInfo {
|
|
7773
|
-
cropData?: {
|
|
7774
|
-
leftPct: number;
|
|
7775
|
-
topPct: number;
|
|
7776
|
-
};
|
|
7777
|
-
id: string;
|
|
7778
|
-
type: CoverType;
|
|
7779
|
-
}
|
|
7780
|
-
export interface Post extends BaseItem, ItemWithAttachments {
|
|
7781
|
-
id: string;
|
|
7782
|
-
coverInfo?: CoverInfo;
|
|
7783
|
-
comments?: PaginatedList<Comment>;
|
|
7784
|
-
groupId: string;
|
|
7785
|
-
content: string;
|
|
7786
|
-
formattedContent?: string;
|
|
7787
|
-
permalink?: string;
|
|
7788
|
-
author: Account;
|
|
7789
|
-
publishingDate: string;
|
|
7790
|
-
modified?: string;
|
|
7791
|
-
statistics: ItemStatistics;
|
|
7792
|
-
keywords?: {
|
|
7793
|
-
[key: string]: Keyword[];
|
|
7794
|
-
};
|
|
7795
|
-
contentLanguageCode?: string;
|
|
7796
|
-
isLiked?: boolean;
|
|
7797
|
-
isUnread?: boolean;
|
|
7798
|
-
isDemoContent?: boolean;
|
|
7799
|
-
isFollowing?: boolean;
|
|
7800
|
-
}
|
|
7801
|
-
export interface PostFilterDefinition {
|
|
7802
|
-
token?: string;
|
|
7803
|
-
pageSize?: string;
|
|
7804
|
-
search?: string;
|
|
7805
|
-
keywords?: FilterWithLogicalOperator;
|
|
7806
|
-
}
|
|
7807
|
-
export function getPostGroups(user: CurrentUser): import("@livetiles/reach/util/common").UserGroup[];
|
|
7808
|
-
export function getPostsBaseRoute(post: Post, user: CurrentUser, baseUrl?: string, includeGroupId?: boolean): string;
|
|
7809
|
-
export function getPostsHashtagFilterRoute(post: Post, user: CurrentUser, hashtag: string): string;
|
|
7810
|
-
}
|
|
7811
|
-
declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
7812
|
-
import { Account, Attachment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
7813
|
-
import { CoverInfo, Post, PostFilterDefinition } from "libs/reach/feature/content/src/posts/utils";
|
|
7814
|
-
export function usePostsApi(): {
|
|
7815
|
-
createPost: (post: Partial<Post>) => Promise<Post>;
|
|
7816
|
-
togglePostLike: (postId: string, isLiked: boolean) => Promise<unknown>;
|
|
7817
|
-
getPosts: (filter?: Partial<PostFilterDefinition>, ...groupIds: string[]) => Promise<PaginatedList<Post>>;
|
|
7818
|
-
updatePost: (postId: string, content: string, attachments: Attachment[], keywords?: {
|
|
7819
|
-
[key: string]: Keyword[];
|
|
7820
|
-
}, coverInfo?: CoverInfo, formattedContent?: string) => Promise<Post>;
|
|
7821
|
-
deletePost: (postId: string) => Promise<unknown>;
|
|
7822
|
-
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
7823
|
-
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
7824
|
-
translatePost: (postId: string, language: string) => Promise<string>;
|
|
7825
|
-
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
7826
|
-
};
|
|
7827
|
-
}
|
|
7828
|
-
declare module "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator" {
|
|
7829
|
-
import { EmbeddedObject } from "libs/reach/util/common/src/index";
|
|
7830
|
-
export function useEmbeddedObjectValidator(): (embeddedObject: EmbeddedObject) => Promise<boolean>;
|
|
7831
|
-
}
|
|
7832
|
-
declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
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;
|
|
7852
|
-
};
|
|
7853
|
-
export const RichCommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & {
|
|
7854
|
-
attachments: Attachment[];
|
|
7855
|
-
deletedAttachmentUrls: string[];
|
|
7856
|
-
allowAttachments?: boolean;
|
|
7857
|
-
useLargeDropTarget?: boolean;
|
|
7858
|
-
disableDragAndDrop?: boolean;
|
|
7859
|
-
onAttachmentsChange: (attachments: Attachments) => void;
|
|
7860
|
-
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
7861
|
-
placeHolderStringResourceKey?: string;
|
|
7862
|
-
disableAddGif?: boolean;
|
|
7863
|
-
disableAddFiles?: boolean;
|
|
7864
|
-
parentId?: string;
|
|
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 {
|
|
7455
|
+
Image = 0,
|
|
7456
|
+
Video = 1
|
|
7457
|
+
}
|
|
7458
|
+
export interface CoverInfo {
|
|
7459
|
+
cropData?: {
|
|
7460
|
+
leftPct: number;
|
|
7461
|
+
topPct: number;
|
|
7462
|
+
};
|
|
7888
7463
|
id: string;
|
|
7889
|
-
|
|
7890
|
-
url?: string;
|
|
7891
|
-
isDirectUrl?: boolean;
|
|
7464
|
+
type: CoverType;
|
|
7892
7465
|
}
|
|
7893
|
-
export
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7466
|
+
export interface Post extends BaseItem, ItemWithAttachments {
|
|
7467
|
+
id: string;
|
|
7468
|
+
coverInfo?: CoverInfo;
|
|
7469
|
+
comments?: PaginatedList<Comment>;
|
|
7470
|
+
groupId: string;
|
|
7471
|
+
content: string;
|
|
7472
|
+
formattedContent?: string;
|
|
7473
|
+
permalink?: string;
|
|
7474
|
+
author: Account;
|
|
7475
|
+
publishingDate: string;
|
|
7476
|
+
modified?: string;
|
|
7477
|
+
statistics: ItemStatistics;
|
|
7478
|
+
keywords?: {
|
|
7479
|
+
[key: string]: Keyword[];
|
|
7904
7480
|
};
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
export
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
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";
|
|
7481
|
+
contentLanguageCode?: string;
|
|
7482
|
+
isLiked?: boolean;
|
|
7483
|
+
isUnread?: boolean;
|
|
7484
|
+
isDemoContent?: boolean;
|
|
7485
|
+
isFollowing?: boolean;
|
|
7486
|
+
}
|
|
7487
|
+
export interface PostFilterDefinition {
|
|
7488
|
+
token?: string;
|
|
7489
|
+
pageSize?: string;
|
|
7490
|
+
search?: string;
|
|
7491
|
+
keywords?: FilterWithLogicalOperator;
|
|
7929
7492
|
}
|
|
7493
|
+
export function getPostGroups(user: CurrentUser): import("@livetiles/reach/util/common").UserGroup[];
|
|
7494
|
+
export function getPostsBaseRoute(post: Post, user: CurrentUser, baseUrl?: string, includeGroupId?: boolean): string;
|
|
7495
|
+
export function getPostsHashtagFilterRoute(post: Post, user: CurrentUser, hashtag: string): string;
|
|
7930
7496
|
}
|
|
7931
|
-
declare module "libs/reach/feature/content/src/
|
|
7932
|
-
import {
|
|
7933
|
-
import {
|
|
7934
|
-
export
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7497
|
+
declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
7498
|
+
import { Account, Attachment, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
|
|
7499
|
+
import { CoverInfo, Post, PostFilterDefinition } from "libs/reach/feature/content/src/posts/utils";
|
|
7500
|
+
export function usePostsApi(): {
|
|
7501
|
+
createPost: (post: Partial<Post>) => Promise<Post>;
|
|
7502
|
+
togglePostLike: (postId: string, isLiked: boolean) => Promise<unknown>;
|
|
7503
|
+
getPosts: (filter?: Partial<PostFilterDefinition>, ...groupIds: string[]) => Promise<PaginatedList<Post>>;
|
|
7504
|
+
updatePost: (postId: string, content: string, attachments: Attachment[], keywords?: {
|
|
7505
|
+
[key: string]: Keyword[];
|
|
7506
|
+
}, coverInfo?: CoverInfo, formattedContent?: string) => Promise<Post>;
|
|
7507
|
+
deletePost: (postId: string) => Promise<unknown>;
|
|
7508
|
+
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
7509
|
+
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
7510
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
7511
|
+
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
7512
|
+
};
|
|
7941
7513
|
}
|
|
7942
|
-
declare module "libs/reach/feature/content/src/
|
|
7943
|
-
import {
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7514
|
+
declare module "libs/reach/feature/content/src/comments/CommentContentUtils" {
|
|
7515
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
7516
|
+
type Link = {
|
|
7517
|
+
url: string;
|
|
7518
|
+
label?: string;
|
|
7519
|
+
};
|
|
7520
|
+
export interface Match {
|
|
7521
|
+
fullMatch: string;
|
|
7522
|
+
isLineBreak: boolean;
|
|
7523
|
+
link: Link;
|
|
7524
|
+
mention: {
|
|
7525
|
+
name: string;
|
|
7526
|
+
id: string;
|
|
7527
|
+
};
|
|
7528
|
+
hashtag: string;
|
|
7529
|
+
}
|
|
7530
|
+
export function transformContent(content: string): (Match | string)[];
|
|
7531
|
+
export function constructUserMention(user: Account): string;
|
|
7951
7532
|
}
|
|
7952
|
-
declare module "libs/reach/feature/content/src/
|
|
7533
|
+
declare module "libs/reach/feature/content/src/comments/ContentDisplay" {
|
|
7953
7534
|
import { FC } from 'react';
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7535
|
+
export enum ContentDisplayHandler {
|
|
7536
|
+
Link = 0,
|
|
7537
|
+
Mention = 1,
|
|
7538
|
+
Hashtag = 2,
|
|
7539
|
+
LineBreak = 3
|
|
7540
|
+
}
|
|
7541
|
+
export const ContentDisplay: FC<{
|
|
7542
|
+
content: string;
|
|
7543
|
+
handlers: ContentDisplayHandler[];
|
|
7544
|
+
getHashtagRoute?: (hashtag: string) => string;
|
|
7545
|
+
children?: (content: string, index: number) => JSX.Element;
|
|
7960
7546
|
}>;
|
|
7961
7547
|
}
|
|
7962
7548
|
declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
@@ -7992,6 +7578,22 @@ declare module "libs/reach/feature/content/src/common/keywords/KeywordsInfo" {
|
|
|
7992
7578
|
showAllKeywordsInCallout?: boolean;
|
|
7993
7579
|
}>;
|
|
7994
7580
|
}
|
|
7581
|
+
declare module "libs/reach/feature/content/src/news/newsUtils" {
|
|
7582
|
+
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
7583
|
+
import { LanguageBase } from "libs/reach/util/common/src/index";
|
|
7584
|
+
import { ContentDefinition, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
7585
|
+
export function getNewsRouteWithRedirect(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7586
|
+
export function getNewsRoute(baseRoute: string, newsId: string, newsTitle: string, isExternalContent?: boolean): string;
|
|
7587
|
+
export function getItemContentLanguages(item: PublishableItem, languages: LanguageBase[]): string[];
|
|
7588
|
+
export function getContentLanguages(contents: {
|
|
7589
|
+
[lang: string]: ContentDefinition;
|
|
7590
|
+
}, languages: LanguageBase[], contentValidator?: (c: PublishableItemContent) => boolean): string[];
|
|
7591
|
+
export function getLanguageForPublishableItem(item: PublishableItem, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7592
|
+
export function getLanguageForContent(contents: {
|
|
7593
|
+
[lang: string]: ContentDefinition;
|
|
7594
|
+
}, user: CurrentUser, contentValidator?: (c: PublishableItemContent) => boolean): string;
|
|
7595
|
+
export function getUserPreferredLanguage(languages: string[], user: CurrentUser): string;
|
|
7596
|
+
}
|
|
7995
7597
|
declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
7996
7598
|
import { FC, MouseEvent } from 'react';
|
|
7997
7599
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -8009,29 +7611,125 @@ declare module "libs/reach/feature/content/src/common/cards/ClickableOverlay" {
|
|
|
8009
7611
|
locationState?: LocationState;
|
|
8010
7612
|
}>;
|
|
8011
7613
|
}
|
|
8012
|
-
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
8013
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8014
|
-
import { FC } from 'react';
|
|
8015
|
-
export const ClickableOverlayWithModalRouting: FC<{
|
|
8016
|
-
itemId: string;
|
|
8017
|
-
itemType: ItemResourceTypes;
|
|
8018
|
-
baseRoute: string;
|
|
8019
|
-
title?: string;
|
|
8020
|
-
isExternalContent?: boolean;
|
|
8021
|
-
targetUrl?: string;
|
|
8022
|
-
}>;
|
|
7614
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/ClickableOverlayWithModalRouting" {
|
|
7615
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7616
|
+
import { FC } from 'react';
|
|
7617
|
+
export const ClickableOverlayWithModalRouting: FC<{
|
|
7618
|
+
itemId: string;
|
|
7619
|
+
itemType: ItemResourceTypes;
|
|
7620
|
+
baseRoute: string;
|
|
7621
|
+
title?: string;
|
|
7622
|
+
isExternalContent?: boolean;
|
|
7623
|
+
targetUrl?: string;
|
|
7624
|
+
}>;
|
|
7625
|
+
}
|
|
7626
|
+
declare module "libs/reach/feature/content/src/common/item-tile/PostItemTile" {
|
|
7627
|
+
import { FC } from 'react';
|
|
7628
|
+
import { Post } from "libs/reach/feature/content/src/posts/utils";
|
|
7629
|
+
export const PostItemTile: FC<{
|
|
7630
|
+
post: Post;
|
|
7631
|
+
targetUrl?: string;
|
|
7632
|
+
readOnly?: boolean;
|
|
7633
|
+
backgroundColor?: string;
|
|
7634
|
+
enableModalRouting?: boolean;
|
|
7635
|
+
className?: string;
|
|
7636
|
+
}>;
|
|
7637
|
+
}
|
|
7638
|
+
declare module "libs/reach/feature/content/src/news/fetchNewsItems" {
|
|
7639
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7640
|
+
import { Observable } from 'rxjs';
|
|
7641
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7642
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7643
|
+
import { Api } from 'restful.js';
|
|
7644
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7645
|
+
export function fetchNewsItems(path: string, cacheKey: string, api: Api, storage: Storage, paginationToken?: string, filterDefinition?: NewsFilterDefinition, isArray?: boolean): Observable<PaginatedList<NewsItem>>;
|
|
7646
|
+
}
|
|
7647
|
+
declare module "libs/reach/feature/content/src/news/NewsStatisticsSummary" {
|
|
7648
|
+
export default interface NewsStatisticsSummary {
|
|
7649
|
+
readCount: number;
|
|
7650
|
+
bookmarkCount: number;
|
|
7651
|
+
commentCount: number;
|
|
7652
|
+
feedbackCounts: {
|
|
7653
|
+
[key: string]: number;
|
|
7654
|
+
};
|
|
7655
|
+
replyCount: number;
|
|
7656
|
+
}
|
|
7657
|
+
}
|
|
7658
|
+
declare module "libs/reach/feature/content/src/news/NewsApiService" {
|
|
7659
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
7660
|
+
import { Observable } from 'rxjs';
|
|
7661
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7662
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
7663
|
+
import { ItemStatistics } from "libs/reach/util/common/src/index";
|
|
7664
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
7665
|
+
import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/index";
|
|
7666
|
+
import { Storage } from "libs/reach/util/context/src/index";
|
|
7667
|
+
export class NewsApiService {
|
|
7668
|
+
private factory;
|
|
7669
|
+
private storage;
|
|
7670
|
+
private static readonly bookmarksCacheKey;
|
|
7671
|
+
private static readonly newsItemsCacheKey;
|
|
7672
|
+
private static readonly newsCacheKey;
|
|
7673
|
+
private static readonly allNewsCacheKey;
|
|
7674
|
+
private static readonly myUnreadNewsCacheKey;
|
|
7675
|
+
private api;
|
|
7676
|
+
constructor(factory: ClientFactoryInstance, subscriptionId: string, storage: Storage);
|
|
7677
|
+
trackExternalItem: (itemId: string, itemType: ItemResourceTypes) => Promise<unknown>;
|
|
7678
|
+
getAllNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7679
|
+
getAllUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7680
|
+
getMyNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7681
|
+
getMyUnreadNews: (filterDefinition?: NewsFilterDefinition, paginationToken?: string) => Observable<PaginatedList<NewsItem>>;
|
|
7682
|
+
getBookmarks: (filterDefinition?: NewsFilterDefinition) => Observable<PaginatedList<NewsItem>>;
|
|
7683
|
+
private getNewsFromCache;
|
|
7684
|
+
get: (newsId: string) => Observable<NewsItem>;
|
|
7685
|
+
getImageUrlWithToken: (token: string, itemId: string, subscriptionId: string, resourceType: ItemResourceTypes, imageIdentifier: string, width: number | 'default', height?: number, shouldCropImage?: boolean) => string;
|
|
7686
|
+
getStatistics: (newsId: string) => Promise<ItemStatistics>;
|
|
7687
|
+
refreshStatistics: (itemId: string, delta: Partial<ItemStatistics>) => Promise<void>;
|
|
7688
|
+
private static getUpdatedStatistics;
|
|
7689
|
+
private tryUpdateStatisticsInCache;
|
|
7690
|
+
getExternalItemRoute: (resourceType: ItemResourceTypes, itemId: string, accessToken: string) => string;
|
|
7691
|
+
}
|
|
7692
|
+
}
|
|
7693
|
+
declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
7694
|
+
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7695
|
+
export function useNewsApi(): NewsApiService;
|
|
7696
|
+
}
|
|
7697
|
+
declare module "libs/reach/feature/content/src/pages/PageFilterDefinition" {
|
|
7698
|
+
import { PublishableItemFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7699
|
+
import { PageType } from "libs/reach/util/common/src/index";
|
|
7700
|
+
export interface PageFilterDefinition extends PublishableItemFilterDefinition {
|
|
7701
|
+
pageContextId?: string;
|
|
7702
|
+
restrictToPageContext?: boolean;
|
|
7703
|
+
rootPagesOnly?: boolean;
|
|
7704
|
+
parentId?: string;
|
|
7705
|
+
pageType?: PageType;
|
|
7706
|
+
}
|
|
7707
|
+
}
|
|
7708
|
+
declare module "libs/reach/feature/content/src/pages/usePagesApi" {
|
|
7709
|
+
import { PageItem, PageNavigationNode } from "libs/reach/util/common/src/index";
|
|
7710
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7711
|
+
import { PageFilterDefinition } from "libs/reach/feature/content/src/pages/PageFilterDefinition";
|
|
7712
|
+
export function usePagesApi(): {
|
|
7713
|
+
loadPage: (id: string) => Promise<PageItem>;
|
|
7714
|
+
loadPageChildren: (id: string) => Promise<PageNavigationNode[]>;
|
|
7715
|
+
getRootPagesNavigation: () => Promise<PageNavigationNode[]>;
|
|
7716
|
+
getPublishedRootPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7717
|
+
searchPublishedPages: (filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7718
|
+
getSubpages: (parentId: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7719
|
+
searchPages: (basePath: string, filter?: Partial<PageFilterDefinition>) => Promise<PaginatedList<PageItem>>;
|
|
7720
|
+
getDocumentFileUrl: (basePath: string, subscriptionId: string, pageId: string, fileId: string, language: string, token: string) => string;
|
|
7721
|
+
searchToc: (basePath: string, searchValue: string) => Promise<PaginatedList<PageItem>>;
|
|
7722
|
+
};
|
|
8023
7723
|
}
|
|
8024
|
-
declare module "libs/reach/feature/content/src/
|
|
8025
|
-
import {
|
|
8026
|
-
import {
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
className?: string;
|
|
8034
|
-
}>;
|
|
7724
|
+
declare module "libs/reach/feature/content/src/events/useEventsApi" {
|
|
7725
|
+
import { EventFilterDefinition, EventSortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/EventFilterDefinition";
|
|
7726
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
7727
|
+
import { EventItem, EventRecurrenceInfo } from "libs/reach/util/common/src/index";
|
|
7728
|
+
export function useEventsApi(): {
|
|
7729
|
+
getEvents: (filter?: EventFilterDefinition, sortFieldBuilder?: EventSortFieldsDefinitionBuilder) => Promise<PaginatedList<EventItem>>;
|
|
7730
|
+
getEvent: (id: string) => Promise<EventItem>;
|
|
7731
|
+
getEventRecurrences: (eventId: string, from: string, to: string) => Promise<EventRecurrenceInfo[]>;
|
|
7732
|
+
};
|
|
8035
7733
|
}
|
|
8036
7734
|
declare module "libs/reach/feature/content/src/events/EventLocationLink" {
|
|
8037
7735
|
import { FC } from 'react';
|
|
@@ -8119,6 +7817,24 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8119
7817
|
className?: string;
|
|
8120
7818
|
}>;
|
|
8121
7819
|
}
|
|
7820
|
+
declare module "libs/reach/feature/content/src/feedback/PollTranslationContext" {
|
|
7821
|
+
import { FC } from 'react';
|
|
7822
|
+
import { PublishableItemContents } from "libs/reach/util/common/src/index";
|
|
7823
|
+
export interface TranslationItem {
|
|
7824
|
+
language: string;
|
|
7825
|
+
id: string;
|
|
7826
|
+
text: string;
|
|
7827
|
+
}
|
|
7828
|
+
export const PollTranslationContext: import("react").Context<{
|
|
7829
|
+
getTranslation: (id: string) => string;
|
|
7830
|
+
getAllTranslations: (id: string) => TranslationItem[];
|
|
7831
|
+
}>;
|
|
7832
|
+
export const PollTranslationContextProvider: FC<{
|
|
7833
|
+
contents?: PublishableItemContents;
|
|
7834
|
+
language: string;
|
|
7835
|
+
additionalTranslations?: TranslationItem[];
|
|
7836
|
+
}>;
|
|
7837
|
+
}
|
|
8122
7838
|
declare module "libs/reach/feature/content/src/events/eventUtils" {
|
|
8123
7839
|
import { MessageDescriptor } from 'react-intl';
|
|
8124
7840
|
import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
|
|
@@ -8129,6 +7845,100 @@ declare module "libs/reach/feature/content/src/events/eventUtils" {
|
|
|
8129
7845
|
translations?: TranslationItem[];
|
|
8130
7846
|
};
|
|
8131
7847
|
}
|
|
7848
|
+
declare module "libs/reach/feature/content/src/common/AppTriggerActions" {
|
|
7849
|
+
import { AppTriggerAction, EventResponse, ForbiddenErrorTriggerAction } from "libs/reach/util/common/src/index";
|
|
7850
|
+
export class EventOnBehalfOfResponseTriggerAction implements AppTriggerAction {
|
|
7851
|
+
static type: string;
|
|
7852
|
+
type: string;
|
|
7853
|
+
itemId: string;
|
|
7854
|
+
response: EventResponse;
|
|
7855
|
+
locationId: string;
|
|
7856
|
+
onBehalfOfUpn: string;
|
|
7857
|
+
static create(itemId: string, response: EventResponse, locationId: string, onBehalfOfUpn?: string): EventOnBehalfOfResponseTriggerAction;
|
|
7858
|
+
}
|
|
7859
|
+
export class EventResponseTriggerAction implements AppTriggerAction {
|
|
7860
|
+
static type: string;
|
|
7861
|
+
type: string;
|
|
7862
|
+
itemId: string;
|
|
7863
|
+
response: EventResponse;
|
|
7864
|
+
static create(itemId: string, response: EventResponse): EventResponseTriggerAction;
|
|
7865
|
+
}
|
|
7866
|
+
export class RegisterFullSeriesTriggerAction implements AppTriggerAction {
|
|
7867
|
+
static type: string;
|
|
7868
|
+
type: string;
|
|
7869
|
+
recurrenceSeriesId: string;
|
|
7870
|
+
response: EventResponse;
|
|
7871
|
+
static create(recurrenceSeriesId: string, response: EventResponse): RegisterFullSeriesTriggerAction;
|
|
7872
|
+
}
|
|
7873
|
+
export class FollowCommentsTriggerAction implements AppTriggerAction {
|
|
7874
|
+
static type: string;
|
|
7875
|
+
type: string;
|
|
7876
|
+
followState: boolean;
|
|
7877
|
+
itemId: string;
|
|
7878
|
+
static create(itemId: string, followState: boolean): FollowCommentsTriggerAction;
|
|
7879
|
+
}
|
|
7880
|
+
export class AutoFollowPostsTriggerAction implements AppTriggerAction {
|
|
7881
|
+
static type: string;
|
|
7882
|
+
type: string;
|
|
7883
|
+
followByDefault: boolean;
|
|
7884
|
+
static create(followState: boolean): AutoFollowPostsTriggerAction;
|
|
7885
|
+
}
|
|
7886
|
+
export class AutoLikeItemTriggerAction implements AppTriggerAction {
|
|
7887
|
+
static type: string;
|
|
7888
|
+
type: string;
|
|
7889
|
+
recurrenceSeriesId: string;
|
|
7890
|
+
isLiked: boolean;
|
|
7891
|
+
likeCount: number;
|
|
7892
|
+
static create(recurrenceSeriesId: string, isLiked: boolean, likeCount: number): AutoLikeItemTriggerAction;
|
|
7893
|
+
}
|
|
7894
|
+
export class AutoFollowItemTriggerAction implements AppTriggerAction {
|
|
7895
|
+
static type: string;
|
|
7896
|
+
type: string;
|
|
7897
|
+
recurrenceSeriesId: string;
|
|
7898
|
+
isFollowed: boolean;
|
|
7899
|
+
static create(recurrenceSeriesId: string, isFollowed: boolean): AutoFollowItemTriggerAction;
|
|
7900
|
+
}
|
|
7901
|
+
export class DeletedItemsTriggerAction implements AppTriggerAction {
|
|
7902
|
+
static type: string;
|
|
7903
|
+
type: string;
|
|
7904
|
+
itemIds: string[];
|
|
7905
|
+
static create(itemIds: string[]): DeletedItemsTriggerAction;
|
|
7906
|
+
}
|
|
7907
|
+
export class PromptPublicUserLoginAction implements AppTriggerAction {
|
|
7908
|
+
type: string;
|
|
7909
|
+
static create(): ForbiddenErrorTriggerAction;
|
|
7910
|
+
}
|
|
7911
|
+
export class FeedMarkAllAsReadAction implements AppTriggerAction {
|
|
7912
|
+
static type: string;
|
|
7913
|
+
type: string;
|
|
7914
|
+
static create(): FeedMarkAllAsReadAction;
|
|
7915
|
+
}
|
|
7916
|
+
export class StreamMarkAllAsReadAction implements AppTriggerAction {
|
|
7917
|
+
static type: string;
|
|
7918
|
+
type: string;
|
|
7919
|
+
static create(): StreamMarkAllAsReadAction;
|
|
7920
|
+
}
|
|
7921
|
+
export class RefetchItemAction implements AppTriggerAction {
|
|
7922
|
+
static type: string;
|
|
7923
|
+
type: string;
|
|
7924
|
+
itemId: string;
|
|
7925
|
+
static create(itemId: string): RefetchItemAction;
|
|
7926
|
+
}
|
|
7927
|
+
export class RefetchStreamItemAction implements AppTriggerAction {
|
|
7928
|
+
static type: string;
|
|
7929
|
+
type: string;
|
|
7930
|
+
itemId: string;
|
|
7931
|
+
static create(itemId: string): RefetchStreamItemAction;
|
|
7932
|
+
}
|
|
7933
|
+
export class PagesRecycleBinCleanUpAction implements AppTriggerAction {
|
|
7934
|
+
static type: string;
|
|
7935
|
+
type: string;
|
|
7936
|
+
pageId: string;
|
|
7937
|
+
parentId: string;
|
|
7938
|
+
affectedGroupIds: string[];
|
|
7939
|
+
static create(pageId: string, parentId: string, affectedGroupIds: string[]): PagesRecycleBinCleanUpAction;
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
8132
7942
|
declare module "libs/reach/feature/content/src/common/detail/events/eventUtils" {
|
|
8133
7943
|
import { FeedbackItem, FeedbackItemType } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
8134
7944
|
import { EventItem, EventResponse } from "libs/reach/util/common/src/index";
|
|
@@ -8267,6 +8077,17 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
8267
8077
|
onRegistrationRedirect?: (url: string) => void;
|
|
8268
8078
|
}>;
|
|
8269
8079
|
}
|
|
8080
|
+
declare module "libs/reach/feature/content/src/feedback/LikersList" {
|
|
8081
|
+
import { FC } from 'react';
|
|
8082
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8083
|
+
export const LikersList: FC<{
|
|
8084
|
+
itemId: string;
|
|
8085
|
+
itemType: ItemResourceTypes;
|
|
8086
|
+
likersCount: number;
|
|
8087
|
+
className?: string;
|
|
8088
|
+
coinSize?: number;
|
|
8089
|
+
}>;
|
|
8090
|
+
}
|
|
8270
8091
|
declare module "libs/reach/feature/content/src/feedback/LongPressLikeButton" {
|
|
8271
8092
|
import { FC } from 'react';
|
|
8272
8093
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -8301,6 +8122,12 @@ declare module "libs/reach/feature/content/src/feedback/LikeButton" {
|
|
|
8301
8122
|
className?: string;
|
|
8302
8123
|
}>;
|
|
8303
8124
|
}
|
|
8125
|
+
declare module "libs/reach/feature/content/src/feedback/utils" {
|
|
8126
|
+
import { CurrentUser, FeedbackSettings, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8127
|
+
export function hasFeedbackType(feedbackSettings: FeedbackSettings, feedbackType: string): boolean;
|
|
8128
|
+
export function getCommentAndReplyCountTooltipResource(itemType: ItemResourceTypes, replyToComments: boolean): string;
|
|
8129
|
+
export function hasDisabledCommentsNotificationSettings(user: CurrentUser): boolean;
|
|
8130
|
+
}
|
|
8304
8131
|
declare module "libs/reach/feature/content/src/common/cards/CardLikeButton" {
|
|
8305
8132
|
import { ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
|
|
8306
8133
|
import { FC } from 'react';
|
|
@@ -8321,24 +8148,115 @@ declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo"
|
|
|
8321
8148
|
className?: string;
|
|
8322
8149
|
}>;
|
|
8323
8150
|
}
|
|
8324
|
-
declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink" {
|
|
8325
|
-
import { FC, ReactNode } from 'react';
|
|
8326
|
-
export const EventRecurrenceSeriesInfoNavLink: FC<{
|
|
8327
|
-
recurrenceSeriesId: string;
|
|
8328
|
-
title: string;
|
|
8329
|
-
children: ReactNode;
|
|
8330
|
-
className?: string;
|
|
8331
|
-
}>;
|
|
8151
|
+
declare module "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink" {
|
|
8152
|
+
import { FC, ReactNode } from 'react';
|
|
8153
|
+
export const EventRecurrenceSeriesInfoNavLink: FC<{
|
|
8154
|
+
recurrenceSeriesId: string;
|
|
8155
|
+
title: string;
|
|
8156
|
+
children: ReactNode;
|
|
8157
|
+
className?: string;
|
|
8158
|
+
}>;
|
|
8159
|
+
}
|
|
8160
|
+
declare module "libs/reach/feature/content/src/common/modal-routing/LinkWithModalRouting" {
|
|
8161
|
+
import { FC } from 'react';
|
|
8162
|
+
export const LinkWithModalRouting: FC<{
|
|
8163
|
+
url: string;
|
|
8164
|
+
itemId: string;
|
|
8165
|
+
hash?: string;
|
|
8166
|
+
onClick?: (e: React.MouseEvent) => unknown;
|
|
8167
|
+
ariaHidden?: boolean;
|
|
8168
|
+
ariaLabel?: string;
|
|
8169
|
+
className?: string;
|
|
8170
|
+
}>;
|
|
8171
|
+
}
|
|
8172
|
+
declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
8173
|
+
export interface CommentFilter {
|
|
8174
|
+
token: string;
|
|
8175
|
+
sortOrder: SortOrder;
|
|
8176
|
+
pageSize: number;
|
|
8177
|
+
}
|
|
8178
|
+
export enum SortOrder {
|
|
8179
|
+
Asc = 0,
|
|
8180
|
+
Desc = 1
|
|
8181
|
+
}
|
|
8182
|
+
}
|
|
8183
|
+
declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
8184
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8185
|
+
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
8186
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
8187
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
8188
|
+
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
8189
|
+
export function useCommentApi(): {
|
|
8190
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
8191
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
8192
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
8193
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
8194
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
8195
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
8196
|
+
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
8197
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
8198
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
8199
|
+
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
8200
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes, formattedContent?: string) => Promise<Comment>;
|
|
8201
|
+
onCommentCreated$: import("rxjs").Observable<string>;
|
|
8202
|
+
};
|
|
8203
|
+
}
|
|
8204
|
+
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
8205
|
+
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
8206
|
+
}
|
|
8207
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
8208
|
+
import { FC } from 'react';
|
|
8209
|
+
export const ConfirmationBox: FC<{
|
|
8210
|
+
disabled?: boolean;
|
|
8211
|
+
onChange?: (value: boolean) => void;
|
|
8212
|
+
checked: boolean;
|
|
8213
|
+
}>;
|
|
8214
|
+
}
|
|
8215
|
+
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
8216
|
+
import { FC, ReactNode } from 'react';
|
|
8217
|
+
export const GutterMarkerIcon: FC<{
|
|
8218
|
+
iconName: string;
|
|
8219
|
+
children: ReactNode;
|
|
8220
|
+
isActive: boolean;
|
|
8221
|
+
color: string;
|
|
8222
|
+
tooltipResourceKey?: string;
|
|
8223
|
+
className?: string;
|
|
8224
|
+
}>;
|
|
8225
|
+
}
|
|
8226
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
8227
|
+
import { FC } from 'react';
|
|
8228
|
+
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
8229
|
+
export const ConfirmationSection: FC<{
|
|
8230
|
+
item?: NewsItem;
|
|
8231
|
+
showDescription: boolean;
|
|
8232
|
+
readOnly?: boolean;
|
|
8233
|
+
className?: string;
|
|
8234
|
+
}>;
|
|
8235
|
+
}
|
|
8236
|
+
declare module "libs/reach/feature/content/src/feedback/index" {
|
|
8237
|
+
export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
|
|
8238
|
+
export * from "libs/reach/feature/content/src/feedback/GutterMakerIcon";
|
|
8239
|
+
export * from "libs/reach/feature/content/src/feedback/PollTranslationContext";
|
|
8240
|
+
export * from "libs/reach/feature/content/src/feedback/utils";
|
|
8241
|
+
export * from "libs/reach/feature/content/src/feedback/useFeedbackApi";
|
|
8242
|
+
export * from "libs/reach/feature/content/src/feedback/LikersList";
|
|
8332
8243
|
}
|
|
8333
|
-
declare module "libs/reach/feature/content/src/
|
|
8244
|
+
declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
8334
8245
|
import { FC } from 'react';
|
|
8335
|
-
|
|
8336
|
-
|
|
8246
|
+
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8247
|
+
export interface Props {
|
|
8248
|
+
type: ItemResourceTypes;
|
|
8337
8249
|
itemId: string;
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8250
|
+
recurrenceSeriesId?: string;
|
|
8251
|
+
className?: string;
|
|
8252
|
+
scope: ConversationScope;
|
|
8253
|
+
hideProfileUrl?: boolean;
|
|
8254
|
+
onToggleFollow?: (isFollowed: boolean) => void;
|
|
8255
|
+
isReadOnly?: boolean;
|
|
8256
|
+
}
|
|
8257
|
+
export const FollowComments: FC<Props>;
|
|
8258
|
+
export const FollowCommentsNotificationWarning: FC<{
|
|
8259
|
+
hideProfileUrl?: boolean;
|
|
8342
8260
|
className?: string;
|
|
8343
8261
|
}>;
|
|
8344
8262
|
}
|
|
@@ -8877,6 +8795,109 @@ declare module "libs/reach/feature/content/src/comments/AttachmentList" {
|
|
|
8877
8795
|
}
|
|
8878
8796
|
export const AttachmentList: FC<Props>;
|
|
8879
8797
|
}
|
|
8798
|
+
declare module "libs/reach/feature/content/src/comments/CommentInput" {
|
|
8799
|
+
import { ReactNode } from 'react';
|
|
8800
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
8801
|
+
export interface UserSuggestion {
|
|
8802
|
+
id: string;
|
|
8803
|
+
upn: string;
|
|
8804
|
+
displayName: string;
|
|
8805
|
+
display: string;
|
|
8806
|
+
}
|
|
8807
|
+
export interface SuggestionArgs {
|
|
8808
|
+
searchText: string;
|
|
8809
|
+
updateSuggestions: (suggestions: UserSuggestion[]) => any;
|
|
8810
|
+
}
|
|
8811
|
+
export interface CommentInputProps {
|
|
8812
|
+
className?: string;
|
|
8813
|
+
content: string;
|
|
8814
|
+
disabled?: boolean;
|
|
8815
|
+
autoFocus?: boolean;
|
|
8816
|
+
onEnter?: () => void;
|
|
8817
|
+
onCtrlEnter?: () => unknown;
|
|
8818
|
+
onChange?: (value: string) => void;
|
|
8819
|
+
onFocus?: () => void;
|
|
8820
|
+
additionalInputControl?: ReactNode;
|
|
8821
|
+
buttons?: {
|
|
8822
|
+
leftSide?: ReactNode;
|
|
8823
|
+
rightSide?: ReactNode;
|
|
8824
|
+
};
|
|
8825
|
+
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
8826
|
+
placeHolderStringResourceKey?: string;
|
|
8827
|
+
placeHolderStringResourceValues?: {
|
|
8828
|
+
[key: string]: string | number | boolean | Date;
|
|
8829
|
+
};
|
|
8830
|
+
disableBoxShadow?: boolean;
|
|
8831
|
+
ariaLabel?: string;
|
|
8832
|
+
}
|
|
8833
|
+
export const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8834
|
+
}
|
|
8835
|
+
declare module "libs/reach/feature/content/src/comments/DropInfo" {
|
|
8836
|
+
import { FC } from 'react';
|
|
8837
|
+
export const DropTargetOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
8838
|
+
isActive: boolean;
|
|
8839
|
+
}, never>;
|
|
8840
|
+
export const DropInfo: FC;
|
|
8841
|
+
}
|
|
8842
|
+
declare module "libs/reach/feature/content/src/comments/UrlMatcher" {
|
|
8843
|
+
import { AttachmentType } from "libs/reach/util/common/src/index";
|
|
8844
|
+
export function getAllVideosFromString(content: string): Generator<{
|
|
8845
|
+
url: string;
|
|
8846
|
+
type: AttachmentType.YouTubeVideo | AttachmentType.VimeoVideo | AttachmentType.MicrosoftStreamVideo;
|
|
8847
|
+
}, void, unknown>;
|
|
8848
|
+
export function getEmbeddedObjectsFromString(content: string): Generator<{
|
|
8849
|
+
url: string;
|
|
8850
|
+
subscriptionIdentifier: string;
|
|
8851
|
+
type: AttachmentType.News | AttachmentType.Event | AttachmentType.Page | AttachmentType.Post;
|
|
8852
|
+
id: string;
|
|
8853
|
+
}, void, unknown>;
|
|
8854
|
+
}
|
|
8855
|
+
declare module "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator" {
|
|
8856
|
+
import { EmbeddedObject } from "libs/reach/util/common/src/index";
|
|
8857
|
+
export function useEmbeddedObjectValidator(): (embeddedObject: EmbeddedObject) => Promise<boolean>;
|
|
8858
|
+
}
|
|
8859
|
+
declare module "libs/reach/feature/content/src/comments/RichCommentInput" {
|
|
8860
|
+
import { CommentInputProps } from "libs/reach/feature/content/src/comments/CommentInput";
|
|
8861
|
+
import { Attachment, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8862
|
+
export interface ClientAttachment extends Attachment {
|
|
8863
|
+
file?: File;
|
|
8864
|
+
}
|
|
8865
|
+
export type Attachments = (Attachment | ClientAttachment)[];
|
|
8866
|
+
export type RichCommentInputProps = CommentInputProps & {
|
|
8867
|
+
attachments: Attachment[];
|
|
8868
|
+
deletedAttachmentUrls: string[];
|
|
8869
|
+
allowAttachments?: boolean;
|
|
8870
|
+
useLargeDropTarget?: boolean;
|
|
8871
|
+
disableDragAndDrop?: boolean;
|
|
8872
|
+
onAttachmentsChange: (attachments: Attachments) => void;
|
|
8873
|
+
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
8874
|
+
placeHolderStringResourceKey?: string;
|
|
8875
|
+
disableAddGif?: boolean;
|
|
8876
|
+
disableAddFiles?: boolean;
|
|
8877
|
+
parentId?: string;
|
|
8878
|
+
itemResourceType?: ItemResourceTypes | string;
|
|
8879
|
+
};
|
|
8880
|
+
export const RichCommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & {
|
|
8881
|
+
attachments: Attachment[];
|
|
8882
|
+
deletedAttachmentUrls: string[];
|
|
8883
|
+
allowAttachments?: boolean;
|
|
8884
|
+
useLargeDropTarget?: boolean;
|
|
8885
|
+
disableDragAndDrop?: boolean;
|
|
8886
|
+
onAttachmentsChange: (attachments: Attachments) => void;
|
|
8887
|
+
onDeleteAttachment?: (attachment: Attachment) => void;
|
|
8888
|
+
placeHolderStringResourceKey?: string;
|
|
8889
|
+
disableAddGif?: boolean;
|
|
8890
|
+
disableAddFiles?: boolean;
|
|
8891
|
+
parentId?: string;
|
|
8892
|
+
itemResourceType?: ItemResourceTypes | string;
|
|
8893
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
8894
|
+
}
|
|
8895
|
+
declare module "libs/reach/feature/content/src/comments/utils" {
|
|
8896
|
+
import { Comment, Attachment, CurrentUser } from "libs/reach/util/common/src/index";
|
|
8897
|
+
export function canSaveInput(allowSaveWithoutContent: boolean, attachments: Attachment[], content: string): boolean;
|
|
8898
|
+
export function canDelete(comment: Comment, user: CurrentUser, groupIds: string[]): boolean;
|
|
8899
|
+
export function canEdit(comment: Comment, user: CurrentUser): boolean;
|
|
8900
|
+
}
|
|
8880
8901
|
declare module "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList" {
|
|
8881
8902
|
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
8882
8903
|
export const RichCommentInputWithAttachmentList: import("react").ForwardRefExoticComponent<import("@livetiles/reach/feature/content").CommentInputProps & {
|
|
@@ -8956,120 +8977,58 @@ declare module "libs/reach/feature/content/src/common/keywords/EditableKeywordsL
|
|
|
8956
8977
|
export const EditableKeywordsList: FC<{
|
|
8957
8978
|
keywords?: Keyword[];
|
|
8958
8979
|
mandatoryKeywordIds?: string[];
|
|
8959
|
-
onRemoveKeyword?: (id: string) => void;
|
|
8960
|
-
}>;
|
|
8961
|
-
}
|
|
8962
|
-
declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
8963
|
-
import { FC } from 'react';
|
|
8964
|
-
import { Account, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8965
|
-
import { ClientAttachment } from "libs/reach/feature/content/src/comments/RichCommentInput";
|
|
8966
|
-
import { Keyword } from "libs/reach/util/common/src/index";
|
|
8967
|
-
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
8968
|
-
export interface BaseProps {
|
|
8969
|
-
readOnly?: boolean;
|
|
8970
|
-
disableSaving?: boolean;
|
|
8971
|
-
className?: string;
|
|
8972
|
-
autoFocus?: boolean;
|
|
8973
|
-
content?: string;
|
|
8974
|
-
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
8975
|
-
attachments?: ClientAttachment[];
|
|
8976
|
-
deletedAttachmentUrls?: string[];
|
|
8977
|
-
useLargeDropTarget?: boolean;
|
|
8978
|
-
placeHolderStringResourceKey?: string;
|
|
8979
|
-
placeHolderStringResourceValues?: {
|
|
8980
|
-
[key: string]: string | number | boolean | Date;
|
|
8981
|
-
};
|
|
8982
|
-
focusAfterPost?: boolean;
|
|
8983
|
-
onAttachmentsChanged?: (attachments: ClientAttachment[]) => void;
|
|
8984
|
-
onDeleteAttachment?: (attachment: ClientAttachment) => void;
|
|
8985
|
-
disableDragAndDrop?: boolean;
|
|
8986
|
-
allowSaveWithoutContent?: boolean;
|
|
8987
|
-
saveOnEnter?: boolean;
|
|
8988
|
-
saveOnCtrlEnter?: boolean;
|
|
8989
|
-
keywordSettings?: {
|
|
8990
|
-
availableKeywords?: Keyword[];
|
|
8991
|
-
defaultKeywords?: Keyword[];
|
|
8992
|
-
mandatoryKeywords?: Keyword[];
|
|
8993
|
-
};
|
|
8994
|
-
disableBoxShadow?: boolean;
|
|
8995
|
-
ariaLabel?: string;
|
|
8996
|
-
parentId?: string;
|
|
8997
|
-
itemResourceType?: ItemResourceTypes | string;
|
|
8998
|
-
}
|
|
8999
|
-
interface Props extends BaseProps {
|
|
9000
|
-
allowAttachments?: boolean;
|
|
9001
|
-
allowKeywords?: boolean;
|
|
9002
|
-
onPost: (message: {
|
|
9003
|
-
content: string;
|
|
9004
|
-
}, keywords?: {
|
|
9005
|
-
[key: string]: Keyword[];
|
|
9006
|
-
}) => Promise<void>;
|
|
9007
|
-
attachmentPreviewTheme?: CommentInputTheme;
|
|
9008
|
-
}
|
|
9009
|
-
export const CreateComment: FC<Props>;
|
|
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;
|
|
8980
|
+
onRemoveKeyword?: (id: string) => void;
|
|
9071
8981
|
}>;
|
|
9072
8982
|
}
|
|
8983
|
+
declare module "libs/reach/feature/content/src/comments/CreateComment" {
|
|
8984
|
+
import { FC } from 'react';
|
|
8985
|
+
import { Account, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8986
|
+
import { ClientAttachment } from "libs/reach/feature/content/src/comments/RichCommentInput";
|
|
8987
|
+
import { Keyword } from "libs/reach/util/common/src/index";
|
|
8988
|
+
import { CommentInputTheme } from "libs/reach/ui/common/src/index";
|
|
8989
|
+
export interface BaseProps {
|
|
8990
|
+
readOnly?: boolean;
|
|
8991
|
+
disableSaving?: boolean;
|
|
8992
|
+
className?: string;
|
|
8993
|
+
autoFocus?: boolean;
|
|
8994
|
+
content?: string;
|
|
8995
|
+
mentionSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
8996
|
+
attachments?: ClientAttachment[];
|
|
8997
|
+
deletedAttachmentUrls?: string[];
|
|
8998
|
+
useLargeDropTarget?: boolean;
|
|
8999
|
+
placeHolderStringResourceKey?: string;
|
|
9000
|
+
placeHolderStringResourceValues?: {
|
|
9001
|
+
[key: string]: string | number | boolean | Date;
|
|
9002
|
+
};
|
|
9003
|
+
focusAfterPost?: boolean;
|
|
9004
|
+
onAttachmentsChanged?: (attachments: ClientAttachment[]) => void;
|
|
9005
|
+
onDeleteAttachment?: (attachment: ClientAttachment) => void;
|
|
9006
|
+
disableDragAndDrop?: boolean;
|
|
9007
|
+
allowSaveWithoutContent?: boolean;
|
|
9008
|
+
saveOnEnter?: boolean;
|
|
9009
|
+
saveOnCtrlEnter?: boolean;
|
|
9010
|
+
keywordSettings?: {
|
|
9011
|
+
availableKeywords?: Keyword[];
|
|
9012
|
+
defaultKeywords?: Keyword[];
|
|
9013
|
+
mandatoryKeywords?: Keyword[];
|
|
9014
|
+
};
|
|
9015
|
+
disableBoxShadow?: boolean;
|
|
9016
|
+
ariaLabel?: string;
|
|
9017
|
+
parentId?: string;
|
|
9018
|
+
itemResourceType?: ItemResourceTypes | string;
|
|
9019
|
+
}
|
|
9020
|
+
interface Props extends BaseProps {
|
|
9021
|
+
allowAttachments?: boolean;
|
|
9022
|
+
allowKeywords?: boolean;
|
|
9023
|
+
onPost: (message: {
|
|
9024
|
+
content: string;
|
|
9025
|
+
}, keywords?: {
|
|
9026
|
+
[key: string]: Keyword[];
|
|
9027
|
+
}) => Promise<void>;
|
|
9028
|
+
attachmentPreviewTheme?: CommentInputTheme;
|
|
9029
|
+
}
|
|
9030
|
+
export const CreateComment: FC<Props>;
|
|
9031
|
+
}
|
|
9073
9032
|
declare module "libs/reach/feature/content/src/comments/EditComment" {
|
|
9074
9033
|
import { FC } from 'react';
|
|
9075
9034
|
import { Account, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -9154,6 +9113,68 @@ declare module "libs/reach/feature/content/src/comments/EditCommentWithAttachmen
|
|
|
9154
9113
|
export const EditCommentWithAttachments: FC<Props>;
|
|
9155
9114
|
export function isClientAttachment(value: ClientAttachment | Attachment): value is ClientAttachment;
|
|
9156
9115
|
}
|
|
9116
|
+
declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar" {
|
|
9117
|
+
import { FC, ReactNode } from 'react';
|
|
9118
|
+
export const InlineObjectToolbar: FC<{
|
|
9119
|
+
onDelete?: () => void;
|
|
9120
|
+
deleteAriaLabelResourceKey?: string;
|
|
9121
|
+
additionalButtons?: ReactNode;
|
|
9122
|
+
}>;
|
|
9123
|
+
export const InlineObjectToolbarWrapper: FC<{
|
|
9124
|
+
toolbar?: ReactNode;
|
|
9125
|
+
}>;
|
|
9126
|
+
}
|
|
9127
|
+
declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
|
|
9128
|
+
import { FC, ReactNode } from 'react';
|
|
9129
|
+
import { ImageAlignment } from "libs/reach/util/common/src/index";
|
|
9130
|
+
export const ImageToolbar: FC<{
|
|
9131
|
+
onDelete?: () => void;
|
|
9132
|
+
onFullScreen?: (e: React.MouseEvent<any>) => void;
|
|
9133
|
+
onClose?: (e: React.MouseEvent<any>) => void;
|
|
9134
|
+
onCrop?: (e: React.MouseEvent<any>) => void;
|
|
9135
|
+
onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
|
|
9136
|
+
showFullScreenButton?: boolean;
|
|
9137
|
+
showCloseButton?: boolean;
|
|
9138
|
+
showCropButton?: boolean;
|
|
9139
|
+
alignmentButtons?: ReactNode;
|
|
9140
|
+
}>;
|
|
9141
|
+
}
|
|
9142
|
+
declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
|
|
9143
|
+
import { FC } from 'react';
|
|
9144
|
+
import { GalleryDetails } from "libs/reach/feature/content/src/common/body/InlineGallery";
|
|
9145
|
+
export const PhotoGallerySlider: FC<{
|
|
9146
|
+
gallery: GalleryDetails;
|
|
9147
|
+
imageUrlResolver: (imageId: string, width?: number, height?: number) => string;
|
|
9148
|
+
onCloseGallery?: () => void;
|
|
9149
|
+
onOpenFullScreen?: () => void;
|
|
9150
|
+
showFullScreenButton?: boolean;
|
|
9151
|
+
showCloseButton?: boolean;
|
|
9152
|
+
height?: number;
|
|
9153
|
+
forceMobileView?: boolean;
|
|
9154
|
+
}>;
|
|
9155
|
+
export const ClickableImageWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
9156
|
+
}
|
|
9157
|
+
declare module "libs/reach/feature/content/src/common/body/InlineGallery" {
|
|
9158
|
+
import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
|
|
9159
|
+
import { ImageDetails } from "libs/reach/util/common/src/index";
|
|
9160
|
+
export interface GalleryDetails {
|
|
9161
|
+
galleryId: string;
|
|
9162
|
+
images: ImageDetails[];
|
|
9163
|
+
}
|
|
9164
|
+
export const InlineGalleryMapper: HtmlComponentMapper;
|
|
9165
|
+
}
|
|
9166
|
+
declare module "libs/reach/feature/content/src/posts/ImagesAndFilesList" {
|
|
9167
|
+
import { FC } from 'react';
|
|
9168
|
+
import { ItemWithAttachments } from "libs/reach/util/common/src/index";
|
|
9169
|
+
export const ImagesAndFilesList: FC<{
|
|
9170
|
+
item: ItemWithAttachments;
|
|
9171
|
+
basePath: string;
|
|
9172
|
+
imagesGridBackgroundColor?: string;
|
|
9173
|
+
onPlayVideo?: (url: string, videoId: string) => void;
|
|
9174
|
+
onPlayAudio?: (url: string, audioId: string) => void;
|
|
9175
|
+
className?: string;
|
|
9176
|
+
}>;
|
|
9177
|
+
}
|
|
9157
9178
|
declare module "libs/reach/feature/content/src/common/ContentWithShowMoreButton" {
|
|
9158
9179
|
import { FC } from 'react';
|
|
9159
9180
|
export const ContentWithShowMoreButton: FC<{
|
|
@@ -9221,22 +9242,19 @@ declare module "libs/reach/feature/content/src/comments/useCommentsPageLoader" {
|
|
|
9221
9242
|
];
|
|
9222
9243
|
}
|
|
9223
9244
|
declare module "libs/reach/feature/content/src/comments/index" {
|
|
9245
|
+
export * from "libs/reach/feature/content/src/comments/AttachmentList";
|
|
9246
|
+
export * from "libs/reach/feature/content/src/comments/CommentContentUtils";
|
|
9247
|
+
export * from "libs/reach/feature/content/src/comments/CommentInput";
|
|
9224
9248
|
export * from "libs/reach/feature/content/src/comments/ContentDisplay";
|
|
9225
|
-
export * from "libs/reach/feature/content/src/comments/FollowComments";
|
|
9226
9249
|
export * from "libs/reach/feature/content/src/comments/CreateComment";
|
|
9227
|
-
export * from "libs/reach/feature/content/src/comments/
|
|
9250
|
+
export * from "libs/reach/feature/content/src/comments/EditCommentWithAttachments";
|
|
9251
|
+
export * from "libs/reach/feature/content/src/comments/FollowComments";
|
|
9228
9252
|
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
9253
|
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
9254
|
export * from "libs/reach/feature/content/src/comments/RichCommentInputWithAttachmentList";
|
|
9237
|
-
export * from "libs/reach/feature/content/src/comments/
|
|
9255
|
+
export * from "libs/reach/feature/content/src/comments/UrlMatcher";
|
|
9256
|
+
export * from "libs/reach/feature/content/src/comments/useCommentApi";
|
|
9238
9257
|
export * from "libs/reach/feature/content/src/comments/useCommentsPageLoader";
|
|
9239
|
-
export * from "libs/reach/feature/content/src/comments/CommentContentUtils";
|
|
9240
9258
|
}
|
|
9241
9259
|
declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton" {
|
|
9242
9260
|
import { FC } from 'react';
|
|
@@ -12161,6 +12179,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/inde
|
|
|
12161
12179
|
export { FormatContextProvider, useFormatContext } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatContext";
|
|
12162
12180
|
}
|
|
12163
12181
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/types" {
|
|
12182
|
+
import { ICarouselImageProps } from "libs/reach/ui/common/src/index";
|
|
12164
12183
|
import { StreamAttachment } from "libs/reach/feature/content/src/stream/index";
|
|
12165
12184
|
export interface AttachmentStorageInfo {
|
|
12166
12185
|
attachmentContainerId?: string;
|
|
@@ -12168,12 +12187,14 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/types" {
|
|
|
12168
12187
|
postAttachments?: StreamAttachment[];
|
|
12169
12188
|
subscriptionId?: string;
|
|
12170
12189
|
}
|
|
12190
|
+
export type IEditorImage = ICarouselImageProps;
|
|
12171
12191
|
}
|
|
12172
12192
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/CustomFigure" {
|
|
12173
12193
|
import { Node } from '@tiptap/react';
|
|
12174
12194
|
import { AttachmentStorageInfo } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12175
12195
|
interface CustomFigureProps {
|
|
12176
12196
|
attachmentStorageInfo?: AttachmentStorageInfo;
|
|
12197
|
+
onImageClick?: (imageId: string) => void;
|
|
12177
12198
|
}
|
|
12178
12199
|
const CustomFigure: (props: CustomFigureProps) => Node<any, any>;
|
|
12179
12200
|
export default CustomFigure;
|
|
@@ -12190,11 +12211,13 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/Custo
|
|
|
12190
12211
|
}
|
|
12191
12212
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/CustomGallery" {
|
|
12192
12213
|
import { Node } from '@tiptap/react';
|
|
12214
|
+
import { IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12193
12215
|
interface ICustomGallery {
|
|
12194
12216
|
onEditImages?: (files: {
|
|
12195
12217
|
caption: string;
|
|
12196
12218
|
id: string;
|
|
12197
12219
|
}[]) => void;
|
|
12220
|
+
setImagesStored?: (images: IEditorImage[]) => void;
|
|
12198
12221
|
}
|
|
12199
12222
|
const CustomGallery: (props: ICustomGallery) => Node;
|
|
12200
12223
|
export default CustomGallery;
|
|
@@ -12207,7 +12230,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/index
|
|
|
12207
12230
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor" {
|
|
12208
12231
|
import { Account } from "libs/reach/util/common/src/index";
|
|
12209
12232
|
import { Editor, FocusPosition } from '@tiptap/react';
|
|
12210
|
-
import { AttachmentStorageInfo } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12233
|
+
import { AttachmentStorageInfo, IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12211
12234
|
export const editorCharacterLimit = 1000;
|
|
12212
12235
|
export interface EnhancedRichTextEditorContent {
|
|
12213
12236
|
content?: string;
|
|
@@ -12233,16 +12256,18 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
|
|
|
12233
12256
|
onAddImages?: (files: {
|
|
12234
12257
|
file: File;
|
|
12235
12258
|
}[], isDrop?: boolean) => Promise<void>;
|
|
12259
|
+
onCreate?: (editor: Editor) => void;
|
|
12236
12260
|
onEditImages?: (files: {
|
|
12237
12261
|
caption: string;
|
|
12238
12262
|
id: string;
|
|
12239
12263
|
}[]) => void;
|
|
12240
|
-
onCreate?: (editor: Editor) => void;
|
|
12241
12264
|
onFocus?: (editor: Editor) => void;
|
|
12265
|
+
onImageClick?: (imgSrc: string) => void;
|
|
12242
12266
|
onShortcut?: (shortcut: string) => void;
|
|
12243
|
-
onUpdate?: (content: EnhancedRichTextEditorContent | null) => void;
|
|
12244
12267
|
onTransaction?: (editor: Editor) => void;
|
|
12268
|
+
onUpdate?: (content: EnhancedRichTextEditorContent | null) => void;
|
|
12245
12269
|
placeholder?: string;
|
|
12270
|
+
setImagesStored?: (images: IEditorImage[]) => void;
|
|
12246
12271
|
shortcuts?: string[];
|
|
12247
12272
|
useHardBreak?: boolean;
|
|
12248
12273
|
}
|
|
@@ -12613,6 +12638,68 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
12613
12638
|
itemId: string;
|
|
12614
12639
|
}>;
|
|
12615
12640
|
}
|
|
12641
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
|
|
12642
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
12643
|
+
import { Editor } from '@tiptap/react';
|
|
12644
|
+
import { FC } from 'react';
|
|
12645
|
+
interface IMentionsButtonProps {
|
|
12646
|
+
editor: Editor;
|
|
12647
|
+
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12648
|
+
setShowMentions: (value: boolean) => void;
|
|
12649
|
+
shouldCenterPopover: boolean;
|
|
12650
|
+
showMentions: boolean;
|
|
12651
|
+
}
|
|
12652
|
+
const MentionsButton: FC<IMentionsButtonProps>;
|
|
12653
|
+
export default MentionsButton;
|
|
12654
|
+
}
|
|
12655
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
|
|
12656
|
+
import { Editor } from '@tiptap/react';
|
|
12657
|
+
import { FC } from 'react';
|
|
12658
|
+
interface IContentRichTextEditor {
|
|
12659
|
+
className?: string;
|
|
12660
|
+
dialogPosition?: Partial<DOMRect> | null;
|
|
12661
|
+
editor: Editor;
|
|
12662
|
+
hidePlaceholder?: boolean;
|
|
12663
|
+
isReadOnly?: boolean;
|
|
12664
|
+
}
|
|
12665
|
+
const ContentRichTextEditor: FC<IContentRichTextEditor>;
|
|
12666
|
+
export default ContentRichTextEditor;
|
|
12667
|
+
}
|
|
12668
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
|
|
12669
|
+
export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
|
|
12670
|
+
}
|
|
12671
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
|
|
12672
|
+
export const getTrimmedContent: (content: string) => string;
|
|
12673
|
+
export const getTrimmedFormattedContent: (formattedContent: string) => string;
|
|
12674
|
+
}
|
|
12675
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
12676
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12677
|
+
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12678
|
+
export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
|
|
12679
|
+
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12680
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12681
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12682
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12683
|
+
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12684
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
|
|
12685
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
|
|
12686
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12687
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
|
|
12688
|
+
}
|
|
12689
|
+
declare module "libs/reach/feature/content/src/reach-2/common/carousel/CarouselModal" {
|
|
12690
|
+
import { FC } from 'react';
|
|
12691
|
+
import { IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
12692
|
+
interface ICarouselModalProps {
|
|
12693
|
+
imagesStored: IEditorImage[];
|
|
12694
|
+
onDismiss: () => void;
|
|
12695
|
+
selectedImageId: string;
|
|
12696
|
+
}
|
|
12697
|
+
const CarouselModal: FC<ICarouselModalProps>;
|
|
12698
|
+
export default CarouselModal;
|
|
12699
|
+
}
|
|
12700
|
+
declare module "libs/reach/feature/content/src/reach-2/common/carousel/index" {
|
|
12701
|
+
export { default as CarouselModal } from "libs/reach/feature/content/src/reach-2/common/carousel/CarouselModal";
|
|
12702
|
+
}
|
|
12616
12703
|
declare module "libs/reach/feature/content/src/reach-2/listItems/CopyLinkListItem" {
|
|
12617
12704
|
import { FC } from 'react';
|
|
12618
12705
|
interface CopyLinkListItemProps {
|
|
@@ -12767,54 +12854,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
|
12767
12854
|
export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
|
|
12768
12855
|
export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
|
|
12769
12856
|
}
|
|
12770
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
|
|
12771
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
12772
|
-
import { Editor } from '@tiptap/react';
|
|
12773
|
-
import { FC } from 'react';
|
|
12774
|
-
interface IMentionsButtonProps {
|
|
12775
|
-
editor: Editor;
|
|
12776
|
-
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12777
|
-
setShowMentions: (value: boolean) => void;
|
|
12778
|
-
shouldCenterPopover: boolean;
|
|
12779
|
-
showMentions: boolean;
|
|
12780
|
-
}
|
|
12781
|
-
const MentionsButton: FC<IMentionsButtonProps>;
|
|
12782
|
-
export default MentionsButton;
|
|
12783
|
-
}
|
|
12784
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
|
|
12785
|
-
import { Editor } from '@tiptap/react';
|
|
12786
|
-
import { FC } from 'react';
|
|
12787
|
-
interface IContentRichTextEditor {
|
|
12788
|
-
className?: string;
|
|
12789
|
-
dialogPosition?: Partial<DOMRect> | null;
|
|
12790
|
-
editor: Editor;
|
|
12791
|
-
hidePlaceholder?: boolean;
|
|
12792
|
-
isReadOnly?: boolean;
|
|
12793
|
-
}
|
|
12794
|
-
const ContentRichTextEditor: FC<IContentRichTextEditor>;
|
|
12795
|
-
export default ContentRichTextEditor;
|
|
12796
|
-
}
|
|
12797
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
|
|
12798
|
-
export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
|
|
12799
|
-
}
|
|
12800
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
|
|
12801
|
-
export const getTrimmedContent: (content: string) => string;
|
|
12802
|
-
export const getTrimmedFormattedContent: (formattedContent: string) => string;
|
|
12803
|
-
}
|
|
12804
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
12805
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12806
|
-
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12807
|
-
export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
|
|
12808
|
-
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12809
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12810
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12811
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12812
|
-
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12813
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
|
|
12814
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
|
|
12815
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12816
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
|
|
12817
|
-
}
|
|
12818
12857
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
|
|
12819
12858
|
import { Comment } from "libs/reach/util/common/src/index";
|
|
12820
12859
|
export enum TextStylingOptions {
|
|
@@ -12851,6 +12890,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12851
12890
|
import { FC } from 'react';
|
|
12852
12891
|
interface ICommentEditorHeaderProps {
|
|
12853
12892
|
isCollapsed: boolean;
|
|
12893
|
+
mobileHeaderTitle: string;
|
|
12854
12894
|
onCancel: () => void;
|
|
12855
12895
|
}
|
|
12856
12896
|
const CommentEditorHeader: FC<ICommentEditorHeaderProps>;
|
|
@@ -12881,8 +12921,9 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12881
12921
|
autofocus?: boolean;
|
|
12882
12922
|
comment?: Comment;
|
|
12883
12923
|
isCollapsed?: boolean;
|
|
12884
|
-
isSaving
|
|
12885
|
-
|
|
12924
|
+
isSaving: boolean;
|
|
12925
|
+
mobileHeaderTitle?: string;
|
|
12926
|
+
onCancel: () => void;
|
|
12886
12927
|
onFocus?: () => void;
|
|
12887
12928
|
onSave: (newContent: {
|
|
12888
12929
|
content?: string;
|
|
@@ -12922,6 +12963,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12922
12963
|
interface ICommentMetadataProps {
|
|
12923
12964
|
comment: Comment;
|
|
12924
12965
|
onReply: () => void;
|
|
12966
|
+
setIsMobileEditorOpen?: (isOpen: boolean) => void;
|
|
12925
12967
|
totalReplies: number;
|
|
12926
12968
|
}
|
|
12927
12969
|
const CommentMetadata: FC<ICommentMetadataProps>;
|
|
@@ -12932,14 +12974,33 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12932
12974
|
import { FC } from 'react';
|
|
12933
12975
|
interface ICommentDisplayProps {
|
|
12934
12976
|
comment: Comment;
|
|
12935
|
-
onEdit: () => void;
|
|
12936
12977
|
onDelete: () => void;
|
|
12978
|
+
onEdit: () => void;
|
|
12937
12979
|
onReply?: () => void;
|
|
12980
|
+
setIsMobileEditorOpen?: (isOpen: boolean) => void;
|
|
12938
12981
|
totalReplies: number;
|
|
12939
12982
|
}
|
|
12940
12983
|
const CommentDisplay: FC<ICommentDisplayProps>;
|
|
12941
12984
|
export default CommentDisplay;
|
|
12942
12985
|
}
|
|
12986
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/MobileCommentEditor" {
|
|
12987
|
+
import { FC } from 'react';
|
|
12988
|
+
import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12989
|
+
interface IMobileCommentEditorProps {
|
|
12990
|
+
comment?: CommentWithReplies;
|
|
12991
|
+
isSaving: boolean;
|
|
12992
|
+
mobileHeaderTitle: string;
|
|
12993
|
+
onDismiss: () => void;
|
|
12994
|
+
onSave: (newContent: {
|
|
12995
|
+
content?: string;
|
|
12996
|
+
formattedContent?: string;
|
|
12997
|
+
}, clearContent: () => void) => Promise<void>;
|
|
12998
|
+
parentItemId: string;
|
|
12999
|
+
placeholder?: string;
|
|
13000
|
+
}
|
|
13001
|
+
const MobileCommentEditor: FC<IMobileCommentEditorProps>;
|
|
13002
|
+
export default MobileCommentEditor;
|
|
13003
|
+
}
|
|
12943
13004
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItemReplies" {
|
|
12944
13005
|
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
12945
13006
|
import { FC } from 'react';
|
|
@@ -12948,7 +13009,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12948
13009
|
isCollapsed: boolean;
|
|
12949
13010
|
isReplyMode: boolean;
|
|
12950
13011
|
parentItemId: string;
|
|
12951
|
-
refetchComments: () => void
|
|
13012
|
+
refetchComments: () => Promise<void>;
|
|
12952
13013
|
threadId: string;
|
|
12953
13014
|
totalInitialReplies: number;
|
|
12954
13015
|
}
|
|
@@ -12974,7 +13035,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12974
13035
|
onEdit: (isEditMode: boolean) => void;
|
|
12975
13036
|
onReply: (isReplyMode: boolean) => void;
|
|
12976
13037
|
parentItemId: string;
|
|
12977
|
-
refetchComments: () => void
|
|
13038
|
+
refetchComments: () => Promise<void>;
|
|
12978
13039
|
totalReplies: number;
|
|
12979
13040
|
}
|
|
12980
13041
|
const CommentListItem: FC<ICommentListItemProps>;
|
|
@@ -12983,10 +13044,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12983
13044
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentList" {
|
|
12984
13045
|
import { FC } from 'react';
|
|
12985
13046
|
interface ICommentListProps {
|
|
12986
|
-
autofocus
|
|
12987
|
-
hideComments
|
|
13047
|
+
autofocus: boolean;
|
|
13048
|
+
hideComments: () => void;
|
|
12988
13049
|
itemId: string;
|
|
12989
13050
|
refetchItem: (itemId: string) => Promise<void>;
|
|
13051
|
+
setShowCommentsList: (isOpen: boolean) => void;
|
|
12990
13052
|
totalComments: number;
|
|
12991
13053
|
}
|
|
12992
13054
|
const CommentList: FC<ICommentListProps>;
|
|
@@ -13060,10 +13122,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/index" {
|
|
|
13060
13122
|
export * from "libs/reach/feature/content/src/reach-2/common/snippets/common/index";
|
|
13061
13123
|
}
|
|
13062
13124
|
declare module "libs/reach/feature/content/src/reach-2/common/index" {
|
|
13125
|
+
export * from "libs/reach/feature/content/src/reach-2/common/carousel/index";
|
|
13063
13126
|
export * from "libs/reach/feature/content/src/reach-2/common/detail/index";
|
|
13127
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
13064
13128
|
export * from "libs/reach/feature/content/src/reach-2/common/feedback/index";
|
|
13065
13129
|
export * from "libs/reach/feature/content/src/reach-2/common/snippets/index";
|
|
13066
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
13067
13130
|
}
|
|
13068
13131
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
|
|
13069
13132
|
import { FC } from 'react';
|