draftify-react 0.2.5 → 0.2.7

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,7 +188,9 @@ 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
195
  CustomEditor1?: ({
194
196
  customBlock,
@@ -197,6 +199,7 @@ export interface DraftifyReactProps {
197
199
  customBlock: any;
198
200
  modifyCustom: any;
199
201
  }) => HTMLElement | JSX.Element;
202
+
200
203
  CustomEditor2?: ({
201
204
  customBlock,
202
205
  modifyCustom,
@@ -204,6 +207,7 @@ export interface DraftifyReactProps {
204
207
  customBlock: any;
205
208
  modifyCustom: any;
206
209
  }) => HTMLElement | JSX.Element;
210
+
207
211
  CustomEditor3?: ({
208
212
  customBlock,
209
213
  modifyCustom,
@@ -211,6 +215,7 @@ export interface DraftifyReactProps {
211
215
  customBlock: any;
212
216
  modifyCustom: any;
213
217
  }) => HTMLElement | JSX.Element;
218
+
214
219
  CustomOutput1?: ({
215
220
  customBlock,
216
221
  modifyCustom,
@@ -218,6 +223,7 @@ export interface DraftifyReactProps {
218
223
  customBlock: any;
219
224
  modifyCustom: any;
220
225
  }) => HTMLElement | JSX.Element;
226
+
221
227
  CustomOutput2?: ({
222
228
  customBlock,
223
229
  modifyCustom,
@@ -225,6 +231,7 @@ export interface DraftifyReactProps {
225
231
  customBlock: any;
226
232
  modifyCustom: any;
227
233
  }) => HTMLElement | JSX.Element;
234
+
228
235
  CustomOutput3?: ({
229
236
  customBlock,
230
237
  modifyCustom,
@@ -232,9 +239,14 @@ export interface DraftifyReactProps {
232
239
  customBlock: any;
233
240
  modifyCustom: any;
234
241
  }) => HTMLElement | JSX.Element;
242
+
235
243
  defaultCustomData1?: Object;
236
244
  defaultCustomData2?: Object;
237
245
  defaultCustomData3?: Object;
246
+
247
+ localStorageEnable?: boolean;
248
+
249
+ backgroundEnable?: boolean;
238
250
  }
239
251
 
240
252
  declare function DraftifyReact(props: DraftifyReactProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftify-react",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "main": "dist/draftify-react.umd.js",
6
6
  "module": "dist/draftify-react.es.js",