@livetiles/reach-plugin-types 0.5.0-preview.1152 → 0.5.0-preview.1154
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 +207 -143
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4615,26 +4615,13 @@ declare module "libs/reach/ui/common/src/plugins/reach-core" {
|
|
|
4615
4615
|
usePluginDeviceStore as usePluginStorage, usePluginDeviceStore, usePluginSubscriptionStore, usePluginSubscriptionStoreValue, usePluginUserStore, usePluginUserStoreValue, useReachApiEndPoints, AccountType, PeoplePicker, GutterToggle, EditorSettingsDialogWithFixedWidth as EditorSettingsDialog, Spinner, SelectionMode, EditorHighlight, useTheme, useSubscriptionHandlePathBuilder, useSubscriptionWebAppUrl, };
|
|
4616
4616
|
export type { Account, PluginNavigationNodeProps, PluginProps, PluginStorage, PluginStore, EmbeddedPluginProps, };
|
|
4617
4617
|
}
|
|
4618
|
-
declare module "libs/reach/ui/common/src/
|
|
4619
|
-
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
4620
|
-
export function getFlatKeywordList(keywords: KeywordsByGroupId): Keyword[];
|
|
4621
|
-
export function ensureMandatoryKeywords(mandatoryKeywords: Keyword[], allKeywords: Keyword[]): Keyword[];
|
|
4622
|
-
export function getGroupedKeywords(keywords: Keyword[]): {
|
|
4623
|
-
[key: string]: Keyword[];
|
|
4624
|
-
};
|
|
4625
|
-
export function getKeywordDisplayValue(keywordGroups: KeywordGroup[] | null, user: CurrentUser, groupId?: string, keywordName?: string, groupName?: string, language?: string): string;
|
|
4626
|
-
export function getKeywordTitle(user: CurrentUser, translations: {
|
|
4627
|
-
[key: string]: string;
|
|
4628
|
-
}, name: string, language?: string): string;
|
|
4629
|
-
export function getPreSelectedKeywords(keywords: Keyword[], mandatoryKeywords: Keyword[]): Keyword[];
|
|
4630
|
-
export function checkIfHasSameKeywords(keywordsArray1: Keyword[], keywordsArray2: Keyword[]): boolean;
|
|
4631
|
-
}
|
|
4632
|
-
declare module "libs/reach/ui/common/src/common/messagebar/MessageBarStyles" {
|
|
4633
|
-
export const MessageBarBaseStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
4634
|
-
}
|
|
4635
|
-
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
4618
|
+
declare module "libs/reach/ui/common/src/ColorEditor" {
|
|
4636
4619
|
import { FC } from 'react';
|
|
4637
|
-
export const
|
|
4620
|
+
export const ColorEditor: FC<{
|
|
4621
|
+
color?: string;
|
|
4622
|
+
onColorChange?: (color: string) => void;
|
|
4623
|
+
className?: string;
|
|
4624
|
+
}>;
|
|
4638
4625
|
}
|
|
4639
4626
|
declare module "libs/reach/ui/common/src/common/AttachedMediaDownloadLink" {
|
|
4640
4627
|
import { FC } from 'react';
|
|
@@ -5936,6 +5923,9 @@ declare module "libs/reach/ui/common/src/common/MenuItemBadge" {
|
|
|
5936
5923
|
declare module "libs/reach/ui/common/src/common/editor-svg/index" {
|
|
5937
5924
|
export { ReactComponent as AltText } from './AltText.svg';
|
|
5938
5925
|
}
|
|
5926
|
+
declare module "libs/reach/ui/common/src/common/messagebar/MessageBarStyles" {
|
|
5927
|
+
export const MessageBarBaseStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
5928
|
+
}
|
|
5939
5929
|
declare module "libs/reach/ui/common/src/common/index" {
|
|
5940
5930
|
export * from "libs/reach/ui/common/src/common/AudioFile";
|
|
5941
5931
|
export * from "libs/reach/ui/common/src/common/GroupedListItemStyles";
|
|
@@ -6046,6 +6036,20 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
6046
6036
|
export * from "libs/reach/ui/common/src/common/editor-svg/index";
|
|
6047
6037
|
export * from "libs/reach/ui/common/src/common/messagebar/MessageBarStyles";
|
|
6048
6038
|
}
|
|
6039
|
+
declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
6040
|
+
import { CurrentUser, Keyword, KeywordGroup, KeywordsByGroupId } from "libs/reach/util/common/src/index";
|
|
6041
|
+
export function getFlatKeywordList(keywords: KeywordsByGroupId): Keyword[];
|
|
6042
|
+
export function ensureMandatoryKeywords(mandatoryKeywords: Keyword[], allKeywords: Keyword[]): Keyword[];
|
|
6043
|
+
export function getGroupedKeywords(keywords: Keyword[]): {
|
|
6044
|
+
[key: string]: Keyword[];
|
|
6045
|
+
};
|
|
6046
|
+
export function getKeywordDisplayValue(keywordGroups: KeywordGroup[] | null, user: CurrentUser, groupId?: string, keywordName?: string, groupName?: string, language?: string): string;
|
|
6047
|
+
export function getKeywordTitle(user: CurrentUser, translations: {
|
|
6048
|
+
[key: string]: string;
|
|
6049
|
+
}, name: string, language?: string): string;
|
|
6050
|
+
export function getPreSelectedKeywords(keywords: Keyword[], mandatoryKeywords: Keyword[]): Keyword[];
|
|
6051
|
+
export function checkIfHasSameKeywords(keywordsArray1: Keyword[], keywordsArray2: Keyword[]): boolean;
|
|
6052
|
+
}
|
|
6049
6053
|
declare module "libs/reach/ui/common/src/error/PageAlert" {
|
|
6050
6054
|
import { ReactNode } from 'react';
|
|
6051
6055
|
export enum ErrorType {
|
|
@@ -6067,17 +6071,13 @@ declare module "libs/reach/ui/common/src/error/PageAlert" {
|
|
|
6067
6071
|
export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6068
6072
|
export const CenteredAlert: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6069
6073
|
}
|
|
6074
|
+
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
6075
|
+
import { FC } from 'react';
|
|
6076
|
+
export const NotificationBar: FC;
|
|
6077
|
+
}
|
|
6070
6078
|
declare module "libs/reach/ui/common/src/plugins/registerCorePackages" {
|
|
6071
6079
|
export function registerCorePackages(): void;
|
|
6072
6080
|
}
|
|
6073
|
-
declare module "libs/reach/ui/common/src/ColorEditor" {
|
|
6074
|
-
import { FC } from 'react';
|
|
6075
|
-
export const ColorEditor: FC<{
|
|
6076
|
-
color?: string;
|
|
6077
|
-
onColorChange?: (color: string) => void;
|
|
6078
|
-
className?: string;
|
|
6079
|
-
}>;
|
|
6080
|
-
}
|
|
6081
6081
|
declare module "libs/reach/ui/common/src/reach-2/assets/Assets" {
|
|
6082
6082
|
export { ReactComponent as Logo } from './logo.svg';
|
|
6083
6083
|
export { ReactComponent as Conversation } from './conversations.svg';
|
|
@@ -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";
|
|
@@ -7030,22 +7051,22 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
7030
7051
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
7031
7052
|
}
|
|
7032
7053
|
declare module "libs/reach/ui/common/src/index" {
|
|
7033
|
-
export * from "libs/reach/ui/common/src/
|
|
7054
|
+
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
7055
|
+
export * from "libs/reach/ui/common/src/common/index";
|
|
7034
7056
|
export * from "libs/reach/ui/common/src/content-keyword-utils";
|
|
7035
7057
|
export * from "libs/reach/ui/common/src/EditorHighlight";
|
|
7036
7058
|
export * from "libs/reach/ui/common/src/EditorSettingsDialog";
|
|
7059
|
+
export * from "libs/reach/ui/common/src/error/PageAlert";
|
|
7037
7060
|
export * from "libs/reach/ui/common/src/GutterToggle";
|
|
7038
7061
|
export * from "libs/reach/ui/common/src/HighlightBubble";
|
|
7039
7062
|
export * from "libs/reach/ui/common/src/IconButton";
|
|
7063
|
+
export * from "libs/reach/ui/common/src/LegacyDialog";
|
|
7040
7064
|
export * from "libs/reach/ui/common/src/Link";
|
|
7041
7065
|
export * from "libs/reach/ui/common/src/NotificationBar";
|
|
7042
7066
|
export * from "libs/reach/ui/common/src/PeoplePicker";
|
|
7043
|
-
export * from "libs/reach/ui/common/src/Tooltip";
|
|
7044
|
-
export * from "libs/reach/ui/common/src/common/index";
|
|
7045
|
-
export * from "libs/reach/ui/common/src/error/PageAlert";
|
|
7046
7067
|
export * from "libs/reach/ui/common/src/plugins/registerCorePackages";
|
|
7047
|
-
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
7048
7068
|
export * from "libs/reach/ui/common/src/reach-2/index";
|
|
7069
|
+
export * from "libs/reach/ui/common/src/Tooltip";
|
|
7049
7070
|
}
|
|
7050
7071
|
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7051
7072
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
@@ -12047,11 +12068,13 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRich
|
|
|
12047
12068
|
maxHeight?: number;
|
|
12048
12069
|
minHeight?: number;
|
|
12049
12070
|
}
|
|
12050
|
-
|
|
12071
|
+
interface ICommentRichTextEditorProps {
|
|
12051
12072
|
className?: string;
|
|
12052
12073
|
editor: Editor;
|
|
12074
|
+
isReadOnly?: boolean;
|
|
12053
12075
|
styles?: CommentRichTextEditorStyles;
|
|
12054
|
-
}
|
|
12076
|
+
}
|
|
12077
|
+
const CommentRichTextEditor: FC<ICommentRichTextEditorProps>;
|
|
12055
12078
|
export default CommentRichTextEditor;
|
|
12056
12079
|
}
|
|
12057
12080
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/SuggestionsPopover" {
|
|
@@ -12158,6 +12181,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/inde
|
|
|
12158
12181
|
export { FormatContextProvider, useFormatContext } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatContext";
|
|
12159
12182
|
}
|
|
12160
12183
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/types" {
|
|
12184
|
+
import { ICarouselImageProps } from "libs/reach/ui/common/src/index";
|
|
12161
12185
|
import { StreamAttachment } from "libs/reach/feature/content/src/stream/index";
|
|
12162
12186
|
export interface AttachmentStorageInfo {
|
|
12163
12187
|
attachmentContainerId?: string;
|
|
@@ -12165,12 +12189,14 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/types" {
|
|
|
12165
12189
|
postAttachments?: StreamAttachment[];
|
|
12166
12190
|
subscriptionId?: string;
|
|
12167
12191
|
}
|
|
12192
|
+
export type IEditorImage = ICarouselImageProps;
|
|
12168
12193
|
}
|
|
12169
12194
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/CustomFigure" {
|
|
12170
12195
|
import { Node } from '@tiptap/react';
|
|
12171
12196
|
import { AttachmentStorageInfo } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12172
12197
|
interface CustomFigureProps {
|
|
12173
12198
|
attachmentStorageInfo?: AttachmentStorageInfo;
|
|
12199
|
+
onImageClick?: (imageId: string) => void;
|
|
12174
12200
|
}
|
|
12175
12201
|
const CustomFigure: (props: CustomFigureProps) => Node<any, any>;
|
|
12176
12202
|
export default CustomFigure;
|
|
@@ -12187,11 +12213,13 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/Custo
|
|
|
12187
12213
|
}
|
|
12188
12214
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/CustomGallery" {
|
|
12189
12215
|
import { Node } from '@tiptap/react';
|
|
12216
|
+
import { IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12190
12217
|
interface ICustomGallery {
|
|
12191
12218
|
onEditImages?: (files: {
|
|
12192
12219
|
caption: string;
|
|
12193
12220
|
id: string;
|
|
12194
12221
|
}[]) => void;
|
|
12222
|
+
setImagesStored?: (images: IEditorImage[]) => void;
|
|
12195
12223
|
}
|
|
12196
12224
|
const CustomGallery: (props: ICustomGallery) => Node;
|
|
12197
12225
|
export default CustomGallery;
|
|
@@ -12204,7 +12232,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/nodes/index
|
|
|
12204
12232
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor" {
|
|
12205
12233
|
import { Account } from "libs/reach/util/common/src/index";
|
|
12206
12234
|
import { Editor, FocusPosition } from '@tiptap/react';
|
|
12207
|
-
import { AttachmentStorageInfo } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12235
|
+
import { AttachmentStorageInfo, IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12208
12236
|
export const editorCharacterLimit = 1000;
|
|
12209
12237
|
export interface EnhancedRichTextEditorContent {
|
|
12210
12238
|
content?: string;
|
|
@@ -12230,16 +12258,18 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
|
|
|
12230
12258
|
onAddImages?: (files: {
|
|
12231
12259
|
file: File;
|
|
12232
12260
|
}[], isDrop?: boolean) => Promise<void>;
|
|
12261
|
+
onCreate?: (editor: Editor) => void;
|
|
12233
12262
|
onEditImages?: (files: {
|
|
12234
12263
|
caption: string;
|
|
12235
12264
|
id: string;
|
|
12236
12265
|
}[]) => void;
|
|
12237
|
-
onCreate?: (editor: Editor) => void;
|
|
12238
12266
|
onFocus?: (editor: Editor) => void;
|
|
12267
|
+
onImageClick?: (imgSrc: string) => void;
|
|
12239
12268
|
onShortcut?: (shortcut: string) => void;
|
|
12240
|
-
onUpdate?: (content: EnhancedRichTextEditorContent | null) => void;
|
|
12241
12269
|
onTransaction?: (editor: Editor) => void;
|
|
12270
|
+
onUpdate?: (content: EnhancedRichTextEditorContent | null) => void;
|
|
12242
12271
|
placeholder?: string;
|
|
12272
|
+
setImagesStored?: (images: IEditorImage[]) => void;
|
|
12243
12273
|
shortcuts?: string[];
|
|
12244
12274
|
useHardBreak?: boolean;
|
|
12245
12275
|
}
|
|
@@ -12610,6 +12640,80 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
12610
12640
|
itemId: string;
|
|
12611
12641
|
}>;
|
|
12612
12642
|
}
|
|
12643
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
|
|
12644
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
12645
|
+
import { Editor } from '@tiptap/react';
|
|
12646
|
+
import { FC } from 'react';
|
|
12647
|
+
interface IMentionsButtonProps {
|
|
12648
|
+
editor: Editor;
|
|
12649
|
+
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12650
|
+
setShowMentions: (value: boolean) => void;
|
|
12651
|
+
shouldCenterPopover: boolean;
|
|
12652
|
+
showMentions: boolean;
|
|
12653
|
+
}
|
|
12654
|
+
const MentionsButton: FC<IMentionsButtonProps>;
|
|
12655
|
+
export default MentionsButton;
|
|
12656
|
+
}
|
|
12657
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover" {
|
|
12658
|
+
import { IGif } from '@giphy/js-types';
|
|
12659
|
+
import { Editor } from '@tiptap/react';
|
|
12660
|
+
import { FC } from 'react';
|
|
12661
|
+
const AddGifPopover: FC<{
|
|
12662
|
+
className?: string;
|
|
12663
|
+
editor: Editor;
|
|
12664
|
+
onGifClick: (gif: IGif) => void;
|
|
12665
|
+
}>;
|
|
12666
|
+
export default AddGifPopover;
|
|
12667
|
+
}
|
|
12668
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
|
|
12669
|
+
import { Editor } from '@tiptap/react';
|
|
12670
|
+
import { FC } from 'react';
|
|
12671
|
+
interface IContentRichTextEditor {
|
|
12672
|
+
className?: string;
|
|
12673
|
+
dialogPosition?: Partial<DOMRect> | null;
|
|
12674
|
+
editor: Editor;
|
|
12675
|
+
hidePlaceholder?: boolean;
|
|
12676
|
+
isReadOnly?: boolean;
|
|
12677
|
+
}
|
|
12678
|
+
const ContentRichTextEditor: FC<IContentRichTextEditor>;
|
|
12679
|
+
export default ContentRichTextEditor;
|
|
12680
|
+
}
|
|
12681
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
|
|
12682
|
+
export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
|
|
12683
|
+
}
|
|
12684
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
|
|
12685
|
+
export const getTrimmedContent: (content: string) => string;
|
|
12686
|
+
export const getTrimmedFormattedContent: (formattedContent: string) => string;
|
|
12687
|
+
}
|
|
12688
|
+
declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
12689
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12690
|
+
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12691
|
+
export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
|
|
12692
|
+
export { default as AddGifPopover } from "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover";
|
|
12693
|
+
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12694
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12695
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12696
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12697
|
+
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12698
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
|
|
12699
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
|
|
12700
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12701
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
|
|
12702
|
+
}
|
|
12703
|
+
declare module "libs/reach/feature/content/src/reach-2/common/carousel/CarouselModal" {
|
|
12704
|
+
import { FC } from 'react';
|
|
12705
|
+
import { IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
12706
|
+
interface ICarouselModalProps {
|
|
12707
|
+
imagesStored: IEditorImage[];
|
|
12708
|
+
onDismiss: () => void;
|
|
12709
|
+
selectedImageId: string;
|
|
12710
|
+
}
|
|
12711
|
+
const CarouselModal: FC<ICarouselModalProps>;
|
|
12712
|
+
export default CarouselModal;
|
|
12713
|
+
}
|
|
12714
|
+
declare module "libs/reach/feature/content/src/reach-2/common/carousel/index" {
|
|
12715
|
+
export { default as CarouselModal } from "libs/reach/feature/content/src/reach-2/common/carousel/CarouselModal";
|
|
12716
|
+
}
|
|
12613
12717
|
declare module "libs/reach/feature/content/src/reach-2/listItems/CopyLinkListItem" {
|
|
12614
12718
|
import { FC } from 'react';
|
|
12615
12719
|
interface CopyLinkListItemProps {
|
|
@@ -12764,54 +12868,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
|
12764
12868
|
export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
|
|
12765
12869
|
export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
|
|
12766
12870
|
}
|
|
12767
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
|
|
12768
|
-
import { Account } from "libs/reach/util/common/src/index";
|
|
12769
|
-
import { Editor } from '@tiptap/react';
|
|
12770
|
-
import { FC } from 'react';
|
|
12771
|
-
interface IMentionsButtonProps {
|
|
12772
|
-
editor: Editor;
|
|
12773
|
-
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12774
|
-
setShowMentions: (value: boolean) => void;
|
|
12775
|
-
shouldCenterPopover: boolean;
|
|
12776
|
-
showMentions: boolean;
|
|
12777
|
-
}
|
|
12778
|
-
const MentionsButton: FC<IMentionsButtonProps>;
|
|
12779
|
-
export default MentionsButton;
|
|
12780
|
-
}
|
|
12781
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
|
|
12782
|
-
import { Editor } from '@tiptap/react';
|
|
12783
|
-
import { FC } from 'react';
|
|
12784
|
-
interface IContentRichTextEditor {
|
|
12785
|
-
className?: string;
|
|
12786
|
-
dialogPosition?: Partial<DOMRect> | null;
|
|
12787
|
-
editor: Editor;
|
|
12788
|
-
hidePlaceholder?: boolean;
|
|
12789
|
-
isReadOnly?: boolean;
|
|
12790
|
-
}
|
|
12791
|
-
const ContentRichTextEditor: FC<IContentRichTextEditor>;
|
|
12792
|
-
export default ContentRichTextEditor;
|
|
12793
|
-
}
|
|
12794
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
|
|
12795
|
-
export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
|
|
12796
|
-
}
|
|
12797
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
|
|
12798
|
-
export const getTrimmedContent: (content: string) => string;
|
|
12799
|
-
export const getTrimmedFormattedContent: (formattedContent: string) => string;
|
|
12800
|
-
}
|
|
12801
|
-
declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
12802
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12803
|
-
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12804
|
-
export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
|
|
12805
|
-
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12806
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12807
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12808
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12809
|
-
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12810
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
|
|
12811
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
|
|
12812
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12813
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
|
|
12814
|
-
}
|
|
12815
12871
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils" {
|
|
12816
12872
|
import { Comment } from "libs/reach/util/common/src/index";
|
|
12817
12873
|
export enum TextStylingOptions {
|
|
@@ -12829,15 +12885,19 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12829
12885
|
export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
|
|
12830
12886
|
}
|
|
12831
12887
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditorFooter" {
|
|
12888
|
+
import { IGif } from '@giphy/js-types';
|
|
12889
|
+
import { Editor } from '@tiptap/react';
|
|
12832
12890
|
import { FC } from 'react';
|
|
12833
12891
|
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
|
|
12834
12892
|
interface ICommentEditorFooterProps {
|
|
12893
|
+
editor: Editor;
|
|
12835
12894
|
editorCharacterLimit: number;
|
|
12836
12895
|
getCharacterCount: () => number;
|
|
12837
12896
|
isCollapsed: boolean;
|
|
12838
12897
|
isSaving?: boolean;
|
|
12839
|
-
onSave: () => void;
|
|
12840
12898
|
onClickButton: (option: TextStylingOptions) => void;
|
|
12899
|
+
onGifClick: (gif: IGif) => void;
|
|
12900
|
+
onSave: () => void;
|
|
12841
12901
|
shouldShowTextFormatting: boolean;
|
|
12842
12902
|
showTextStylingOptions: TextStylingOptions;
|
|
12843
12903
|
}
|
|
@@ -12873,7 +12933,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12873
12933
|
export default CommentEditorMain;
|
|
12874
12934
|
}
|
|
12875
12935
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
|
|
12876
|
-
import { Comment } from "libs/reach/util/common/src/index";
|
|
12936
|
+
import { Attachment, Comment } from "libs/reach/util/common/src/index";
|
|
12877
12937
|
import { FC } from 'react';
|
|
12878
12938
|
interface ICommentEditorProps {
|
|
12879
12939
|
autofocus?: boolean;
|
|
@@ -12884,6 +12944,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12884
12944
|
onCancel: () => void;
|
|
12885
12945
|
onFocus?: () => void;
|
|
12886
12946
|
onSave: (newContent: {
|
|
12947
|
+
attachmentContainerId?: string;
|
|
12948
|
+
attachments?: Attachment[];
|
|
12887
12949
|
content?: string;
|
|
12888
12950
|
formattedContent?: string;
|
|
12889
12951
|
}, clearContent: () => void) => Promise<void>;
|
|
@@ -12894,10 +12956,10 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12894
12956
|
export default CommentEditor;
|
|
12895
12957
|
}
|
|
12896
12958
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-display/CommentDisplayContent" {
|
|
12959
|
+
import { Comment } from "libs/reach/util/common/src/index";
|
|
12897
12960
|
import { FC } from 'react';
|
|
12898
12961
|
interface ICommentContentProps {
|
|
12899
|
-
|
|
12900
|
-
formattedContent: string;
|
|
12962
|
+
comment: Comment;
|
|
12901
12963
|
}
|
|
12902
12964
|
const CommentContent: FC<ICommentContentProps>;
|
|
12903
12965
|
export default CommentContent;
|
|
@@ -12975,7 +13037,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12975
13037
|
export default CommentListItemReplies;
|
|
12976
13038
|
}
|
|
12977
13039
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
|
|
12978
|
-
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
13040
|
+
import { Attachment, Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
12979
13041
|
import { FC } from 'react';
|
|
12980
13042
|
import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12981
13043
|
interface ICommentListItemProps {
|
|
@@ -12987,6 +13049,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12987
13049
|
isSaving: boolean;
|
|
12988
13050
|
onCommentDeleted: (comment: Comment) => Promise<void>;
|
|
12989
13051
|
onCommentUpdated: (comment: Comment, newContent: {
|
|
13052
|
+
attachments?: Attachment[];
|
|
12990
13053
|
content?: string;
|
|
12991
13054
|
formattedContent?: string;
|
|
12992
13055
|
}) => Promise<void>;
|
|
@@ -13080,10 +13143,11 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/index" {
|
|
|
13080
13143
|
export * from "libs/reach/feature/content/src/reach-2/common/snippets/common/index";
|
|
13081
13144
|
}
|
|
13082
13145
|
declare module "libs/reach/feature/content/src/reach-2/common/index" {
|
|
13146
|
+
export * from "libs/reach/feature/content/src/reach-2/common/carousel/index";
|
|
13083
13147
|
export * from "libs/reach/feature/content/src/reach-2/common/detail/index";
|
|
13148
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
13084
13149
|
export * from "libs/reach/feature/content/src/reach-2/common/feedback/index";
|
|
13085
13150
|
export * from "libs/reach/feature/content/src/reach-2/common/snippets/index";
|
|
13086
|
-
export * from "libs/reach/feature/content/src/reach-2/common/editor/index";
|
|
13087
13151
|
}
|
|
13088
13152
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton" {
|
|
13089
13153
|
import { FC } from 'react';
|