@livetiles/reach-plugin-types 0.5.0-preview.675 → 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 +16 -8
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6846,7 +6846,7 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
|
|
|
6846
6846
|
}
|
|
6847
6847
|
declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
6848
6848
|
import { FC } from 'react';
|
|
6849
|
-
import { DraftBlockType } from 'draft-js';
|
|
6849
|
+
import { DraftBlockType, EditorState } from 'draft-js';
|
|
6850
6850
|
import 'draft-js/dist/Draft.css';
|
|
6851
6851
|
export enum EntityType {
|
|
6852
6852
|
Video = "video",
|
|
@@ -6871,6 +6871,7 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
|
6871
6871
|
export const TextViewer: FC<{
|
|
6872
6872
|
html: string;
|
|
6873
6873
|
componentMappers: HtmlComponentMapper[];
|
|
6874
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
6874
6875
|
}>;
|
|
6875
6876
|
export function createHtmlToBlockConverter(componentMappers: HtmlComponentMapper[]): (nodeName: string, node: HTMLElement) => DraftBlockType | {
|
|
6876
6877
|
type: DraftBlockType;
|
|
@@ -6898,6 +6899,8 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
|
|
|
6898
6899
|
isEditorPreview?: boolean;
|
|
6899
6900
|
isMobilePreview?: boolean;
|
|
6900
6901
|
setIsMobilePreview?: Dispatch<SetStateAction<boolean>>;
|
|
6902
|
+
contentBodyRaw?: string;
|
|
6903
|
+
setContentBodyRaw: (newContentBodyRaw?: string) => void;
|
|
6901
6904
|
}
|
|
6902
6905
|
export function useDetailViewContext<TItem extends PublishableItem = PublishableItem>(): DetailViewContextType<TItem>;
|
|
6903
6906
|
}
|
|
@@ -8004,6 +8007,13 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
|
|
|
8004
8007
|
}
|
|
8005
8008
|
export const EventItemTile: FC<Props>;
|
|
8006
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
|
+
}
|
|
8007
8017
|
declare module "libs/reach/feature/content/src/common/detail/DetailViewContextProvider" {
|
|
8008
8018
|
import { FC } from 'react';
|
|
8009
8019
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -8731,13 +8741,6 @@ declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
|
|
|
8731
8741
|
activeChannel?: string;
|
|
8732
8742
|
}>;
|
|
8733
8743
|
}
|
|
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
8744
|
declare module "libs/reach/feature/content/src/news/index" {
|
|
8742
8745
|
export * from "libs/reach/feature/content/src/news/DateInfo";
|
|
8743
8746
|
export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
|
|
@@ -9050,8 +9053,10 @@ declare module "libs/reach/feature/content/src/common/detail/news/controls/NewsD
|
|
|
9050
9053
|
}
|
|
9051
9054
|
declare module "libs/reach/feature/content/src/common/body/RichTextViewer" {
|
|
9052
9055
|
import { FC } from 'react';
|
|
9056
|
+
import { EditorState } from 'draft-js';
|
|
9053
9057
|
export const RichTextViewer: FC<{
|
|
9054
9058
|
html: string;
|
|
9059
|
+
onEditorStateChange?: (newEditorState: EditorState) => void;
|
|
9055
9060
|
}>;
|
|
9056
9061
|
}
|
|
9057
9062
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBody" {
|
|
@@ -10763,6 +10768,9 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
10763
10768
|
itemId: string;
|
|
10764
10769
|
}>;
|
|
10765
10770
|
}
|
|
10771
|
+
declare module "libs/reach/feature/content/src/reach-2/common/detail/useReadTimeCalculator" {
|
|
10772
|
+
export function useReadTimeCalculator(bodyText: string, ...additionalText: string[]): string;
|
|
10773
|
+
}
|
|
10766
10774
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/header/HeaderMetadata" {
|
|
10767
10775
|
import { FC } from 'react';
|
|
10768
10776
|
import { PublishableItem } from "libs/reach/util/common/src/index";
|