@farmzone/fz-react-ui 1.2.1 → 1.2.3
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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);
|
|
@@ -1800,7 +1798,8 @@ var ToastManager = class _ToastManager {
|
|
|
1800
1798
|
duration: props.duration ?? perType.duration ?? base.duration ?? 1500,
|
|
1801
1799
|
style: Object.keys(style).length > 0 ? style : void 0,
|
|
1802
1800
|
className: className || void 0,
|
|
1803
|
-
iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme
|
|
1801
|
+
iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme,
|
|
1802
|
+
icon: props.icon ?? perType.icon ?? base.icon
|
|
1804
1803
|
};
|
|
1805
1804
|
}
|
|
1806
1805
|
registerContainer(position, setToasts) {
|
|
@@ -2111,7 +2110,7 @@ function ToastItemCard(props) {
|
|
|
2111
2110
|
onClick: handleClick,
|
|
2112
2111
|
children: [
|
|
2113
2112
|
toast2.props.icon || getDefaultIcon(toast2.props.type || "info", toast2.props.iconTheme),
|
|
2114
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2113
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `flex-1 font-medium ${hasCustomStyle ? "" : "text-sm"}`, children: toast2.props.toast }),
|
|
2115
2114
|
toast2.props.showCloseButton === true && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2116
2115
|
"button",
|
|
2117
2116
|
{
|
|
@@ -9586,7 +9585,8 @@ function revokeFile(file) {
|
|
|
9586
9585
|
}
|
|
9587
9586
|
}
|
|
9588
9587
|
var convertHeicToJpeg = async (file) => {
|
|
9589
|
-
const
|
|
9588
|
+
const { default: heic2any } = await import('heic2any');
|
|
9589
|
+
const blob = await heic2any({ blob: file, toType: "image/jpeg", quality: 0.92 });
|
|
9590
9590
|
const result = Array.isArray(blob) ? blob[0] : blob;
|
|
9591
9591
|
const baseName = file.name.replace(/\.[^.]+$/, "");
|
|
9592
9592
|
if (!result) throw new Error("HEIC conversion failed");
|