@yogiswara/honcho-editor-ui 3.3.4 → 3.4.1

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 (36) hide show
  1. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.d.ts +14 -7
  2. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +207 -5
  3. package/dist/components/editor/GalleryAlbum/ImageItemComponents.d.ts +25 -0
  4. package/dist/components/editor/GalleryAlbum/ImageItemComponents.js +179 -0
  5. package/dist/components/editor/GalleryAlbum/colorsGallery.d.ts +9 -0
  6. package/dist/components/editor/GalleryAlbum/colorsGallery.js +9 -0
  7. package/dist/components/editor/GalleryAlbum/svg/Tick.d.ts +2 -0
  8. package/dist/components/editor/GalleryAlbum/svg/Tick.js +6 -0
  9. package/dist/components/editor/HBulkAccordionColorAdjustment.js +1 -2
  10. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +1 -1
  11. package/dist/components/editor/HBulkPreset.d.ts +3 -7
  12. package/dist/components/editor/HBulkPreset.js +21 -22
  13. package/dist/components/editor/HBulkPresetMobile.d.ts +2 -2
  14. package/dist/components/editor/HBulkPresetMobile.js +2 -2
  15. package/dist/components/editor/HImageEditorBulkMobile.d.ts +2 -2
  16. package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +0 -3
  17. package/dist/hooks/demo/HonchoEditorBulkDemo.js +770 -411
  18. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +0 -3
  19. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +882 -354
  20. package/dist/hooks/demo/index.d.ts +0 -2
  21. package/dist/hooks/demo/index.js +3 -2
  22. package/dist/hooks/editor/type.d.ts +15 -13
  23. package/dist/hooks/editor/useHonchoEditorBulk.d.ts +47 -5
  24. package/dist/hooks/editor/useHonchoEditorBulk.js +252 -133
  25. package/dist/hooks/useAdjustmentHistory.js +12 -12
  26. package/dist/hooks/useAdjustmentHistoryBatch.d.ts +33 -31
  27. package/dist/hooks/useAdjustmentHistoryBatch.js +703 -170
  28. package/dist/hooks/usePreset.js +12 -12
  29. package/dist/index.d.ts +5 -7
  30. package/dist/index.js +5 -4
  31. package/dist/services/type.d.ts +14 -0
  32. package/dist/utils/adjustment.d.ts +1 -1
  33. package/dist/utils/adjustment.js +15 -14
  34. package/dist/utils/logger.d.ts +3 -0
  35. package/dist/utils/logger.js +11 -0
  36. package/package.json +4 -2
@@ -10,7 +10,7 @@ export default function HBulkPresetMobile(props) {
10
10
  const isExpanded = iconProps.className?.includes('MuiSelect-iconOpen');
11
11
  return (_jsx(CardMedia, { component: "img", image: isExpanded ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px", right: '14px', position: 'absolute', pointerEvents: 'none' } }));
12
12
  };
13
- return (_jsx(_Fragment, { children: _jsxs(Stack, { direction: "column", sx: { px: "0px", mx: "16px", mt: "6px", mb: "0px" }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Preset" }), _jsx(FormControl, { fullWidth: true, children: _jsxs(Select, { fullWidth: true, value: props.selectedPresetBulk, onChange: props.onSelectPresetBulk, IconComponent: CustomSelectIcon, renderValue: (selectedId) => {
13
+ return (_jsx(_Fragment, { children: _jsxs(Stack, { direction: "column", sx: { px: "0px", mx: "16px", mt: "6px", mb: "0px" }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Preset" }), _jsx(FormControl, { fullWidth: true, children: _jsxs(Select, { fullWidth: true, value: props.selectedPresetBulk, onChange: props.onSelectPreset, IconComponent: CustomSelectIcon, renderValue: (selectedId) => {
14
14
  // Uses props.presets to find the name
15
15
  const selectedPresetBulkObject = props.presets.find(p => p.id === selectedId);
16
16
  if (!selectedPresetBulkObject) {
@@ -22,5 +22,5 @@ export default function HBulkPresetMobile(props) {
22
22
  transformOrigin: { vertical: 'bottom', horizontal: 'left' },
23
23
  sx: { marginTop: '-10px' },
24
24
  slotProps: { paper: { sx: { backgroundColor: colors.onBackground, color: colors.surface, border: `1px solid ${colors.onSurfaceVariant1}`, borderRadius: '4px', width: '328px' } } }
25
- }, sx: { border: `1px solid ${colors.outlineVariant}`, height: '44px', width: '328px', mt: '6px' }, children: [props.presets.map((preset) => (_jsx(MenuItem, { value: preset.id, sx: { padding: '8px 10px', minHeight: 'auto', mb: '4px' }, children: _jsxs(Stack, { direction: "row", alignItems: "center", sx: { width: '100%' }, children: [_jsx(CardMedia, { component: "img", image: "v1/svg/check-ratio-editor.svg", sx: { width: "20px", height: "20px", mr: '12px', px: '0px', visibility: props.selectedPresetBulk === preset.id ? 'visible' : 'hidden' } }), _jsx(Typography, { sx: { width: '24px', textWrap: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', color: colors.surface, pr: "82px", pl: "0px", mr: "165px", justifyContent: 'flex-start', ...typography.bodyMedium }, children: preset.name }), _jsx(IconButton, { "aria-label": `Options for ${preset.name}`, onClick: (event) => props.onPresetMenuClickBulk(event, preset.id), sx: { padding: "0px", margin: "0px", mr: "0px" }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/dots-editor.svg", alt: "Options", sx: { width: '20px', height: '20px' } }) })] }) }, preset.id))), _jsx(Box, { sx: { px: '16px', my: '8px' }, children: _jsx(Button, { fullWidth: true, variant: "outlined", sx: { ...typography.labelMedium, height: '40px', pt: '5px', color: colors.onBackground, backgroundColor: colors.surface, borderRadius: '100px', borderColor: colors.surface, textTransform: 'none', '&:hover': { backgroundColor: '#e0e0e0', borderColor: colors.surface } }, onClick: props.onOpenPresetModalBulk, children: "Create Preset" }) })] }) })] }) }));
25
+ }, sx: { border: `1px solid ${colors.outlineVariant}`, height: '44px', width: '328px', mt: '6px' }, children: [props.presets.map((preset) => (_jsx(MenuItem, { value: preset.id, sx: { padding: '8px 10px', minHeight: 'auto', mb: '4px' }, children: _jsxs(Stack, { direction: "row", alignItems: "center", sx: { width: '100%' }, children: [_jsx(CardMedia, { component: "img", image: "v1/svg/check-ratio-editor.svg", sx: { width: "20px", height: "20px", mr: '12px', px: '0px', visibility: props.selectedPresetBulk === preset.id ? 'visible' : 'hidden' } }), _jsx(Typography, { sx: { width: '24px', textWrap: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', color: colors.surface, pr: "82px", pl: "0px", mr: "165px", justifyContent: 'flex-start', ...typography.bodyMedium }, children: preset.name }), _jsx(IconButton, { "aria-label": `Options for ${preset.name}`, onClick: (event) => props.onPresetMenuClick(event, preset.id), sx: { padding: "0px", margin: "0px", mr: "0px" }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/dots-editor.svg", alt: "Options", sx: { width: '20px', height: '20px' } }) })] }) }, preset.id))), _jsx(Box, { sx: { px: '16px', my: '8px' }, children: _jsx(Button, { fullWidth: true, variant: "outlined", sx: { ...typography.labelMedium, height: '40px', pt: '5px', color: colors.onBackground, backgroundColor: colors.surface, borderRadius: '100px', borderColor: colors.surface, textTransform: 'none', '&:hover': { backgroundColor: '#e0e0e0', borderColor: colors.surface } }, onClick: props.onOpenPresetModalBulk, children: "Create Preset" }) })] }) })] }) }));
26
26
  }
@@ -64,8 +64,8 @@ interface Props {
64
64
  onSharpnessIncrease: () => void;
65
65
  onSharpnessIncreaseMax: () => void;
66
66
  selectedPresetBulk: string;
67
- onSelectPresetBulk: (event: SelectChangeEvent<string>) => void;
68
- onPresetMenuClickBulk: (event: React.MouseEvent<HTMLElement>, presetId: string) => void;
67
+ onSelectPreset: (event: SelectChangeEvent<string>) => void;
68
+ onPresetMenuClick: (event: React.MouseEvent<HTMLElement>, presetId: string) => void;
69
69
  onOpenPresetModalBulk: () => void;
70
70
  }
71
71
  export default function HImageEditorBulkMobile(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare const HonchoEditorBulkDemo: React.FC;
3
- export default HonchoEditorBulkDemo;