@livetiles/reach-plugin-types 0.5.0-preview.892 → 0.5.0-preview.893

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 +80 -70
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -5324,6 +5324,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
5324
5324
  export { ReactComponent as ChevronLeftIcon } from './assets/chevronLeft.svg';
5325
5325
  export { ReactComponent as ChevronRightIcon } from './assets/chevronRight.svg';
5326
5326
  export { ReactComponent as CloseIcon } from './assets/close.svg';
5327
+ export { ReactComponent as CloseActiveIcon } from './assets/close-active.svg';
5327
5328
  export { ReactComponent as CollapseIcon } from './assets/collapse.svg';
5328
5329
  export { ReactComponent as CommentsActiveIcon } from './assets/comments-active.svg';
5329
5330
  export { ReactComponent as CommentsIcon } from './assets/comments.svg';
@@ -5410,18 +5411,70 @@ declare module "libs/reach/ui/common/src/reach-2/utils" {
5410
5411
  };
5411
5412
  export const getIsMobilePhone: () => boolean;
5412
5413
  }
5414
+ declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
5415
+ import { FC } from 'react';
5416
+ export const Skeleton: FC<{
5417
+ className?: string;
5418
+ }>;
5419
+ export const SkeletonInlineGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5420
+ gap?: number;
5421
+ }, never>;
5422
+ export const SkeletonBlockGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5423
+ marginTop?: number;
5424
+ }, never>;
5425
+ export const SkeletonAvatar: FC<{
5426
+ size?: number;
5427
+ }>;
5428
+ export const SkeletonLine: FC<{
5429
+ width?: number | string;
5430
+ height?: number;
5431
+ }>;
5432
+ export const Line: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5433
+ width?: string;
5434
+ height?: number;
5435
+ }, never>;
5436
+ }
5437
+ declare module "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator" {
5438
+ import { FC } from 'react';
5439
+ export const PageScrollIndicator: FC;
5440
+ }
5441
+ declare module "libs/reach/ui/common/src/reach-2/progress/SpinnerLoader" {
5442
+ import { FC } from 'react';
5443
+ export const SpinnerLoader: FC<{
5444
+ size?: number;
5445
+ className?: string;
5446
+ }>;
5447
+ export const PageSpinnerLoader: import("styled-components").StyledComponent<FC<{
5448
+ size?: number;
5449
+ className?: string;
5450
+ }>, import("styled-components").DefaultTheme, {
5451
+ size?: number;
5452
+ }, never>;
5453
+ }
5454
+ declare module "libs/reach/ui/common/src/reach-2/progress/ButtonLoading" {
5455
+ import { FC } from 'react';
5456
+ const ButtonLoading: FC;
5457
+ export default ButtonLoading;
5458
+ }
5459
+ declare module "libs/reach/ui/common/src/reach-2/progress/index" {
5460
+ export * from "libs/reach/ui/common/src/reach-2/progress/Skeleton";
5461
+ export * from "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator";
5462
+ export * from "libs/reach/ui/common/src/reach-2/progress/SpinnerLoader";
5463
+ export { default as ButtonLoading } from "libs/reach/ui/common/src/reach-2/progress/ButtonLoading";
5464
+ }
5413
5465
  declare module "libs/reach/ui/common/src/reach-2/buttons/BaseButton" {
5414
5466
  import { MouseEventHandler } from 'react';
5415
5467
  export type BaseButtonSizeType = 'Default' | 'Small';
5416
5468
  export interface BaseButtonProps {
5417
- size?: BaseButtonSizeType;
5418
- label?: string;
5469
+ className?: string;
5470
+ disabled?: boolean;
5471
+ domIdentifier?: string;
5419
5472
  icon?: JSX.Element;
5420
5473
  iconPosition?: 'left' | 'right';
5421
- disabled?: boolean;
5474
+ isLoading?: boolean;
5475
+ label?: string;
5422
5476
  onClick?: MouseEventHandler<HTMLButtonElement>;
5423
- domIdentifier?: string;
5424
- className?: string;
5477
+ size?: BaseButtonSizeType;
5425
5478
  }
5426
5479
  export const BaseButton: import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
5427
5480
  export const BaseButtonStyle: import("styled-components").FlattenSimpleInterpolation;
@@ -5533,13 +5586,13 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog" {
5533
5586
  close = 1
5534
5587
  }
5535
5588
  export interface BaseDialogProps {
5536
- triggerButton?: HTMLButtonElement | JSX.Element;
5589
+ className?: string;
5590
+ isBlocking?: boolean;
5537
5591
  isOpen?: boolean;
5592
+ onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => void;
5538
5593
  title?: string;
5594
+ triggerButton?: HTMLButtonElement | JSX.Element;
5539
5595
  type?: DialogType;
5540
- isBlocking?: boolean;
5541
- onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => void;
5542
- className?: string;
5543
5596
  }
5544
5597
  export const BaseDialog: FC<BaseDialogProps>;
5545
5598
  }
@@ -5547,14 +5600,15 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/Dialog" {
5547
5600
  import { FC, MouseEvent } from 'react';
5548
5601
  import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
5549
5602
  export interface DialogProps extends BaseDialogProps {
5550
- minwidth?: number;
5551
- maxwidth?: number;
5603
+ cancelButtonLabel?: string;
5604
+ disableSave?: boolean;
5605
+ dismissOnSave?: boolean;
5552
5606
  hideCancelButton?: boolean;
5607
+ isSaving?: boolean;
5608
+ maxwidth?: number;
5609
+ minwidth?: number;
5553
5610
  onSave?: (event?: MouseEvent<HTMLButtonElement>) => void;
5554
- disableSave?: boolean;
5555
5611
  saveButtonLabel?: string;
5556
- cancelButtonLabel?: string;
5557
- dismissOnSave?: boolean;
5558
5612
  }
5559
5613
  export const Dialog: FC<DialogProps>;
5560
5614
  }
@@ -5646,51 +5700,6 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
5646
5700
  export * from "libs/reach/ui/common/src/reach-2/surfaces/BasePopover";
5647
5701
  export { DialogType } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
5648
5702
  }
5649
- declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
5650
- import { FC } from 'react';
5651
- export const Skeleton: FC<{
5652
- className?: string;
5653
- }>;
5654
- export const SkeletonInlineGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5655
- gap?: number;
5656
- }, never>;
5657
- export const SkeletonBlockGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5658
- marginTop?: number;
5659
- }, never>;
5660
- export const SkeletonAvatar: FC<{
5661
- size?: number;
5662
- }>;
5663
- export const SkeletonLine: FC<{
5664
- width?: number | string;
5665
- height?: number;
5666
- }>;
5667
- export const Line: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5668
- width?: string;
5669
- height?: number;
5670
- }, never>;
5671
- }
5672
- declare module "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator" {
5673
- import { FC } from 'react';
5674
- export const PageScrollIndicator: FC;
5675
- }
5676
- declare module "libs/reach/ui/common/src/reach-2/progress/SpinnerLoader" {
5677
- import { FC } from 'react';
5678
- export const SpinnerLoader: FC<{
5679
- size?: number;
5680
- className?: string;
5681
- }>;
5682
- export const PageSpinnerLoader: import("styled-components").StyledComponent<FC<{
5683
- size?: number;
5684
- className?: string;
5685
- }>, import("styled-components").DefaultTheme, {
5686
- size?: number;
5687
- }, never>;
5688
- }
5689
- declare module "libs/reach/ui/common/src/reach-2/progress/index" {
5690
- export * from "libs/reach/ui/common/src/reach-2/progress/Skeleton";
5691
- export * from "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator";
5692
- export * from "libs/reach/ui/common/src/reach-2/progress/SpinnerLoader";
5693
- }
5694
5703
  declare module "libs/reach/ui/common/src/reach-2/DateTimeDisplay" {
5695
5704
  import { FC } from 'react';
5696
5705
  interface Props {
@@ -10771,30 +10780,31 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRic
10771
10780
  import { FocusPosition, Editor as IEditor } from '@tiptap/core';
10772
10781
  import { Editor } from '@tiptap/react';
10773
10782
  export const editorCharacterLimit = 1000;
10774
- interface EnhancedRichTextEditorContent {
10775
- formattedContent?: string;
10783
+ export interface EnhancedRichTextEditorContent {
10776
10784
  content?: string;
10785
+ formattedContent?: string;
10777
10786
  }
10778
10787
  export interface EnhancedRichTextEditorContentRef {
10779
10788
  getContent: () => EnhancedRichTextEditorContent;
10780
10789
  getContentRef: () => React.MutableRefObject<HTMLDivElement>;
10781
10790
  }
10782
10791
  interface EnhancedRichTextEditorProps {
10792
+ autofocus?: FocusPosition;
10793
+ characterLimit?: number;
10794
+ className?: string;
10795
+ footer?: (editor: Editor, clearContent: () => void, content: EnhancedRichTextEditorContent, getCharacterCount: () => number, recoverContent: (content: EnhancedRichTextEditorContent) => void) => JSX.Element;
10796
+ header?: (clearContent: () => void) => JSX.Element;
10783
10797
  initialContent: string;
10784
10798
  isReadOnly?: boolean;
10785
- header?: (clearContent: () => void) => JSX.Element;
10786
10799
  main: (editor: Editor) => JSX.Element;
10787
- footer?: (content: EnhancedRichTextEditorContent, editor: Editor, clearContent: () => void, recoverContent: (content: EnhancedRichTextEditorContent) => void, getCharacterCount: () => number) => JSX.Element;
10788
- placeholder?: string;
10800
+ mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
10789
10801
  onCreate?: (editor: IEditor) => void;
10790
10802
  onFocus?: (editor: IEditor) => void;
10791
- autofocus?: FocusPosition;
10792
- mentionSearchHandler?: (searchText: string) => Promise<Account[]>;
10793
- className?: string;
10794
- characterLimit?: number;
10795
- shortcuts?: string[];
10796
10803
  onShortcut?: (editor: IEditor, shortcut: string) => void;
10804
+ onUpdate?: (content: EnhancedRichTextEditorContent) => void;
10797
10805
  onTransaction?: (editor: IEditor) => void;
10806
+ placeholder?: string;
10807
+ shortcuts?: string[];
10798
10808
  useHardBreak?: boolean;
10799
10809
  }
10800
10810
  const _default: import("react").ForwardRefExoticComponent<EnhancedRichTextEditorProps & import("react").RefAttributes<EnhancedRichTextEditorContentRef>>;
@@ -11368,8 +11378,8 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/pu
11368
11378
  export default Footer;
11369
11379
  }
11370
11380
  declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/header/DeletePublicationModal" {
11371
- import { FC } from 'react';
11372
11381
  import { PostStreamItem } from "libs/reach/feature/content/src/index";
11382
+ import { FC } from 'react';
11373
11383
  interface AddMediaModalProps {
11374
11384
  isOpen?: boolean;
11375
11385
  item: PostStreamItem;
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.892",
7
+ "version": "0.5.0-preview.893",
8
8
  "dependencies": {}
9
9
  }