@livetiles/reach-plugin-types 0.5.0-preview.1171 → 0.5.0-preview.1172

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +150 -109
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6226,6 +6226,8 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6226
6226
  export { ReactComponent as LeftArrowIcon } from './assets/leftArrow.svg';
6227
6227
  export { ReactComponent as LikeActiveIcon } from './assets/like-active.svg';
6228
6228
  export { ReactComponent as LikeIcon } from './assets/like.svg';
6229
+ export { ReactComponent as LinkActiveIcon } from './assets/link-active.svg';
6230
+ export { ReactComponent as LinkIcon } from './assets/link.svg';
6229
6231
  export { ReactComponent as Loading } from './assets/loading.svg';
6230
6232
  export { ReactComponent as LocationIcon } from './assets/location.svg';
6231
6233
  export { ReactComponent as MailIcon } from './assets/mail.svg';
@@ -6734,12 +6736,14 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
6734
6736
  align?: BasePopoverAlignType;
6735
6737
  alignOffset?: number;
6736
6738
  anchor?: JSX.Element;
6739
+ anchorRef?: React.RefObject<HTMLElement>;
6737
6740
  className?: string;
6738
6741
  collisionPadding?: PopoverContentProps['collisionPadding'];
6739
6742
  isOpen?: boolean;
6740
6743
  onCloseAutoFocus?: (event: Event) => void;
6741
6744
  onOpenAutoFocus?: (event: Event) => void;
6742
6745
  onOpenChange?: (open: boolean) => void;
6746
+ showArrow?: boolean;
6743
6747
  side?: BasePopoverSideType;
6744
6748
  sideOffset?: number;
6745
6749
  trigger?: JSX.Element;
@@ -12099,6 +12103,86 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRich
12099
12103
  const CommentRichTextEditor: FC<ICommentRichTextEditorProps>;
12100
12104
  export default CommentRichTextEditor;
12101
12105
  }
12106
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions" {
12107
+ import { MarkType } from '@tiptap/pm/model';
12108
+ import { Editor } from '@tiptap/react';
12109
+ const useEditorActions: (editor: Editor) => {
12110
+ clearFormatting: () => void;
12111
+ createHeading: (level: number, placeholder: string, isNodeChange: boolean) => void;
12112
+ createList: (type: 'bulletList' | 'orderedList', placeholder: string, isNodeChange: boolean) => void;
12113
+ getActiveNodeType: () => string;
12114
+ getSelectionAttrs: (nodeType?: string) => Record<string, any>;
12115
+ getSelectionText: () => string;
12116
+ selectActiveNodeText: (markType: MarkType) => void;
12117
+ };
12118
+ export default useEditorActions;
12119
+ }
12120
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/BubbleMenuContext" {
12121
+ import { FC } from 'react';
12122
+ export const BubbleMenuContextProvider: FC;
12123
+ export const useBubbleMenuContext: () => {
12124
+ handleHideLinkEditor: () => void;
12125
+ handleShowLinkEditor: () => void;
12126
+ showBubbleMenu: boolean;
12127
+ showLinkEditor: boolean;
12128
+ toggleShowBubbleMenu: () => void;
12129
+ };
12130
+ }
12131
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/FormatActions" {
12132
+ import { BasePopoverAlignType } from "libs/reach/ui/common/src/index";
12133
+ import { Editor } from '@tiptap/react';
12134
+ import { FC } from 'react';
12135
+ interface IFormatActionsProps {
12136
+ className?: string;
12137
+ editor: Editor;
12138
+ isInsideBubbleMenu?: boolean;
12139
+ onAddLinkClick?: () => void;
12140
+ popoverAlign?: BasePopoverAlignType;
12141
+ showNodeSelect?: boolean;
12142
+ }
12143
+ const FormatActions: FC<IFormatActionsProps>;
12144
+ export default FormatActions;
12145
+ }
12146
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
12147
+ export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
12148
+ }
12149
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/LinkEditor" {
12150
+ import { Editor } from '@tiptap/react';
12151
+ import { FC } from 'react';
12152
+ interface ILinkEditorProps {
12153
+ className?: string;
12154
+ editor: Editor;
12155
+ onDismiss(): void;
12156
+ }
12157
+ const LinkEditor: FC<ILinkEditorProps>;
12158
+ export default LinkEditor;
12159
+ }
12160
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/FormatBubbleMenu" {
12161
+ import { Editor } from '@tiptap/react';
12162
+ import { FC } from 'react';
12163
+ interface IFormatBubbleMenuProps {
12164
+ editor: Editor;
12165
+ showNodeSelect?: boolean;
12166
+ }
12167
+ const FormatBubbleMenu: FC<IFormatBubbleMenuProps>;
12168
+ export default FormatBubbleMenu;
12169
+ }
12170
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/format/index" {
12171
+ export { default as FormatActions } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatActions";
12172
+ export { default as FormatBubbleMenu } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatBubbleMenu";
12173
+ export { BubbleMenuContextProvider, useBubbleMenuContext, } from "libs/reach/feature/content/src/reach-2/common/editor/format/BubbleMenuContext";
12174
+ }
12175
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/LinkEditorPopover" {
12176
+ import { Editor } from '@tiptap/react';
12177
+ import { FC } from 'react';
12178
+ interface LinkEditorPopoverProps {
12179
+ anchorRef?: React.RefObject<HTMLAnchorElement>;
12180
+ editor: Editor;
12181
+ onDismiss: () => void;
12182
+ }
12183
+ const LinkEditorPopover: FC<LinkEditorPopoverProps>;
12184
+ export default LinkEditorPopover;
12185
+ }
12102
12186
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/SuggestionsPopover" {
12103
12187
  interface MentionsWithSuggestionsPopoverProps {
12104
12188
  dialogPosition?: Partial<DOMRect> | null;
@@ -12116,6 +12200,14 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
12116
12200
  const EmojiExtension: Extension<any, any>;
12117
12201
  export default EmojiExtension;
12118
12202
  }
12203
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/LinkExtension" {
12204
+ import { Extension } from '@tiptap/react';
12205
+ interface ILinkExtensionProps {
12206
+ onLinkClick: (anchorEl: HTMLAnchorElement) => void;
12207
+ }
12208
+ const LinkExtension: ({ onLinkClick }: ILinkExtensionProps) => Extension<any, any>;
12209
+ export default LinkExtension;
12210
+ }
12119
12211
  declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionSuggestions" {
12120
12212
  import { FC } from 'react';
12121
12213
  import { Account } from "libs/reach/util/common/src/index";
@@ -12152,56 +12244,10 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/
12152
12244
  declare module "libs/reach/feature/content/src/reach-2/common/editor/extensions/index" {
12153
12245
  export { default as AttributesExtension } from "libs/reach/feature/content/src/reach-2/common/editor/extensions/AttributesExtension";
12154
12246
  export { default as EmojiExtension } from "libs/reach/feature/content/src/reach-2/common/editor/extensions/EmojiExtension";
12247
+ export { default as LinkExtension } from "libs/reach/feature/content/src/reach-2/common/editor/extensions/LinkExtension";
12155
12248
  export { default as MentionExtension } from "libs/reach/feature/content/src/reach-2/common/editor/extensions/MentionExtension";
12156
12249
  export { default as ShortcutExtension } from "libs/reach/feature/content/src/reach-2/common/editor/extensions/ShortcutExtension";
12157
12250
  }
12158
- declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions" {
12159
- import { Editor } from '@tiptap/react';
12160
- const useEditorActions: (editor: Editor) => {
12161
- clearFormatting: () => void;
12162
- createHeading: (level: number, placeholder: string, isNodeChange: boolean) => void;
12163
- createList: (type: 'bulletList' | 'orderedList', placeholder: string, isNodeChange: boolean) => void;
12164
- getActiveNodeType: () => string;
12165
- };
12166
- export default useEditorActions;
12167
- }
12168
- declare module "libs/reach/feature/content/src/reach-2/common/editor/format/FormatActions" {
12169
- import { BasePopoverAlignType } from "libs/reach/ui/common/src/index";
12170
- import { Editor } from '@tiptap/react';
12171
- import { FC } from 'react';
12172
- interface IFormatActionsProps {
12173
- className?: string;
12174
- editor: Editor;
12175
- popoverAlign?: BasePopoverAlignType;
12176
- showNodeSelect?: boolean;
12177
- }
12178
- const FormatActions: FC<IFormatActionsProps>;
12179
- export default FormatActions;
12180
- }
12181
- declare module "libs/reach/feature/content/src/reach-2/common/editor/format/FormatBubbleMenu" {
12182
- import { Editor } from '@tiptap/react';
12183
- import { FC } from 'react';
12184
- interface IFormatBubbleMenuProps {
12185
- canOpen: boolean;
12186
- editor: Editor;
12187
- showNodeSelect?: boolean;
12188
- }
12189
- const FormatBubbleMenu: FC<IFormatBubbleMenuProps>;
12190
- export default FormatBubbleMenu;
12191
- }
12192
- declare module "libs/reach/feature/content/src/reach-2/common/editor/format/FormatContext" {
12193
- import { FC } from 'react';
12194
- export const FormatContextProvider: FC;
12195
- export const useFormatContext: () => {
12196
- showFormat: boolean;
12197
- toggleShowFormat: () => void;
12198
- };
12199
- }
12200
- declare module "libs/reach/feature/content/src/reach-2/common/editor/format/index" {
12201
- export { default as FormatActions } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatActions";
12202
- export { default as FormatBubbleMenu } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatBubbleMenu";
12203
- export { FormatContextProvider, useFormatContext } from "libs/reach/feature/content/src/reach-2/common/editor/format/FormatContext";
12204
- }
12205
12251
  declare module "libs/reach/feature/content/src/reach-2/common/editor/types" {
12206
12252
  import { ICarouselImageProps } from "libs/reach/ui/common/src/index";
12207
12253
  import { StreamAttachment } from "libs/reach/feature/content/src/stream/index";
@@ -12335,6 +12381,63 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentEditorOve
12335
12381
  className?: string;
12336
12382
  }>;
12337
12383
  }
12384
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
12385
+ import { Account } from "libs/reach/util/common/src/index";
12386
+ import { Editor } from '@tiptap/react';
12387
+ import { FC } from 'react';
12388
+ interface IMentionsButtonProps {
12389
+ editor: Editor;
12390
+ getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
12391
+ setShowMentions: (value: boolean) => void;
12392
+ shouldCenterPopover: boolean;
12393
+ showMentions: boolean;
12394
+ }
12395
+ const MentionsButton: FC<IMentionsButtonProps>;
12396
+ export default MentionsButton;
12397
+ }
12398
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover" {
12399
+ import { IGif } from '@giphy/js-types';
12400
+ import { Editor } from '@tiptap/react';
12401
+ import { FC } from 'react';
12402
+ const AddGifPopover: FC<{
12403
+ className?: string;
12404
+ editor: Editor;
12405
+ onGifClick: (gif: IGif) => void;
12406
+ }>;
12407
+ export default AddGifPopover;
12408
+ }
12409
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
12410
+ import { Editor } from '@tiptap/react';
12411
+ import { FC } from 'react';
12412
+ interface IContentRichTextEditor {
12413
+ className?: string;
12414
+ dialogPosition?: Partial<DOMRect> | null;
12415
+ editor: Editor;
12416
+ hidePlaceholder?: boolean;
12417
+ isReadOnly?: boolean;
12418
+ }
12419
+ const ContentRichTextEditor: FC<IContentRichTextEditor>;
12420
+ export default ContentRichTextEditor;
12421
+ }
12422
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
12423
+ export const getTrimmedContent: (content: string) => string;
12424
+ export const getTrimmedFormattedContent: (formattedContent: string) => string;
12425
+ }
12426
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
12427
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
12428
+ export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
12429
+ export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
12430
+ export { default as AddGifPopover } from "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover";
12431
+ export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
12432
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
12433
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
12434
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
12435
+ export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
12436
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
12437
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
12438
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
12439
+ export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
12440
+ }
12338
12441
  declare module "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar" {
12339
12442
  import { Editor } from '@tiptap/react';
12340
12443
  import { FC } from 'react';
@@ -12662,66 +12765,6 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
12662
12765
  itemId: string;
12663
12766
  }>;
12664
12767
  }
12665
- declare module "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton" {
12666
- import { Account } from "libs/reach/util/common/src/index";
12667
- import { Editor } from '@tiptap/react';
12668
- import { FC } from 'react';
12669
- interface IMentionsButtonProps {
12670
- editor: Editor;
12671
- getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
12672
- setShowMentions: (value: boolean) => void;
12673
- shouldCenterPopover: boolean;
12674
- showMentions: boolean;
12675
- }
12676
- const MentionsButton: FC<IMentionsButtonProps>;
12677
- export default MentionsButton;
12678
- }
12679
- declare module "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover" {
12680
- import { IGif } from '@giphy/js-types';
12681
- import { Editor } from '@tiptap/react';
12682
- import { FC } from 'react';
12683
- const AddGifPopover: FC<{
12684
- className?: string;
12685
- editor: Editor;
12686
- onGifClick: (gif: IGif) => void;
12687
- }>;
12688
- export default AddGifPopover;
12689
- }
12690
- declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
12691
- import { Editor } from '@tiptap/react';
12692
- import { FC } from 'react';
12693
- interface IContentRichTextEditor {
12694
- className?: string;
12695
- dialogPosition?: Partial<DOMRect> | null;
12696
- editor: Editor;
12697
- hidePlaceholder?: boolean;
12698
- isReadOnly?: boolean;
12699
- }
12700
- const ContentRichTextEditor: FC<IContentRichTextEditor>;
12701
- export default ContentRichTextEditor;
12702
- }
12703
- declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/index" {
12704
- export { default as useEditorActions } from "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEditorActions";
12705
- }
12706
- declare module "libs/reach/feature/content/src/reach-2/common/editor/utils" {
12707
- export const getTrimmedContent: (content: string) => string;
12708
- export const getTrimmedFormattedContent: (formattedContent: string) => string;
12709
- }
12710
- declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
12711
- export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
12712
- export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
12713
- export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
12714
- export { default as AddGifPopover } from "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover";
12715
- export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
12716
- export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
12717
- export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
12718
- export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
12719
- export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
12720
- export * from "libs/reach/feature/content/src/reach-2/common/editor/format/index";
12721
- export * from "libs/reach/feature/content/src/reach-2/common/editor/hooks/index";
12722
- export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
12723
- export * from "libs/reach/feature/content/src/reach-2/common/editor/utils";
12724
- }
12725
12768
  declare module "libs/reach/feature/content/src/reach-2/common/carousel/CarouselModal" {
12726
12769
  import { FC } from 'react';
12727
12770
  import { IEditorImage } from "libs/reach/feature/content/src/reach-2/common/editor/index";
@@ -12920,7 +12963,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12920
12963
  onClickButton: (option: TextStylingOptions) => void;
12921
12964
  onGifClick: (gif: IGif) => void;
12922
12965
  onSave: () => void;
12923
- shouldShowTextFormatting: boolean;
12924
12966
  showTextStylingOptions: TextStylingOptions;
12925
12967
  }
12926
12968
  const CommentEditorFooter: FC<ICommentEditorFooterProps>;
@@ -12948,7 +12990,6 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
12948
12990
  onFocus?: () => void;
12949
12991
  setShowTextStylingOptions: (option: TextStylingOptions) => void;
12950
12992
  shouldShowOverlay: boolean;
12951
- shouldShowTextFormatting: boolean;
12952
12993
  showTextStylingOptions: TextStylingOptions;
12953
12994
  }
12954
12995
  const CommentEditorMain: FC<ICommentEditorMainProps>;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1171",
7
+ "version": "0.5.0-preview.1172",
8
8
  "dependencies": {}
9
9
  }