@livetiles/reach-plugin-types 0.5.0-preview.675 → 0.5.0-preview.678
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 +53 -8
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5515,6 +5515,35 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/index" {
|
|
|
5515
5515
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal";
|
|
5516
5516
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog";
|
|
5517
5517
|
}
|
|
5518
|
+
declare module "libs/reach/ui/common/src/reach-2/progress/Skeleton" {
|
|
5519
|
+
import { FC } from 'react';
|
|
5520
|
+
export const Skeleton: FC<{
|
|
5521
|
+
className?: string;
|
|
5522
|
+
}>;
|
|
5523
|
+
export const SkeletonInlineGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5524
|
+
export const SkeletonBlockGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5525
|
+
marginTop?: number;
|
|
5526
|
+
}, never>;
|
|
5527
|
+
export const SkeletonAvatar: FC<{
|
|
5528
|
+
size?: number;
|
|
5529
|
+
}>;
|
|
5530
|
+
export const SkeletonLine: FC<{
|
|
5531
|
+
width?: number | string;
|
|
5532
|
+
height?: number;
|
|
5533
|
+
}>;
|
|
5534
|
+
export const Line: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5535
|
+
width?: string;
|
|
5536
|
+
height?: number;
|
|
5537
|
+
}, never>;
|
|
5538
|
+
}
|
|
5539
|
+
declare module "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator" {
|
|
5540
|
+
import { FC } from 'react';
|
|
5541
|
+
export const PageScrollIndicator: FC;
|
|
5542
|
+
}
|
|
5543
|
+
declare module "libs/reach/ui/common/src/reach-2/progress/index" {
|
|
5544
|
+
export * from "libs/reach/ui/common/src/reach-2/progress/Skeleton";
|
|
5545
|
+
export * from "libs/reach/ui/common/src/reach-2/progress/PageScrollIndicator";
|
|
5546
|
+
}
|
|
5518
5547
|
declare module "libs/reach/ui/common/src/reach-2/DateTimeDisplay" {
|
|
5519
5548
|
import { FC } from 'react';
|
|
5520
5549
|
interface Props {
|
|
@@ -5532,6 +5561,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
5532
5561
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
5533
5562
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
5534
5563
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
|
|
5564
|
+
export * from "libs/reach/ui/common/src/reach-2/progress/index";
|
|
5535
5565
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|
|
5536
5566
|
}
|
|
5537
5567
|
declare module "libs/reach/ui/common/src/index" {
|
|
@@ -6846,7 +6876,7 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
|
|
|
6846
6876
|
}
|
|
6847
6877
|
declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
6848
6878
|
import { FC } from 'react';
|
|
6849
|
-
import { DraftBlockType } from 'draft-js';
|
|
6879
|
+
import { DraftBlockType, EditorState } from 'draft-js';
|
|
6850
6880
|
import 'draft-js/dist/Draft.css';
|
|
6851
6881
|
export enum EntityType {
|
|
6852
6882
|
Video = "video",
|
|
@@ -6871,6 +6901,7 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
6871
6901
|
export const TextViewer: FC<{
|
|
6872
6902
|
html: string;
|
|
6873
6903
|
componentMappers: HtmlComponentMapper[];
|
|
6904
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
6874
6905
|
}>;
|
|
6875
6906
|
export function createHtmlToBlockConverter(componentMappers: HtmlComponentMapper[]): (nodeName: string, node: HTMLElement) => DraftBlockType | {
|
|
6876
6907
|
type: DraftBlockType;
|
|
@@ -6898,6 +6929,8 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
|
|
|
6898
6929
|
isEditorPreview?: boolean;
|
|
6899
6930
|
isMobilePreview?: boolean;
|
|
6900
6931
|
setIsMobilePreview?: Dispatch<SetStateAction<boolean>>;
|
|
6932
|
+
contentBodyRaw?: string;
|
|
6933
|
+
setContentBodyRaw: (newContentBodyRaw?: string) => void;
|
|
6901
6934
|
}
|
|
6902
6935
|
export function useDetailViewContext<TItem extends PublishableItem = PublishableItem>(): DetailViewContextType<TItem>;
|
|
6903
6936
|
}
|
|
@@ -8004,6 +8037,13 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
8004
8037
|
}
|
|
8005
8038
|
export const EventItemTile: FC<Props>;
|
|
8006
8039
|
}
|
|
8040
|
+
declare module "libs/reach/feature/content/src/news/useTranslateApi" {
|
|
8041
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8042
|
+
import { PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
8043
|
+
export function useTranslateApi(): {
|
|
8044
|
+
translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
|
|
8045
|
+
};
|
|
8046
|
+
}
|
|
8007
8047
|
declare module "libs/reach/feature/content/src/common/detail/DetailViewContextProvider" {
|
|
8008
8048
|
import { FC } from 'react';
|
|
8009
8049
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -8731,13 +8771,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
|
|
|
8731
8771
|
activeChannel?: string;
|
|
8732
8772
|
}>;
|
|
8733
8773
|
}
|
|
8734
|
-
declare module "libs/reach/feature/content/src/news/useTranslateApi" {
|
|
8735
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8736
|
-
import { PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
8737
|
-
export function useTranslateApi(): {
|
|
8738
|
-
translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
|
|
8739
|
-
};
|
|
8740
|
-
}
|
|
8741
8774
|
declare module "libs/reach/feature/content/src/news/index" {
|
|
8742
8775
|
export * from "libs/reach/feature/content/src/news/DateInfo";
|
|
8743
8776
|
export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
|
|
@@ -9050,8 +9083,10 @@ declare module "libs/reach/feature/content/src/common/detail/news/controls/NewsD
|
|
|
9050
9083
|
}
|
|
9051
9084
|
declare module "libs/reach/feature/content/src/common/body/RichTextViewer" {
|
|
9052
9085
|
import { FC } from 'react';
|
|
9086
|
+
import { EditorState } from 'draft-js';
|
|
9053
9087
|
export const RichTextViewer: FC<{
|
|
9054
9088
|
html: string;
|
|
9089
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
9055
9090
|
}>;
|
|
9056
9091
|
}
|
|
9057
9092
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBody" {
|
|
@@ -10753,6 +10788,13 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentListItem"
|
|
|
10753
10788
|
onEdit?: (isEditMode?: boolean) => void;
|
|
10754
10789
|
}>;
|
|
10755
10790
|
}
|
|
10791
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/CommentSkeletonListItem" {
|
|
10792
|
+
import { FC } from 'react';
|
|
10793
|
+
export const CommentSkeletonListItem: FC;
|
|
10794
|
+
export const StyledSkeleton: import("styled-components").StyledComponent<FC<{
|
|
10795
|
+
className?: string;
|
|
10796
|
+
}>, import("styled-components").DefaultTheme, {}, never>;
|
|
10797
|
+
}
|
|
10756
10798
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
10757
10799
|
import { FC } from 'react';
|
|
10758
10800
|
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
@@ -10763,6 +10805,9 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
10763
10805
|
itemId: string;
|
|
10764
10806
|
}>;
|
|
10765
10807
|
}
|
|
10808
|
+
declare module "libs/reach/feature/content/src/reach-2/common/detail/useReadTimeCalculator" {
|
|
10809
|
+
export function useReadTimeCalculator(bodyText: string, ...additionalText: string[]): string;
|
|
10810
|
+
}
|
|
10766
10811
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/header/HeaderMetadata" {
|
|
10767
10812
|
import { FC } from 'react';
|
|
10768
10813
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|