@livetiles/reach-plugin-types 0.5.0-preview.171 → 0.5.0-preview.172
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 +31 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="moment" />
|
|
3
3
|
/// <reference types="draft-js" />
|
|
4
|
+
/// <reference types="draft-convert" />
|
|
4
5
|
declare module "libs/reach/util/common/src/FocusStyles" {
|
|
5
6
|
export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
6
7
|
export const applyFocusStyle: (input: string) => string;
|
|
@@ -8028,6 +8029,35 @@ declare module "libs/reach/feature/content/src/common/body/inline-file-list/Inli
|
|
|
8028
8029
|
className?: string;
|
|
8029
8030
|
}>;
|
|
8030
8031
|
}
|
|
8032
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText" {
|
|
8033
|
+
import { ContentState } from 'draft-js';
|
|
8034
|
+
import { FC } from 'react';
|
|
8035
|
+
export const ColoredText: FC<{
|
|
8036
|
+
entityKey: string;
|
|
8037
|
+
contentState: ContentState;
|
|
8038
|
+
}>;
|
|
8039
|
+
}
|
|
8040
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy" {
|
|
8041
|
+
import { ContentBlock, ContentState } from 'draft-js';
|
|
8042
|
+
export const ColoredTextType = "colored-text";
|
|
8043
|
+
export function findColoredTextEntities(contentBlock: ContentBlock, callback: (start: number, end: number) => void, contentState: ContentState): void;
|
|
8044
|
+
}
|
|
8045
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils" {
|
|
8046
|
+
import { CompositeDecorator, EditorState } from 'draft-js';
|
|
8047
|
+
import { EditorPlugin } from '@draft-js-plugins/editor';
|
|
8048
|
+
import { EntityKey } from 'draft-convert';
|
|
8049
|
+
type ColoredTextPlugin = EditorPlugin & {
|
|
8050
|
+
decorators: CompositeDecorator[];
|
|
8051
|
+
};
|
|
8052
|
+
export function createColoredTextPlugin(): ColoredTextPlugin;
|
|
8053
|
+
export function createColoredTextEntity(node: HTMLElement, createEntity: (type: string, mutability: string, data: object) => EntityKey): string;
|
|
8054
|
+
export function createColoredTextAtSelection(editorState: EditorState, colorId: string): EditorState;
|
|
8055
|
+
}
|
|
8056
|
+
declare module "libs/reach/feature/content/src/common/body/colored-text-plugin/index" {
|
|
8057
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/ColoredText";
|
|
8058
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextStrategy";
|
|
8059
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/coloredTextUtils";
|
|
8060
|
+
}
|
|
8031
8061
|
declare module "libs/reach/feature/content/src/common/body/TextViewer" {
|
|
8032
8062
|
import { FC } from 'react';
|
|
8033
8063
|
import { DraftBlockType } from 'draft-js';
|
|
@@ -10337,6 +10367,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
10337
10367
|
export * from "libs/reach/feature/content/src/common/FilterLogicalOperators";
|
|
10338
10368
|
export * from "libs/reach/feature/content/src/common/channels/ChannelSelector";
|
|
10339
10369
|
export * from "libs/reach/feature/content/src/common/item-tile/PageItemTile";
|
|
10370
|
+
export * from "libs/reach/feature/content/src/common/body/colored-text-plugin/index";
|
|
10340
10371
|
}
|
|
10341
10372
|
declare module "libs/reach/feature/content/src/comments/CommentDisplay" {
|
|
10342
10373
|
import { FC } from 'react';
|