@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/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/{const-JbuUTzeh.d.ts → const-B09gl0KV.d.ts} +1 -1
- package/dist/{const-C9I6r5Wa.d.cts → const-Coyx_VW8.d.cts} +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/{payload-types-D8fN_vZR.d.cts → payload-types-fKs2QoML.d.cts} +226 -66
- package/dist/{payload-types-D8fN_vZR.d.ts → payload-types-fKs2QoML.d.ts} +226 -66
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/ui/flow.cjs +7 -2
- package/dist/ui/flow.cjs.map +1 -1
- package/dist/ui/flow.d.cts +4 -0
- package/dist/ui/flow.d.ts +4 -0
- package/dist/ui/flow.js +7 -2
- package/dist/ui/flow.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.cjs +3 -2
- package/dist/ui/image.cjs.map +1 -1
- package/dist/ui/image.d.cts +3 -1
- package/dist/ui/image.d.ts +3 -1
- package/dist/ui/image.js +3 -2
- package/dist/ui/image.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/{webhook-BkwMrrL1.d.ts → webhook-DbotFj9m.d.ts} +2 -2
- package/dist/{webhook-Dbx-pRib.d.cts → webhook-FMfp_EdX.d.cts} +2 -2
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +3 -3
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,
|