draftify-react 0.2.3 → 0.2.5

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/index.d.ts CHANGED
@@ -190,12 +190,48 @@ export interface DraftifyReactProps {
190
190
  blocksData: DraftifyBlock[];
191
191
  modifyBlocks: React.Dispatch<React.SetStateAction<DraftifyBlock[]>>;
192
192
  options: string[];
193
- CustomEditor1?: HTMLElement | JSX.Element;
194
- CustomEditor2?: HTMLElement | JSX.Element;
195
- CustomEditor3?: HTMLElement | JSX.Element;
196
- CustomOutput1?: HTMLElement | JSX.Element;
197
- CustomOutput2?: HTMLElement | JSX.Element;
198
- CustomOutput3?: HTMLElement | JSX.Element;
193
+ CustomEditor1?: ({
194
+ customBlock,
195
+ modifyCustom,
196
+ }: {
197
+ customBlock: any;
198
+ modifyCustom: any;
199
+ }) => HTMLElement | JSX.Element;
200
+ CustomEditor2?: ({
201
+ customBlock,
202
+ modifyCustom,
203
+ }: {
204
+ customBlock: any;
205
+ modifyCustom: any;
206
+ }) => HTMLElement | JSX.Element;
207
+ CustomEditor3?: ({
208
+ customBlock,
209
+ modifyCustom,
210
+ }: {
211
+ customBlock: any;
212
+ modifyCustom: any;
213
+ }) => HTMLElement | JSX.Element;
214
+ CustomOutput1?: ({
215
+ customBlock,
216
+ modifyCustom,
217
+ }: {
218
+ customBlock: any;
219
+ modifyCustom: any;
220
+ }) => HTMLElement | JSX.Element;
221
+ CustomOutput2?: ({
222
+ customBlock,
223
+ modifyCustom,
224
+ }: {
225
+ customBlock: any;
226
+ modifyCustom: any;
227
+ }) => HTMLElement | JSX.Element;
228
+ CustomOutput3?: ({
229
+ customBlock,
230
+ modifyCustom,
231
+ }: {
232
+ customBlock: any;
233
+ modifyCustom: any;
234
+ }) => HTMLElement | JSX.Element;
199
235
  defaultCustomData1?: Object;
200
236
  defaultCustomData2?: Object;
201
237
  defaultCustomData3?: Object;
@@ -205,9 +241,27 @@ declare function DraftifyReact(props: DraftifyReactProps): JSX.Element;
205
241
 
206
242
  export interface ReaderProps {
207
243
  blocksData: DraftifyBlock[];
208
- CustomOutput1?: HTMLElement | JSX.Element;
209
- CustomOutput2?: HTMLElement | JSX.Element;
210
- CustomOutput3?: HTMLElement | JSX.Element;
244
+ CustomOutput1?: ({
245
+ customBlock,
246
+ modifyCustom,
247
+ }: {
248
+ customBlock: any;
249
+ modifyCustom: any;
250
+ }) => HTMLElement | JSX.Element;
251
+ CustomOutput2?: ({
252
+ customBlock,
253
+ modifyCustom,
254
+ }: {
255
+ customBlock: any;
256
+ modifyCustom: any;
257
+ }) => HTMLElement | JSX.Element;
258
+ CustomOutput3?: ({
259
+ customBlock,
260
+ modifyCustom,
261
+ }: {
262
+ customBlock: any;
263
+ modifyCustom: any;
264
+ }) => HTMLElement | JSX.Element;
211
265
  }
212
266
 
213
267
  declare function DraftifyBlocksReader(props: ReaderProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftify-react",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "main": "dist/draftify-react.umd.js",
6
6
  "module": "dist/draftify-react.es.js",