@wise/dynamic-flow-client-internal 4.30.0 → 4.31.0

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.
@@ -20,7 +20,7 @@
20
20
  "df.wise.CopyFeedback.copyFailed": "คัดลอกไปยังคลิปบอร์ดไม่สำเร็จ",
21
21
  "df.wise.Decision.all": "ทั้งหมด",
22
22
  "df.wise.Decision.currenciesWithAccountDetails": "สกุลเงินต่างๆ พร้อมรายละเอียดบัญชี",
23
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
23
+ "df.wise.Decision.filterPlaceholder": "เริ่มพิมพ์เพื่อค้นหาเลย",
24
24
  "df.wise.Decision.noResults": "ไม่มีผลลัพธ์",
25
25
  "df.wise.Decision.popular": "สกุลยอดนิยม",
26
26
  "df.wise.Decision.recent": "ล่าสุด",
package/build/main.js CHANGED
@@ -512,9 +512,7 @@ var AvatarMedia = ({
512
512
  {
513
513
  "aria-label": accessibilityDescription,
514
514
  size,
515
- badge: badge ? __spreadProps(__spreadValues({}, badge), {
516
- type: "reference"
517
- }) : void 0,
515
+ badge: badge ? __spreadProps(__spreadValues({}, getBadge(badge)), { type: "reference" }) : void 0,
518
516
  style: { backgroundColor, color },
519
517
  children: icon != null ? icon : asset
520
518
  }
@@ -534,6 +532,35 @@ var AvatarMedia = ({
534
532
  }
535
533
  );
536
534
  };
535
+ var DEFAULT_BADGE_BACKGROUND_COLOR = "var(--color-background-neutral)";
536
+ var getBadge = ({
537
+ backgroundColor,
538
+ color,
539
+ asset,
540
+ icon
541
+ }) => {
542
+ if (backgroundColor || color) {
543
+ return {
544
+ asset: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
545
+ "div",
546
+ {
547
+ className: "d-flex align-items-center justify-content-center",
548
+ style: {
549
+ backgroundColor: backgroundColor != null ? backgroundColor : DEFAULT_BADGE_BACKGROUND_COLOR,
550
+ color,
551
+ width: "100%",
552
+ height: "100%"
553
+ },
554
+ children: icon || asset
555
+ }
556
+ )
557
+ };
558
+ }
559
+ return {
560
+ icon,
561
+ asset
562
+ };
563
+ };
537
564
 
538
565
  // ../renderers/src/utils/image-utils.tsx
539
566
  var import_components7 = require("@transferwise/components");
@@ -4194,7 +4221,7 @@ var th_default = {
4194
4221
  "df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
4195
4222
  "df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
4196
4223
  "df.wise.Decision.currenciesWithAccountDetails": "\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19\u0E15\u0E48\u0E32\u0E07\u0E46 \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E1A\u0E31\u0E0D\u0E0A\u0E35",
4197
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4224
+ "df.wise.Decision.filterPlaceholder": "\u0E40\u0E23\u0E34\u0E48\u0E21\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E40\u0E25\u0E22",
4198
4225
  "df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
4199
4226
  "df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
4200
4227
  "df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
@@ -4390,7 +4417,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
4390
4417
  // src/dynamicFlow/telemetry/app-version.ts
4391
4418
  var appVersion = (
4392
4419
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
4393
- typeof process !== "undefined" ? "4.30.0" : "0.0.0"
4420
+ typeof process !== "undefined" ? "4.31.0" : "0.0.0"
4394
4421
  );
4395
4422
 
4396
4423
  // src/dynamicFlow/telemetry/getLogEvent.ts
package/build/main.mjs CHANGED
@@ -469,9 +469,7 @@ var AvatarMedia = ({
469
469
  {
470
470
  "aria-label": accessibilityDescription,
471
471
  size,
472
- badge: badge ? __spreadProps(__spreadValues({}, badge), {
473
- type: "reference"
474
- }) : void 0,
472
+ badge: badge ? __spreadProps(__spreadValues({}, getBadge(badge)), { type: "reference" }) : void 0,
475
473
  style: { backgroundColor, color },
476
474
  children: icon != null ? icon : asset
477
475
  }
@@ -491,6 +489,35 @@ var AvatarMedia = ({
491
489
  }
492
490
  );
493
491
  };
492
+ var DEFAULT_BADGE_BACKGROUND_COLOR = "var(--color-background-neutral)";
493
+ var getBadge = ({
494
+ backgroundColor,
495
+ color,
496
+ asset,
497
+ icon
498
+ }) => {
499
+ if (backgroundColor || color) {
500
+ return {
501
+ asset: /* @__PURE__ */ jsx13(
502
+ "div",
503
+ {
504
+ className: "d-flex align-items-center justify-content-center",
505
+ style: {
506
+ backgroundColor: backgroundColor != null ? backgroundColor : DEFAULT_BADGE_BACKGROUND_COLOR,
507
+ color,
508
+ width: "100%",
509
+ height: "100%"
510
+ },
511
+ children: icon || asset
512
+ }
513
+ )
514
+ };
515
+ }
516
+ return {
517
+ icon,
518
+ asset
519
+ };
520
+ };
494
521
 
495
522
  // ../renderers/src/utils/image-utils.tsx
496
523
  import { AvatarView as AvatarView2 } from "@transferwise/components";
@@ -4160,7 +4187,7 @@ var th_default = {
4160
4187
  "df.wise.CopyFeedback.copyFailed": "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E04\u0E25\u0E34\u0E1B\u0E1A\u0E2D\u0E23\u0E4C\u0E14\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
4161
4188
  "df.wise.Decision.all": "\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
4162
4189
  "df.wise.Decision.currenciesWithAccountDetails": "\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19\u0E15\u0E48\u0E32\u0E07\u0E46 \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E1A\u0E31\u0E0D\u0E0A\u0E35",
4163
- "df.wise.Decision.filterPlaceholder": "Start typing to search",
4190
+ "df.wise.Decision.filterPlaceholder": "\u0E40\u0E23\u0E34\u0E48\u0E21\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E40\u0E25\u0E22",
4164
4191
  "df.wise.Decision.noResults": "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
4165
4192
  "df.wise.Decision.popular": "\u0E2A\u0E01\u0E38\u0E25\u0E22\u0E2D\u0E14\u0E19\u0E34\u0E22\u0E21",
4166
4193
  "df.wise.Decision.recent": "\u0E25\u0E48\u0E32\u0E2A\u0E38\u0E14",
@@ -4360,7 +4387,7 @@ import {
4360
4387
  // src/dynamicFlow/telemetry/app-version.ts
4361
4388
  var appVersion = (
4362
4389
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
4363
- typeof process !== "undefined" ? "4.30.0" : "0.0.0"
4390
+ typeof process !== "undefined" ? "4.31.0" : "0.0.0"
4364
4391
  );
4365
4392
 
4366
4393
  // src/dynamicFlow/telemetry/getLogEvent.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "4.30.0",
3
+ "version": "4.31.0",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -74,9 +74,9 @@
74
74
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
75
75
  "tsx": "4.20.5",
76
76
  "typescript": "5.9.2",
77
+ "@wise/dynamic-flow-renderers": "0.0.0",
77
78
  "@wise/dynamic-flow-fixtures": "0.0.1",
78
- "@wise/dynamic-flow-types": "3.15.0",
79
- "@wise/dynamic-flow-renderers": "0.0.0"
79
+ "@wise/dynamic-flow-types": "3.15.1"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@transferwise/components": "^46.104.0",
@@ -91,8 +91,8 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "classnames": "2.5.1",
94
- "@wise/dynamic-flow-client": "4.18.0",
95
- "@wise/dynamic-flow-types": "3.15.0"
94
+ "@wise/dynamic-flow-client": "4.18.1",
95
+ "@wise/dynamic-flow-types": "3.15.1"
96
96
  },
97
97
  "scripts": {
98
98
  "dev": "pnpm build:visual-tests && storybook dev -p 3005",