@01.software/sdk 0.5.5 → 0.5.7

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/ui/flow.cjs CHANGED
@@ -832,6 +832,10 @@ function DefaultFrameNode({ data }) {
832
832
  const bgColor = (() => {
833
833
  const m = baseColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
834
834
  if (m) return `rgba(${m[1]},${m[2]},${m[3]},${opacity})`;
835
+ const h6 = baseColor.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
836
+ if (h6) return `rgba(${parseInt(h6[1], 16)},${parseInt(h6[2], 16)},${parseInt(h6[3], 16)},${opacity})`;
837
+ const h3 = baseColor.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);
838
+ if (h3) return `rgba(${parseInt(h3[1] + h3[1], 16)},${parseInt(h3[2] + h3[2], 16)},${parseInt(h3[3] + h3[3], 16)},${opacity})`;
835
839
  return baseColor;
836
840
  })();
837
841
  return /* @__PURE__ */ import_react5.default.createElement(
@@ -1048,7 +1052,8 @@ function Image({
1048
1052
  objectFit = "cover",
1049
1053
  priority = false,
1050
1054
  fill = false,
1051
- imageRendering
1055
+ imageRendering,
1056
+ alt: altProp
1052
1057
  }) {
1053
1058
  const [loaded, setLoaded] = (0, import_react6.useState)(false);
1054
1059
  const firedRef = (0, import_react6.useRef)(false);
@@ -1131,7 +1136,7 @@ function Image({
1131
1136
  "img",
1132
1137
  {
1133
1138
  ref: imgRef,
1134
- alt: image.alt ?? "",
1139
+ alt: altProp ?? image.alt ?? "",
1135
1140
  src,
1136
1141
  srcSet: srcSet || void 0,
1137
1142
  sizes,