@wavelengthusaf/components 4.5.1 → 4.5.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/cjs/index.cjs +9 -3
- package/dist/esm/index.js +9 -3
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -4983,7 +4983,7 @@ var WavelengthFileDropZone = ({
|
|
|
4983
4983
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "wavelength-file-drop-zone", { ref, style: mergedStyle, ...rest, children });
|
|
4984
4984
|
};
|
|
4985
4985
|
|
|
4986
|
-
// src/components/SnackBar/WavelengthWebSnackbar.tsx
|
|
4986
|
+
// src/components/SnackBar/WavelengthWebSnackbar.tsx
|
|
4987
4987
|
|
|
4988
4988
|
|
|
4989
4989
|
|
|
@@ -5007,8 +5007,14 @@ var WavelengthWebSnackbar = ({
|
|
|
5007
5007
|
_react.useEffect.call(void 0, () => {
|
|
5008
5008
|
const el = ref.current;
|
|
5009
5009
|
if (!el) return;
|
|
5010
|
-
if (message
|
|
5011
|
-
|
|
5010
|
+
if (message) {
|
|
5011
|
+
el.removeAttribute("message");
|
|
5012
|
+
requestAnimationFrame(() => {
|
|
5013
|
+
el.setAttribute("message", message);
|
|
5014
|
+
});
|
|
5015
|
+
} else {
|
|
5016
|
+
el.removeAttribute("message");
|
|
5017
|
+
}
|
|
5012
5018
|
if (duration !== void 0) el.setAttribute("duration", String(duration));
|
|
5013
5019
|
else el.removeAttribute("duration");
|
|
5014
5020
|
}, [message, duration]);
|
package/dist/esm/index.js
CHANGED
|
@@ -4983,7 +4983,7 @@ var WavelengthFileDropZone = ({
|
|
|
4983
4983
|
return /* @__PURE__ */ jsx14("wavelength-file-drop-zone", { ref, style: mergedStyle, ...rest, children });
|
|
4984
4984
|
};
|
|
4985
4985
|
|
|
4986
|
-
// src/components/SnackBar/WavelengthWebSnackbar.tsx
|
|
4986
|
+
// src/components/SnackBar/WavelengthWebSnackbar.tsx
|
|
4987
4987
|
import { useEffect as useEffect4, useRef as useRef5 } from "react";
|
|
4988
4988
|
import "@wavelengthusaf/web-components";
|
|
4989
4989
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
@@ -5007,8 +5007,14 @@ var WavelengthWebSnackbar = ({
|
|
|
5007
5007
|
useEffect4(() => {
|
|
5008
5008
|
const el = ref.current;
|
|
5009
5009
|
if (!el) return;
|
|
5010
|
-
if (message
|
|
5011
|
-
|
|
5010
|
+
if (message) {
|
|
5011
|
+
el.removeAttribute("message");
|
|
5012
|
+
requestAnimationFrame(() => {
|
|
5013
|
+
el.setAttribute("message", message);
|
|
5014
|
+
});
|
|
5015
|
+
} else {
|
|
5016
|
+
el.removeAttribute("message");
|
|
5017
|
+
}
|
|
5012
5018
|
if (duration !== void 0) el.setAttribute("duration", String(duration));
|
|
5013
5019
|
else el.removeAttribute("duration");
|
|
5014
5020
|
}, [message, duration]);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@wavelengthusaf/components",
|
|
3
3
|
"author": "563 EWS - Wavelength",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.2",
|
|
6
6
|
"description": "Common component library used by Wavelength developers",
|
|
7
7
|
"main": "/dist/cjs/index.cjs",
|
|
8
8
|
"module": "/dist/esm/index.js",
|