@yogiswara/honcho-editor-ui 2.3.3 → 2.3.5

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.
@@ -3,5 +3,5 @@ import { Modal, Box, Typography, Button, Stack, IconButton, CardMedia } from "@m
3
3
  import useColors from '../../themes/colors';
4
4
  export default function HModalMobile(props) {
5
5
  const colors = useColors();
6
- return (_jsx(_Fragment, { children: _jsx(Modal, { open: props.modalOpen, onClose: props.modalClose, children: _jsxs(Stack, { direction: "column", spacing: 2, height: "100%", sx: { p: "10px", backgroundColor: colors.surface }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(IconButton, { "aria-label": "close", onClick: props.modalClose, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/exit-button-modal-mobile.svg" }) }), _jsx(Typography, { variant: "h6", color: "initial", children: props.modalTitle })] }), _jsx(Button, { onClick: props.onConfirm, children: "Save" })] }), _jsx(Typography, { variant: "inherit", color: "initial", children: props.modalInformation }), _jsx(Box, { sx: { mt: 2 }, children: props.children }), _jsx(Box, { children: props.action })] }) }) }));
6
+ return (_jsx(_Fragment, { children: _jsx(Modal, { open: props.modalOpen, onClose: props.modalClose, children: _jsxs(Stack, { direction: "column", spacing: 2, height: "100%", sx: { p: "10px", backgroundColor: colors.surface }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(IconButton, { "aria-label": "close", onClick: props.modalClose, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/exit-button-modal-mobile.svg" }) }), _jsx(Typography, { variant: "h6", color: "initial", children: props.modalTitle })] }), _jsx(Button, { onClick: props.onConfirm, children: "Save" })] }), _jsx(Typography, { variant: "inherit", color: "initial", children: props.modalInformation }), _jsx(Box, { sx: { mt: 2 }, children: props.children }), _jsx(Stack, { sx: { px: "2px" }, children: props.action })] }) }) }));
7
7
  }
@@ -67,6 +67,7 @@ export function usePreset(controller, firebaseUid, options = {}) {
67
67
  }, [debugLog]);
68
68
  // Load presets from backend
69
69
  const load = useCallback(async () => {
70
+ console.log("Load Presets Get Function Called");
70
71
  if (!controllerRef.current || !firebaseUidRef.current) {
71
72
  debugLog('Load skipped: missing controller or firebaseUid');
72
73
  return;
@@ -111,6 +112,7 @@ export function usePreset(controller, firebaseUid, options = {}) {
111
112
  }, [debugLog, isInitialized]);
112
113
  // Create a new preset
113
114
  const create = useCallback(async (name, settings) => {
115
+ console.log("Create Preset Get Function Called");
114
116
  if (!controllerRef.current || !firebaseUidRef.current) {
115
117
  debugLog('Create skipped: missing controller or firebaseUid');
116
118
  return null;
@@ -209,6 +211,7 @@ export function usePreset(controller, firebaseUid, options = {}) {
209
211
  }, [presets, debugLog, handleError]);
210
212
  // Delete a preset
211
213
  const deletePreset = useCallback(async (presetId) => {
214
+ console.log("Delete Presets Get Function Called");
212
215
  if (!controllerRef.current || !firebaseUidRef.current) {
213
216
  debugLog('Delete skipped: missing controller or firebaseUid');
214
217
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",