draftify-react 0.2.4 → 0.2.6

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
@@ -188,26 +188,92 @@ export function useDraftifyReact(
188
188
 
189
189
  export interface DraftifyReactProps {
190
190
  blocksData: DraftifyBlock[];
191
+
191
192
  modifyBlocks: React.Dispatch<React.SetStateAction<DraftifyBlock[]>>;
193
+
192
194
  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;
195
+ CustomEditor1?: ({
196
+ customBlock,
197
+ modifyCustom,
198
+ }: {
199
+ customBlock: any;
200
+ modifyCustom: any;
201
+ }) => HTMLElement | JSX.Element;
202
+
203
+ CustomEditor2?: ({
204
+ customBlock,
205
+ modifyCustom,
206
+ }: {
207
+ customBlock: any;
208
+ modifyCustom: any;
209
+ }) => HTMLElement | JSX.Element;
210
+
211
+ CustomEditor3?: ({
212
+ customBlock,
213
+ modifyCustom,
214
+ }: {
215
+ customBlock: any;
216
+ modifyCustom: any;
217
+ }) => HTMLElement | JSX.Element;
218
+
219
+ CustomOutput1?: ({
220
+ customBlock,
221
+ modifyCustom,
222
+ }: {
223
+ customBlock: any;
224
+ modifyCustom: any;
225
+ }) => HTMLElement | JSX.Element;
226
+
227
+ CustomOutput2?: ({
228
+ customBlock,
229
+ modifyCustom,
230
+ }: {
231
+ customBlock: any;
232
+ modifyCustom: any;
233
+ }) => HTMLElement | JSX.Element;
234
+
235
+ CustomOutput3?: ({
236
+ customBlock,
237
+ modifyCustom,
238
+ }: {
239
+ customBlock: any;
240
+ modifyCustom: any;
241
+ }) => HTMLElement | JSX.Element;
242
+
199
243
  defaultCustomData1?: Object;
200
244
  defaultCustomData2?: Object;
201
245
  defaultCustomData3?: Object;
246
+
247
+ localStorageEnable?: boolean;
248
+
249
+ backgroundEnable?: boolean;
202
250
  }
203
251
 
204
252
  declare function DraftifyReact(props: DraftifyReactProps): JSX.Element;
205
253
 
206
254
  export interface ReaderProps {
207
255
  blocksData: DraftifyBlock[];
208
- CustomOutput1?: HTMLElement | JSX.Element;
209
- CustomOutput2?: HTMLElement | JSX.Element;
210
- CustomOutput3?: HTMLElement | JSX.Element;
256
+ CustomOutput1?: ({
257
+ customBlock,
258
+ modifyCustom,
259
+ }: {
260
+ customBlock: any;
261
+ modifyCustom: any;
262
+ }) => HTMLElement | JSX.Element;
263
+ CustomOutput2?: ({
264
+ customBlock,
265
+ modifyCustom,
266
+ }: {
267
+ customBlock: any;
268
+ modifyCustom: any;
269
+ }) => HTMLElement | JSX.Element;
270
+ CustomOutput3?: ({
271
+ customBlock,
272
+ modifyCustom,
273
+ }: {
274
+ customBlock: any;
275
+ modifyCustom: any;
276
+ }) => HTMLElement | JSX.Element;
211
277
  }
212
278
 
213
279
  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.4",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "main": "dist/draftify-react.umd.js",
6
6
  "module": "dist/draftify-react.es.js",