@wise/dynamic-flow-client-internal 5.16.0 → 5.16.1
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/build/main.js +14 -2
- package/build/main.mjs +14 -2
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +4 -4
package/build/main.js
CHANGED
|
@@ -141,7 +141,7 @@ var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
|
|
|
141
141
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
142
142
|
var appVersion = (
|
|
143
143
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
144
|
-
typeof process !== "undefined" ? "5.16.
|
|
144
|
+
typeof process !== "undefined" ? "5.16.1" : "0.0.0"
|
|
145
145
|
);
|
|
146
146
|
|
|
147
147
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -3630,7 +3630,7 @@ var StatusListRenderer = {
|
|
|
3630
3630
|
{
|
|
3631
3631
|
title: itemTitle,
|
|
3632
3632
|
subtitle: description,
|
|
3633
|
-
media:
|
|
3633
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(StatusListItemMedia, __spreadValues({}, item)),
|
|
3634
3634
|
additionalInfo: callToAction ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3635
3635
|
import_components53.ListItem.AdditionalInfo,
|
|
3636
3636
|
{
|
|
@@ -3648,6 +3648,18 @@ var StatusListRenderer = {
|
|
|
3648
3648
|
})
|
|
3649
3649
|
] })
|
|
3650
3650
|
};
|
|
3651
|
+
var StatusListItemMedia = ({ icon, status }) => {
|
|
3652
|
+
if (!icon) {
|
|
3653
|
+
return void 0;
|
|
3654
|
+
}
|
|
3655
|
+
if ("name" in icon) {
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.AvatarView, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DynamicIcon_default, { name: icon.name }) });
|
|
3657
|
+
}
|
|
3658
|
+
if ("text" in icon) {
|
|
3659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_components53.AvatarView, { badge: { status: mapStatus(status) }, children: icon.text });
|
|
3660
|
+
}
|
|
3661
|
+
return void 0;
|
|
3662
|
+
};
|
|
3651
3663
|
var mapStatus = (status) => {
|
|
3652
3664
|
switch (status) {
|
|
3653
3665
|
case "done":
|
package/build/main.mjs
CHANGED
|
@@ -123,7 +123,7 @@ import { useDynamicFlow } from "@wise/dynamic-flow-client";
|
|
|
123
123
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
124
124
|
var appVersion = (
|
|
125
125
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
126
|
-
typeof process !== "undefined" ? "5.16.
|
|
126
|
+
typeof process !== "undefined" ? "5.16.1" : "0.0.0"
|
|
127
127
|
);
|
|
128
128
|
|
|
129
129
|
// src/dynamicFlow/context-menu/useContextMenu.tsx
|
|
@@ -3615,7 +3615,7 @@ var StatusListRenderer = {
|
|
|
3615
3615
|
{
|
|
3616
3616
|
title: itemTitle,
|
|
3617
3617
|
subtitle: description,
|
|
3618
|
-
media:
|
|
3618
|
+
media: /* @__PURE__ */ jsx76(StatusListItemMedia, __spreadValues({}, item)),
|
|
3619
3619
|
additionalInfo: callToAction ? /* @__PURE__ */ jsx76(
|
|
3620
3620
|
ListItem12.AdditionalInfo,
|
|
3621
3621
|
{
|
|
@@ -3633,6 +3633,18 @@ var StatusListRenderer = {
|
|
|
3633
3633
|
})
|
|
3634
3634
|
] })
|
|
3635
3635
|
};
|
|
3636
|
+
var StatusListItemMedia = ({ icon, status }) => {
|
|
3637
|
+
if (!icon) {
|
|
3638
|
+
return void 0;
|
|
3639
|
+
}
|
|
3640
|
+
if ("name" in icon) {
|
|
3641
|
+
return /* @__PURE__ */ jsx76(AvatarView4, { badge: { status: mapStatus(status) }, children: /* @__PURE__ */ jsx76(DynamicIcon_default, { name: icon.name }) });
|
|
3642
|
+
}
|
|
3643
|
+
if ("text" in icon) {
|
|
3644
|
+
return /* @__PURE__ */ jsx76(AvatarView4, { badge: { status: mapStatus(status) }, children: icon.text });
|
|
3645
|
+
}
|
|
3646
|
+
return void 0;
|
|
3647
|
+
};
|
|
3636
3648
|
var mapStatus = (status) => {
|
|
3637
3649
|
switch (status) {
|
|
3638
3650
|
case "done":
|