@olenbetong/synergi-react 2.3.7 → 2.3.9

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 (102) hide show
  1. package/es/components/ImageEditor/CropCanvas.d.ts +16 -0
  2. package/es/components/ImageEditor/CropCanvas.js +79 -0
  3. package/es/components/ImageEditor/DragHandle.d.ts +14 -0
  4. package/es/components/ImageEditor/DragHandle.js +40 -0
  5. package/es/components/ImageEditor/EdgeHandle.d.ts +16 -0
  6. package/es/components/ImageEditor/EdgeHandle.js +43 -0
  7. package/es/components/ImageEditor/ImageEditor.css +224 -0
  8. package/es/components/ImageEditor/ImageEditor.d.ts +24 -0
  9. package/es/components/ImageEditor/ImageEditor.js +108 -0
  10. package/es/components/ImageEditor/ResponsiveButton.d.ts +11 -0
  11. package/es/components/ImageEditor/ResponsiveButton.js +9 -0
  12. package/es/components/ImageEditor/defaultPlugins.d.ts +4 -0
  13. package/es/components/ImageEditor/defaultPlugins.js +8 -0
  14. package/es/components/ImageEditor/index.d.ts +6 -0
  15. package/es/components/ImageEditor/index.js +4 -0
  16. package/es/components/ImageEditor/plugins/cropPlugin/CropContext.d.ts +10 -0
  17. package/es/components/ImageEditor/plugins/cropPlugin/CropContext.js +14 -0
  18. package/es/components/ImageEditor/plugins/cropPlugin/CropOverlay.d.ts +2 -0
  19. package/es/components/ImageEditor/plugins/cropPlugin/CropOverlay.js +30 -0
  20. package/es/components/ImageEditor/plugins/cropPlugin/CropToolbar.d.ts +2 -0
  21. package/es/components/ImageEditor/plugins/cropPlugin/CropToolbar.js +16 -0
  22. package/es/components/ImageEditor/plugins/cropPlugin/index.d.ts +6 -0
  23. package/es/components/ImageEditor/plugins/cropPlugin/index.js +16 -0
  24. package/es/components/ImageEditor/plugins/cropPlugin/useCropTool.d.ts +34 -0
  25. package/es/components/ImageEditor/plugins/cropPlugin/useCropTool.js +138 -0
  26. package/es/components/ImageEditor/plugins/redactPlugin/RedactContext.d.ts +10 -0
  27. package/es/components/ImageEditor/plugins/redactPlugin/RedactContext.js +14 -0
  28. package/es/components/ImageEditor/plugins/redactPlugin/RedactOverlay.d.ts +6 -0
  29. package/es/components/ImageEditor/plugins/redactPlugin/RedactOverlay.js +29 -0
  30. package/es/components/ImageEditor/plugins/redactPlugin/RedactToolbar.d.ts +2 -0
  31. package/es/components/ImageEditor/plugins/redactPlugin/RedactToolbar.js +29 -0
  32. package/es/components/ImageEditor/plugins/redactPlugin/index.d.ts +6 -0
  33. package/es/components/ImageEditor/plugins/redactPlugin/index.js +16 -0
  34. package/es/components/ImageEditor/plugins/redactPlugin/useRedactTool.d.ts +49 -0
  35. package/es/components/ImageEditor/plugins/redactPlugin/useRedactTool.js +142 -0
  36. package/es/components/ImageEditor/plugins/rotatePlugin.d.ts +3 -0
  37. package/es/components/ImageEditor/plugins/rotatePlugin.js +39 -0
  38. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomCanvas.d.ts +20 -0
  39. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomCanvas.js +91 -0
  40. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomContext.d.ts +6 -0
  41. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomContext.js +14 -0
  42. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomControls.d.ts +6 -0
  43. package/es/components/ImageEditor/plugins/zoomPlugin/ZoomControls.js +11 -0
  44. package/es/components/ImageEditor/plugins/zoomPlugin/index.d.ts +2 -0
  45. package/es/components/ImageEditor/plugins/zoomPlugin/index.js +10 -0
  46. package/es/components/ImageEditor/plugins/zoomPlugin/useZoomPan.d.ts +33 -0
  47. package/es/components/ImageEditor/plugins/zoomPlugin/useZoomPan.js +80 -0
  48. package/es/components/ImageEditor/types.d.ts +69 -0
  49. package/es/components/ImageEditor/types.js +1 -0
  50. package/es/components/ImageEditor/useActiveTool.d.ts +9 -0
  51. package/es/components/ImageEditor/useActiveTool.js +11 -0
  52. package/es/components/ImageEditor/useEdgeDetection.d.ts +18 -0
  53. package/es/components/ImageEditor/useEdgeDetection.js +125 -0
  54. package/es/components/ImageEditor/useImageEditor.d.ts +12 -0
  55. package/es/components/ImageEditor/useImageEditor.js +28 -0
  56. package/es/components/ImageEditor/useImageHistory.d.ts +21 -0
  57. package/es/components/ImageEditor/useImageHistory.js +153 -0
  58. package/es/components/ImageEditor/useOpenCV.d.ts +14 -0
  59. package/es/components/ImageEditor/useOpenCV.js +92 -0
  60. package/es/components/PdfViewer/PdfViewer.css +12 -0
  61. package/es/components/PdfViewer/PdfViewer.d.ts +7 -0
  62. package/es/components/PdfViewer/PdfViewer.js +132 -0
  63. package/es/components/PdfViewer/index.d.ts +1 -0
  64. package/es/components/PdfViewer/index.js +1 -0
  65. package/es/index.d.ts +2 -0
  66. package/es/index.js +2 -0
  67. package/package.json +8 -3
  68. package/src/components/ImageEditor/CropCanvas.tsx +100 -0
  69. package/src/components/ImageEditor/DragHandle.tsx +65 -0
  70. package/src/components/ImageEditor/EdgeHandle.tsx +65 -0
  71. package/src/components/ImageEditor/ImageEditor.css +224 -0
  72. package/src/components/ImageEditor/ImageEditor.tsx +310 -0
  73. package/src/components/ImageEditor/ResponsiveButton.tsx +32 -0
  74. package/src/components/ImageEditor/defaultPlugins.ts +10 -0
  75. package/src/components/ImageEditor/index.ts +6 -0
  76. package/src/components/ImageEditor/plugins/cropPlugin/CropContext.tsx +24 -0
  77. package/src/components/ImageEditor/plugins/cropPlugin/CropOverlay.tsx +119 -0
  78. package/src/components/ImageEditor/plugins/cropPlugin/CropToolbar.tsx +36 -0
  79. package/src/components/ImageEditor/plugins/cropPlugin/index.ts +20 -0
  80. package/src/components/ImageEditor/plugins/cropPlugin/useCropTool.ts +176 -0
  81. package/src/components/ImageEditor/plugins/redactPlugin/RedactContext.tsx +23 -0
  82. package/src/components/ImageEditor/plugins/redactPlugin/RedactOverlay.tsx +144 -0
  83. package/src/components/ImageEditor/plugins/redactPlugin/RedactToolbar.tsx +56 -0
  84. package/src/components/ImageEditor/plugins/redactPlugin/index.ts +20 -0
  85. package/src/components/ImageEditor/plugins/redactPlugin/useRedactTool.ts +197 -0
  86. package/src/components/ImageEditor/plugins/rotatePlugin.ts +43 -0
  87. package/src/components/ImageEditor/plugins/zoomPlugin/ZoomCanvas.tsx +123 -0
  88. package/src/components/ImageEditor/plugins/zoomPlugin/ZoomContext.tsx +15 -0
  89. package/src/components/ImageEditor/plugins/zoomPlugin/ZoomControls.tsx +43 -0
  90. package/src/components/ImageEditor/plugins/zoomPlugin/index.ts +12 -0
  91. package/src/components/ImageEditor/plugins/zoomPlugin/useZoomPan.ts +126 -0
  92. package/src/components/ImageEditor/types.ts +69 -0
  93. package/src/components/ImageEditor/useActiveTool.ts +21 -0
  94. package/src/components/ImageEditor/useEdgeDetection.ts +167 -0
  95. package/src/components/ImageEditor/useImageEditor.ts +39 -0
  96. package/src/components/ImageEditor/useImageHistory.ts +189 -0
  97. package/src/components/ImageEditor/useOpenCV.ts +134 -0
  98. package/src/components/PdfViewer/PdfViewer.css +12 -0
  99. package/src/components/PdfViewer/PdfViewer.tsx +160 -0
  100. package/src/components/PdfViewer/index.ts +1 -0
  101. package/src/elements/ElementLookupDialog/HIDScanner/useHIDScanner.ts +1 -1
  102. package/src/index.ts +2 -0
@@ -6,7 +6,7 @@ export function useHIDScanner(onRead: (value: string) => void, enabled = false)
6
6
 
7
7
  let hexKeys = "ABCDEFabcdefxX0123456789";
8
8
  let buffer = "";
9
- let clearBufferTimeout: number;
9
+ let clearBufferTimeout: NodeJS.Timeout;
10
10
 
11
11
  function handleKeyDownEvent(event: KeyboardEvent) {
12
12
  if (hexKeys.includes(event.key)) {
package/src/index.ts CHANGED
@@ -22,3 +22,5 @@ export { Spinner, type SpinnerProps } from "./components/Spinner/index.js";
22
22
  export { SplitContainer, type SplitContainerProps } from "./components/SplitContainer/index.js";
23
23
  export { ValueToggleGroup, type ValueToggleGroupProps } from "./components/ValueToggleGroup/index.js";
24
24
  export { useTranslation } from "./useTranslation/index.js";
25
+ export * from "./components/ImageEditor/index.js";
26
+ export * from "./components/PdfViewer/index.js";