@wise/dynamic-flow-client-internal 5.13.2 → 5.13.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/build/main.css +26 -15
- package/build/main.js +5 -5
- package/build/main.mjs +5 -5
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +19 -19
package/build/main.css
CHANGED
|
@@ -90,41 +90,50 @@
|
|
|
90
90
|
justify-content: end;
|
|
91
91
|
align-items: end;
|
|
92
92
|
}
|
|
93
|
-
.df-image img {
|
|
94
|
-
height: auto;
|
|
93
|
+
.df-image img.df-reserve-space {
|
|
95
94
|
width: 100%;
|
|
95
|
+
/*
|
|
96
|
+
The auto keyword in aspect-ratio: auto 1 / 1 tells the browser to prefer the element's intrinsic aspect ratio (once the image is loaded) over the specified 1/1 fallback. So:
|
|
97
|
+
Loading: no intrinsic ratio yet → uses 1/1 → square placeholder reserved
|
|
98
|
+
Loaded: intrinsic ratio available → auto wins → image renders at its natural shape
|
|
99
|
+
*/
|
|
100
|
+
aspect-ratio: auto 1 / 1;
|
|
101
|
+
height: auto;
|
|
102
|
+
}
|
|
103
|
+
.df-image img:not([src]) {
|
|
104
|
+
visibility: hidden;
|
|
96
105
|
}
|
|
97
106
|
/* wide screens (or default) */
|
|
98
|
-
.df-image.xs img {
|
|
107
|
+
.df-image.xs img.df-reserve-space {
|
|
99
108
|
width: 100px;
|
|
100
109
|
}
|
|
101
|
-
.df-image.sm img {
|
|
110
|
+
.df-image.sm img.df-reserve-space {
|
|
102
111
|
width: 200px;
|
|
103
112
|
}
|
|
104
|
-
.df-image.md img {
|
|
113
|
+
.df-image.md img.df-reserve-space {
|
|
105
114
|
width: 300px;
|
|
106
115
|
}
|
|
107
|
-
.df-image.lg img {
|
|
116
|
+
.df-image.lg img.df-reserve-space {
|
|
108
117
|
width: 500px;
|
|
109
118
|
}
|
|
110
|
-
.df-image.xl img {
|
|
119
|
+
.df-image.xl img.df-reserve-space {
|
|
111
120
|
max-width: 600px;
|
|
112
121
|
}
|
|
113
122
|
/* narrow screens */
|
|
114
123
|
@media (width <576px) {
|
|
115
|
-
.df-image.xs img {
|
|
124
|
+
.df-image.xs img.df-reserve-space {
|
|
116
125
|
width: 50px;
|
|
117
126
|
}
|
|
118
127
|
|
|
119
|
-
.df-image.sm img {
|
|
128
|
+
.df-image.sm img.df-reserve-space {
|
|
120
129
|
width: 100px;
|
|
121
130
|
}
|
|
122
131
|
|
|
123
|
-
.df-image.md img {
|
|
132
|
+
.df-image.md img.df-reserve-space {
|
|
124
133
|
width: 200px;
|
|
125
134
|
}
|
|
126
135
|
|
|
127
|
-
.df-image.lg img {
|
|
136
|
+
.df-image.lg img.df-reserve-space {
|
|
128
137
|
width: 300px;
|
|
129
138
|
}
|
|
130
139
|
}
|
|
@@ -137,19 +146,19 @@
|
|
|
137
146
|
}
|
|
138
147
|
/* narrow container */
|
|
139
148
|
@container (max-width: 576px) {
|
|
140
|
-
.df-image.xs img {
|
|
149
|
+
.df-image.xs img.df-reserve-space {
|
|
141
150
|
width: 50px;
|
|
142
151
|
}
|
|
143
152
|
|
|
144
|
-
.df-image.sm img {
|
|
153
|
+
.df-image.sm img.df-reserve-space {
|
|
145
154
|
width: 100px;
|
|
146
155
|
}
|
|
147
156
|
|
|
148
|
-
.df-image.md img {
|
|
157
|
+
.df-image.md img.df-reserve-space {
|
|
149
158
|
width: 200px;
|
|
150
159
|
}
|
|
151
160
|
|
|
152
|
-
.df-image.lg img {
|
|
161
|
+
.df-image.lg img.df-reserve-space {
|
|
153
162
|
width: 300px;
|
|
154
163
|
}
|
|
155
164
|
}
|
|
@@ -235,6 +244,7 @@
|
|
|
235
244
|
border-bottom: 1px solid #ddd;
|
|
236
245
|
margin: 4px;
|
|
237
246
|
margin-bottom: 8px;
|
|
247
|
+
color: #333;
|
|
238
248
|
}
|
|
239
249
|
|
|
240
250
|
.menu-button {
|
|
@@ -246,6 +256,7 @@
|
|
|
246
256
|
cursor: pointer;
|
|
247
257
|
font-size: 14px;
|
|
248
258
|
padding: 6px 8px;
|
|
259
|
+
color: #333;
|
|
249
260
|
}
|
|
250
261
|
|
|
251
262
|
.menu-button:last-child {
|
package/build/main.js
CHANGED
|
@@ -207,7 +207,7 @@ var useDFContextMenu = (controller) => {
|
|
|
207
207
|
return step ? toBase64(JSON.stringify(step, null, 2)) : null;
|
|
208
208
|
};
|
|
209
209
|
return useContextMenu({
|
|
210
|
-
title: "DynamicFlow Menu",
|
|
210
|
+
title: "DynamicFlow Menu (Dev/Staging only)",
|
|
211
211
|
items: isDevOrStaging() ? [
|
|
212
212
|
{
|
|
213
213
|
label: "Open in Sandbox",
|
|
@@ -275,7 +275,7 @@ var import_react24 = require("react");
|
|
|
275
275
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
276
276
|
var appVersion = (
|
|
277
277
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
278
|
-
typeof process !== "undefined" ? "5.13.
|
|
278
|
+
typeof process !== "undefined" ? "5.13.3" : "0.0.0"
|
|
279
279
|
);
|
|
280
280
|
|
|
281
281
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -503,7 +503,7 @@ var countryUrnPrefix = "urn:wise:countries:";
|
|
|
503
503
|
var currencyUrnPrefix = "urn:wise:currencies:";
|
|
504
504
|
var isUrnFlag = (uri) => (uri.startsWith(countryUrnPrefix) || uri.startsWith(currencyUrnPrefix)) && uri.endsWith(":image");
|
|
505
505
|
function UrnFlag({ size, urn }) {
|
|
506
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_art.Flag, { code: getCode(urn), intrinsicSize: size });
|
|
506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_art.Flag, { code: getCode(urn), intrinsicSize: size, className: "df-reserve-space" });
|
|
507
507
|
}
|
|
508
508
|
var getCode = (urn) => {
|
|
509
509
|
return urn.replace(countryUrnPrefix, "").replace(currencyUrnPrefix, "").replace(":image", "").split("?")[0];
|
|
@@ -1646,10 +1646,10 @@ function UrlImage({
|
|
|
1646
1646
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1647
1647
|
}
|
|
1648
1648
|
}, [uri, httpClient]);
|
|
1649
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1650
1650
|
import_components21.Image,
|
|
1651
1651
|
{
|
|
1652
|
-
className:
|
|
1652
|
+
className: "df-reserve-space",
|
|
1653
1653
|
alt: accessibilityDescription != null ? accessibilityDescription : "",
|
|
1654
1654
|
src: imageSource,
|
|
1655
1655
|
stretch: true,
|
package/build/main.mjs
CHANGED
|
@@ -189,7 +189,7 @@ var useDFContextMenu = (controller) => {
|
|
|
189
189
|
return step ? toBase64(JSON.stringify(step, null, 2)) : null;
|
|
190
190
|
};
|
|
191
191
|
return useContextMenu({
|
|
192
|
-
title: "DynamicFlow Menu",
|
|
192
|
+
title: "DynamicFlow Menu (Dev/Staging only)",
|
|
193
193
|
items: isDevOrStaging() ? [
|
|
194
194
|
{
|
|
195
195
|
label: "Open in Sandbox",
|
|
@@ -257,7 +257,7 @@ import { useMemo as useMemo2 } from "react";
|
|
|
257
257
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
258
258
|
var appVersion = (
|
|
259
259
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
260
|
-
typeof process !== "undefined" ? "5.13.
|
|
260
|
+
typeof process !== "undefined" ? "5.13.3" : "0.0.0"
|
|
261
261
|
);
|
|
262
262
|
|
|
263
263
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -485,7 +485,7 @@ var countryUrnPrefix = "urn:wise:countries:";
|
|
|
485
485
|
var currencyUrnPrefix = "urn:wise:currencies:";
|
|
486
486
|
var isUrnFlag = (uri) => (uri.startsWith(countryUrnPrefix) || uri.startsWith(currencyUrnPrefix)) && uri.endsWith(":image");
|
|
487
487
|
function UrnFlag({ size, urn }) {
|
|
488
|
-
return /* @__PURE__ */ jsx5(Flag, { code: getCode(urn), intrinsicSize: size });
|
|
488
|
+
return /* @__PURE__ */ jsx5(Flag, { code: getCode(urn), intrinsicSize: size, className: "df-reserve-space" });
|
|
489
489
|
}
|
|
490
490
|
var getCode = (urn) => {
|
|
491
491
|
return urn.replace(countryUrnPrefix, "").replace(currencyUrnPrefix, "").replace(":image", "").split("?")[0];
|
|
@@ -1628,10 +1628,10 @@ function UrlImage({
|
|
|
1628
1628
|
void getImageSource(httpClient, uri).then(setImageSource);
|
|
1629
1629
|
}
|
|
1630
1630
|
}, [uri, httpClient]);
|
|
1631
|
-
return /* @__PURE__ */ jsx36("div", { className: `df-image ${align} ${size || "md"}`, children: /* @__PURE__ */ jsx36(
|
|
1631
|
+
return /* @__PURE__ */ jsx36("div", { className: `df-image ${align} ${size || "md"} ${getMargin(margin)}`, children: /* @__PURE__ */ jsx36(
|
|
1632
1632
|
Image,
|
|
1633
1633
|
{
|
|
1634
|
-
className:
|
|
1634
|
+
className: "df-reserve-space",
|
|
1635
1635
|
alt: accessibilityDescription != null ? accessibilityDescription : "",
|
|
1636
1636
|
src: imageSource,
|
|
1637
1637
|
stretch: true,
|