@livetiles/reach-plugin-types 0.5.0-preview.1153 → 0.5.0-preview.1155
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 +60 -39
- 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';
|
|
@@ -7051,22 +7051,22 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
7051
7051
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
7052
7052
|
}
|
|
7053
7053
|
declare module "libs/reach/ui/common/src/index" {
|
|
7054
|
-
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";
|
|
7055
7056
|
export * from "libs/reach/ui/common/src/content-keyword-utils";
|
|
7056
7057
|
export * from "libs/reach/ui/common/src/EditorHighlight";
|
|
7057
7058
|
export * from "libs/reach/ui/common/src/EditorSettingsDialog";
|
|
7059
|
+
export * from "libs/reach/ui/common/src/error/PageAlert";
|
|
7058
7060
|
export * from "libs/reach/ui/common/src/GutterToggle";
|
|
7059
7061
|
export * from "libs/reach/ui/common/src/HighlightBubble";
|
|
7060
7062
|
export * from "libs/reach/ui/common/src/IconButton";
|
|
7063
|
+
export * from "libs/reach/ui/common/src/LegacyDialog";
|
|
7061
7064
|
export * from "libs/reach/ui/common/src/Link";
|
|
7062
7065
|
export * from "libs/reach/ui/common/src/NotificationBar";
|
|
7063
7066
|
export * from "libs/reach/ui/common/src/PeoplePicker";
|
|
7064
|
-
export * from "libs/reach/ui/common/src/Tooltip";
|
|
7065
|
-
export * from "libs/reach/ui/common/src/common/index";
|
|
7066
|
-
export * from "libs/reach/ui/common/src/error/PageAlert";
|
|
7067
7067
|
export * from "libs/reach/ui/common/src/plugins/registerCorePackages";
|
|
7068
|
-
export * from "libs/reach/ui/common/src/ColorEditor";
|
|
7069
7068
|
export * from "libs/reach/ui/common/src/reach-2/index";
|
|
7069
|
+
export * from "libs/reach/ui/common/src/Tooltip";
|
|
7070
7070
|
}
|
|
7071
7071
|
declare module "libs/reach/feature/content/src/forms/videos/VideoUrlParser" {
|
|
7072
7072
|
import { FeatureSet, VideoSource } from "libs/reach/util/common/src/index";
|
|
@@ -12068,11 +12068,13 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRich
|
|
|
12068
12068
|
maxHeight?: number;
|
|
12069
12069
|
minHeight?: number;
|
|
12070
12070
|
}
|
|
12071
|
-
|
|
12071
|
+
interface ICommentRichTextEditorProps {
|
|
12072
12072
|
className?: string;
|
|
12073
12073
|
editor: Editor;
|
|
12074
|
+
isReadOnly?: boolean;
|
|
12074
12075
|
styles?: CommentRichTextEditorStyles;
|
|
12075
|
-
}
|
|
12076
|
+
}
|
|
12077
|
+
const CommentRichTextEditor: FC<ICommentRichTextEditorProps>;
|
|
12076
12078
|
export default CommentRichTextEditor;
|
|
12077
12079
|
}
|
|
12078
12080
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/common/SuggestionsPopover" {
|
|
@@ -12652,6 +12654,17 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/Ment
|
|
|
12652
12654
|
const MentionsButton: FC<IMentionsButtonProps>;
|
|
12653
12655
|
export default MentionsButton;
|
|
12654
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
|
+
}
|
|
12655
12668
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
|
|
12656
12669
|
import { Editor } from '@tiptap/react';
|
|
12657
12670
|
import { FC } from 'react';
|
|
@@ -12676,6 +12689,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
|
12676
12689
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12677
12690
|
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12678
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";
|
|
12679
12693
|
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12680
12694
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12681
12695
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
@@ -12871,15 +12885,19 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12871
12885
|
export const ExpandCollapseEffect: (isCollapsed: boolean, maxHeight: number) => import("styled-components").FlattenSimpleInterpolation;
|
|
12872
12886
|
}
|
|
12873
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';
|
|
12874
12890
|
import { FC } from 'react';
|
|
12875
12891
|
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/utils";
|
|
12876
12892
|
interface ICommentEditorFooterProps {
|
|
12893
|
+
editor: Editor;
|
|
12877
12894
|
editorCharacterLimit: number;
|
|
12878
12895
|
getCharacterCount: () => number;
|
|
12879
12896
|
isCollapsed: boolean;
|
|
12880
12897
|
isSaving?: boolean;
|
|
12881
|
-
onSave: () => void;
|
|
12882
12898
|
onClickButton: (option: TextStylingOptions) => void;
|
|
12899
|
+
onGifClick: (gif: IGif) => void;
|
|
12900
|
+
onSave: () => void;
|
|
12883
12901
|
shouldShowTextFormatting: boolean;
|
|
12884
12902
|
showTextStylingOptions: TextStylingOptions;
|
|
12885
12903
|
}
|
|
@@ -12915,7 +12933,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12915
12933
|
export default CommentEditorMain;
|
|
12916
12934
|
}
|
|
12917
12935
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
|
|
12918
|
-
import { Comment } from "libs/reach/util/common/src/index";
|
|
12936
|
+
import { Attachment, Comment } from "libs/reach/util/common/src/index";
|
|
12919
12937
|
import { FC } from 'react';
|
|
12920
12938
|
interface ICommentEditorProps {
|
|
12921
12939
|
autofocus?: boolean;
|
|
@@ -12926,6 +12944,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12926
12944
|
onCancel: () => void;
|
|
12927
12945
|
onFocus?: () => void;
|
|
12928
12946
|
onSave: (newContent: {
|
|
12947
|
+
attachmentContainerId?: string;
|
|
12948
|
+
attachments?: Attachment[];
|
|
12929
12949
|
content?: string;
|
|
12930
12950
|
formattedContent?: string;
|
|
12931
12951
|
}, clearContent: () => void) => Promise<void>;
|
|
@@ -12936,10 +12956,10 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
12936
12956
|
export default CommentEditor;
|
|
12937
12957
|
}
|
|
12938
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";
|
|
12939
12960
|
import { FC } from 'react';
|
|
12940
12961
|
interface ICommentContentProps {
|
|
12941
|
-
|
|
12942
|
-
formattedContent: string;
|
|
12962
|
+
comment: Comment;
|
|
12943
12963
|
}
|
|
12944
12964
|
const CommentContent: FC<ICommentContentProps>;
|
|
12945
12965
|
export default CommentContent;
|
|
@@ -13017,7 +13037,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
13017
13037
|
export default CommentListItemReplies;
|
|
13018
13038
|
}
|
|
13019
13039
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentListItem" {
|
|
13020
|
-
import { Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
13040
|
+
import { Attachment, Comment, PaginatedList } from "libs/reach/util/common/src/index";
|
|
13021
13041
|
import { FC } from 'react';
|
|
13022
13042
|
import { CommentWithReplies } from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
13023
13043
|
interface ICommentListItemProps {
|
|
@@ -13029,6 +13049,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
|
|
|
13029
13049
|
isSaving: boolean;
|
|
13030
13050
|
onCommentDeleted: (comment: Comment) => Promise<void>;
|
|
13031
13051
|
onCommentUpdated: (comment: Comment, newContent: {
|
|
13052
|
+
attachments?: Attachment[];
|
|
13032
13053
|
content?: string;
|
|
13033
13054
|
formattedContent?: string;
|
|
13034
13055
|
}) => Promise<void>;
|