Skip to content

Commit

Permalink
publish 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed Dec 17, 2020
1 parent b1cbb2c commit cbf0b69
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## 1.5.1
#### Added
- Add `onFocus` and `onBlur`
- Add `_.sendEvent` to automatically generate ID to RN, and you can dynamically modify the dom corresponding to the event with commandDOM

#### Changed
- `insertVideo` and `insertImage` Add style params to dom
Expand Down
19 changes: 9 additions & 10 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {WebViewProps} from 'react-native-webview';
import {ImageSourcePropType, StyleProp, ViewStyle} from 'react-native';
import * as React from 'react';
import React from 'react';

declare module 'react-native-pell-rich-editor' {
/** The RichTextEditor accepts all props from Webview */
Expand Down Expand Up @@ -120,6 +120,13 @@ declare module 'react-native-pell-rich-editor' {

export type DefaultActions = ['image', 'bold', 'italic', 'unorderedList', 'orderedList', 'link'];

export type IconRecord = {
selected: boolean;
disabled: boolean;
tintColor: any;
iconSize: number;
};

export class RichEditor extends React.Component<RichEditorProps> {
// Public API

Expand Down Expand Up @@ -202,15 +209,7 @@ declare module 'react-native-pell-rich-editor' {
/**
* Your own set if images for the toolbar
*/
iconMap?: Record<
string,
({
selected: boolean,
disabled: boolean,
tintColor: any,
iconSize: number,
}) => React.Element | ImageSourcePropType
>;
iconMap?: Record<string, (IconRecord) => React.Element | ImageSourcePropType>;

/**
* Logic for what happens when you press on the add image button
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pell-rich-editor",
"description": "React Native Rich Editor",
"version": "1.5.0",
"version": "1.5.1",
"main": "src/index.js",
"author": {
"name": "wxik",
Expand Down

0 comments on commit cbf0b69

Please sign in to comment.