@livetiles/reach-plugin-types 0.5.0-preview.674 → 0.5.0-preview.676
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 +18 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3376,10 +3376,11 @@ declare module "libs/reach/util/common/src/PagingService" {
|
|
|
3376
3376
|
availableScrollSpace: number;
|
|
3377
3377
|
containerWidth: number;
|
|
3378
3378
|
containerHeight: number;
|
|
3379
|
+
scrollHeight: number;
|
|
3379
3380
|
}
|
|
3380
3381
|
export const onPageScroll: Observable<ScrollHandlerInfo>;
|
|
3381
3382
|
export const onPageScrollWithoutDebounce: Observable<ScrollHandlerInfo>;
|
|
3382
|
-
export function handlePageScroll(availableScrollSpace: number, containerWidth: number, containerHeight: number): void;
|
|
3383
|
+
export function handlePageScroll(availableScrollSpace: number, containerWidth: number, containerHeight: number, scrollHeight: number): void;
|
|
3383
3384
|
export function setPageTitle(subscriptionName: string, title?: string): void;
|
|
3384
3385
|
export function usePageScrollListener(onScroll: (info: ScrollHandlerInfo) => void, doNotDebounce?: boolean): void;
|
|
3385
3386
|
}
|
|
@@ -6845,7 +6846,7 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
|
|
|
6845
6846
|
}
|
|
6846
6847
|
declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
6847
6848
|
import { FC } from 'react';
|
|
6848
|
-
import { DraftBlockType } from 'draft-js';
|
|
6849
|
+
import { DraftBlockType, EditorState } from 'draft-js';
|
|
6849
6850
|
import 'draft-js/dist/Draft.css';
|
|
6850
6851
|
export enum EntityType {
|
|
6851
6852
|
Video = "video",
|
|
@@ -6870,6 +6871,7 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
6870
6871
|
export const TextViewer: FC<{
|
|
6871
6872
|
html: string;
|
|
6872
6873
|
componentMappers: HtmlComponentMapper[];
|
|
6874
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
6873
6875
|
}>;
|
|
6874
6876
|
export function createHtmlToBlockConverter(componentMappers: HtmlComponentMapper[]): (nodeName: string, node: HTMLElement) => DraftBlockType | {
|
|
6875
6877
|
type: DraftBlockType;
|
|
@@ -6897,6 +6899,8 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
|
|
|
6897
6899
|
isEditorPreview?: boolean;
|
|
6898
6900
|
isMobilePreview?: boolean;
|
|
6899
6901
|
setIsMobilePreview?: Dispatch<SetStateAction<boolean>>;
|
|
6902
|
+
contentBodyRaw?: string;
|
|
6903
|
+
setContentBodyRaw: (newContentBodyRaw?: string) => void;
|
|
6900
6904
|
}
|
|
6901
6905
|
export function useDetailViewContext<TItem extends PublishableItem = PublishableItem>(): DetailViewContextType<TItem>;
|
|
6902
6906
|
}
|
|
@@ -8003,6 +8007,13 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
8003
8007
|
}
|
|
8004
8008
|
export const EventItemTile: FC<Props>;
|
|
8005
8009
|
}
|
|
8010
|
+
declare module "libs/reach/feature/content/src/news/useTranslateApi" {
|
|
8011
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8012
|
+
import { PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
8013
|
+
export function useTranslateApi(): {
|
|
8014
|
+
translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
|
|
8015
|
+
};
|
|
8016
|
+
}
|
|
8006
8017
|
declare module "libs/reach/feature/content/src/common/detail/DetailViewContextProvider" {
|
|
8007
8018
|
import { FC } from 'react';
|
|
8008
8019
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -8730,13 +8741,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
|
|
|
8730
8741
|
activeChannel?: string;
|
|
8731
8742
|
}>;
|
|
8732
8743
|
}
|
|
8733
|
-
declare module "libs/reach/feature/content/src/news/useTranslateApi" {
|
|
8734
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
8735
|
-
import { PublishableItemContent } from "libs/reach/util/common/src/index";
|
|
8736
|
-
export function useTranslateApi(): {
|
|
8737
|
-
translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
|
|
8738
|
-
};
|
|
8739
|
-
}
|
|
8740
8744
|
declare module "libs/reach/feature/content/src/news/index" {
|
|
8741
8745
|
export * from "libs/reach/feature/content/src/news/DateInfo";
|
|
8742
8746
|
export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
|
|
@@ -9049,8 +9053,10 @@ declare module "libs/reach/feature/content/src/common/detail/news/controls/NewsD
|
|
|
9049
9053
|
}
|
|
9050
9054
|
declare module "libs/reach/feature/content/src/common/body/RichTextViewer" {
|
|
9051
9055
|
import { FC } from 'react';
|
|
9056
|
+
import { EditorState } from 'draft-js';
|
|
9052
9057
|
export const RichTextViewer: FC<{
|
|
9053
9058
|
html: string;
|
|
9059
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
9054
9060
|
}>;
|
|
9055
9061
|
}
|
|
9056
9062
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBody" {
|
|
@@ -10762,6 +10768,9 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
10762
10768
|
itemId: string;
|
|
10763
10769
|
}>;
|
|
10764
10770
|
}
|
|
10771
|
+
declare module "libs/reach/feature/content/src/reach-2/common/detail/useReadTimeCalculator" {
|
|
10772
|
+
export function useReadTimeCalculator(bodyText: string, ...additionalText: string[]): string;
|
|
10773
|
+
}
|
|
10765
10774
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/header/HeaderMetadata" {
|
|
10766
10775
|
import { FC } from 'react';
|
|
10767
10776
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|