@pixerate/editor-react 0.14.0 → 0.15.0

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.
Files changed (38) hide show
  1. package/README.md +2 -1
  2. package/dist/canvas/index.cjs +252 -119
  3. package/dist/canvas/index.cjs.map +1 -1
  4. package/dist/canvas/index.d.cts +55 -7
  5. package/dist/canvas/index.d.ts +55 -7
  6. package/dist/canvas/index.js +155 -19
  7. package/dist/canvas/index.js.map +1 -1
  8. package/dist/chunk-4ZC2WCUO.js +196 -0
  9. package/dist/chunk-4ZC2WCUO.js.map +1 -0
  10. package/dist/{chunk-TL27COKM.js → chunk-LPFZMZ3L.js} +45 -2
  11. package/dist/chunk-LPFZMZ3L.js.map +1 -0
  12. package/dist/{chunk-25S5EHH4.js → chunk-QVQYYHJ5.js} +4 -3
  13. package/dist/chunk-QVQYYHJ5.js.map +1 -0
  14. package/dist/commands/index.cjs +232 -0
  15. package/dist/commands/index.cjs.map +1 -0
  16. package/dist/commands/index.d.cts +69 -0
  17. package/dist/commands/index.d.ts +69 -0
  18. package/dist/commands/index.js +13 -0
  19. package/dist/commands/index.js.map +1 -0
  20. package/dist/image-editor/index.cjs +41 -0
  21. package/dist/image-editor/index.cjs.map +1 -1
  22. package/dist/image-editor/index.d.cts +5 -3
  23. package/dist/image-editor/index.d.ts +5 -3
  24. package/dist/image-editor/index.js +1 -1
  25. package/dist/index.cjs +535 -251
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +61 -22
  28. package/dist/index.d.ts +61 -22
  29. package/dist/index.js +131 -70
  30. package/dist/index.js.map +1 -1
  31. package/dist/spreadsheet/index.cjs +1 -1
  32. package/dist/spreadsheet/index.cjs.map +1 -1
  33. package/dist/spreadsheet/index.d.cts +7 -7
  34. package/dist/spreadsheet/index.d.ts +7 -7
  35. package/dist/spreadsheet/index.js +1 -1
  36. package/package.json +10 -2
  37. package/dist/chunk-25S5EHH4.js.map +0 -1
  38. package/dist/chunk-TL27COKM.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, ImageEditorOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks } from '@pixerate/editor/image-editor';
2
- import React from 'react';
2
+ import React__default from 'react';
3
3
 
4
4
  interface UseImageEditorReturn {
5
5
  controller: ImageEditorController;
@@ -16,6 +16,8 @@ interface UseImageEditorReturn {
16
16
  flipVertical: () => void;
17
17
  setAdjustments: (partial: Partial<ImageAdjustments>, commitToHistory?: boolean) => void;
18
18
  resetAdjustments: () => void;
19
+ /** Update to Current Process: re-render the adjustments with the latest process (one undo step). */
20
+ upgradeProcess: () => boolean;
19
21
  setDepthMask: (partial: Partial<DepthMaskOptions>) => void;
20
22
  resetDepthMask: () => void;
21
23
  addAnnotation: (annotation: CreateAnnotationPayload) => string;
@@ -55,13 +57,13 @@ interface ImageEditorProps {
55
57
  editor?: UseImageEditorReturn;
56
58
  src?: string;
57
59
  className?: string;
58
- style?: React.CSSProperties;
60
+ style?: React__default.CSSProperties;
59
61
  onSave?: (dataUrl: string) => void;
60
62
  exportOptions?: ExportOptions;
61
63
  onInpaint?: InpaintHook;
62
64
  onRemoveBackground?: RemoveBackgroundHook;
63
65
  aiHooks?: ImageEditorAIHooks;
64
66
  }
65
- declare const ImageEditor: React.FC<ImageEditorProps>;
67
+ declare const ImageEditor: React__default.FC<ImageEditorProps>;
66
68
 
67
69
  export { ImageEditor, type ImageEditorProps, type UseImageEditorReturn, useImageEditor };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImageEditor,
3
3
  useImageEditor
4
- } from "../chunk-TL27COKM.js";
4
+ } from "../chunk-LPFZMZ3L.js";
5
5
  export {
6
6
  ImageEditor,
7
7
  useImageEditor