@farmzone/fz-react-ui 1.2.1 → 1.2.2

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/dist/index.cjs CHANGED
@@ -29,7 +29,6 @@ var reactDaumPostcode = require('react-daum-postcode');
29
29
  var zustand = require('zustand');
30
30
  var middleware = require('zustand/middleware');
31
31
  var uuid = require('uuid');
32
- var heic2any = require('heic2any');
33
32
  var react = require('@tiptap/react');
34
33
  var core = require('@tiptap/core');
35
34
  var StarterKit = require('@tiptap/starter-kit');
@@ -72,7 +71,6 @@ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitiv
72
71
  var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
73
72
  var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
74
73
  var customParseFormat__default = /*#__PURE__*/_interopDefault(customParseFormat);
75
- var heic2any__default = /*#__PURE__*/_interopDefault(heic2any);
76
74
  var StarterKit__default = /*#__PURE__*/_interopDefault(StarterKit);
77
75
  var TextAlign__default = /*#__PURE__*/_interopDefault(TextAlign);
78
76
  var Mention__default = /*#__PURE__*/_interopDefault(Mention);
@@ -9586,7 +9584,8 @@ function revokeFile(file) {
9586
9584
  }
9587
9585
  }
9588
9586
  var convertHeicToJpeg = async (file) => {
9589
- const blob = await heic2any__default.default({ blob: file, toType: "image/jpeg", quality: 0.92 });
9587
+ const { default: heic2any } = await import('heic2any');
9588
+ const blob = await heic2any({ blob: file, toType: "image/jpeg", quality: 0.92 });
9590
9589
  const result = Array.isArray(blob) ? blob[0] : blob;
9591
9590
  const baseName = file.name.replace(/\.[^.]+$/, "");
9592
9591
  if (!result) throw new Error("HEIC conversion failed");