@wise/dynamic-flow-client 4.18.2 → 4.18.4

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 CHANGED
@@ -1696,7 +1696,7 @@ var multiSelectInputComponentToProps = (component, rendererMapperProps) => {
1696
1696
  autoComplete,
1697
1697
  maxItems,
1698
1698
  minItems,
1699
- options,
1699
+ options: options.map((option) => __spreadValues(__spreadValues({}, option), mapMediaToLegacyProps(option.media))),
1700
1700
  selectedIndices,
1701
1701
  onSelect: onSelect.bind(component)
1702
1702
  });
@@ -1958,7 +1958,7 @@ var selectInputComponentToProps = (component, rendererMapperProps) => {
1958
1958
  const _a = inputComponentToProps(component, "input-select"), { value } = _a, props = __objRest(_a, ["value"]);
1959
1959
  return __spreadProps(__spreadValues(__spreadValues({}, props), rendererMapperProps), {
1960
1960
  autoComplete,
1961
- options,
1961
+ options: options.map((option) => __spreadValues(__spreadValues({}, option), mapMediaToLegacyProps(option.media))),
1962
1962
  selectedIndex,
1963
1963
  onSelect: onSelect.bind(component),
1964
1964
  children: rendererMapperProps.render(childrenProps),
@@ -4089,9 +4089,9 @@ var schemaHasValidationAsync = (schema) => Boolean("validationAsync" in schema &
4089
4089
 
4090
4090
  // src/revamp/domain/features/summary/summary-utils.ts
4091
4091
  var getSummariser = (schema) => (value) => {
4092
- const { summary, icon, image } = schema;
4092
+ const { summary, icon, image, media } = schema;
4093
4093
  const stringValueOrNull = isString(value) ? value : null;
4094
- return summaryIfProvides(summary, { value: stringValueOrNull, icon, image });
4094
+ return summaryIfProvides(summary, { value: stringValueOrNull, icon, image, media });
4095
4095
  };
4096
4096
  var getConstSummary = (schema, model) => {
4097
4097
  const { summary, icon, image, media } = schema;
package/build/main.mjs CHANGED
@@ -1653,7 +1653,7 @@ var multiSelectInputComponentToProps = (component, rendererMapperProps) => {
1653
1653
  autoComplete,
1654
1654
  maxItems,
1655
1655
  minItems,
1656
- options,
1656
+ options: options.map((option) => __spreadValues(__spreadValues({}, option), mapMediaToLegacyProps(option.media))),
1657
1657
  selectedIndices,
1658
1658
  onSelect: onSelect.bind(component)
1659
1659
  });
@@ -1915,7 +1915,7 @@ var selectInputComponentToProps = (component, rendererMapperProps) => {
1915
1915
  const _a = inputComponentToProps(component, "input-select"), { value } = _a, props = __objRest(_a, ["value"]);
1916
1916
  return __spreadProps(__spreadValues(__spreadValues({}, props), rendererMapperProps), {
1917
1917
  autoComplete,
1918
- options,
1918
+ options: options.map((option) => __spreadValues(__spreadValues({}, option), mapMediaToLegacyProps(option.media))),
1919
1919
  selectedIndex,
1920
1920
  onSelect: onSelect.bind(component),
1921
1921
  children: rendererMapperProps.render(childrenProps),
@@ -4046,9 +4046,9 @@ var schemaHasValidationAsync = (schema) => Boolean("validationAsync" in schema &
4046
4046
 
4047
4047
  // src/revamp/domain/features/summary/summary-utils.ts
4048
4048
  var getSummariser = (schema) => (value) => {
4049
- const { summary, icon, image } = schema;
4049
+ const { summary, icon, image, media } = schema;
4050
4050
  const stringValueOrNull = isString(value) ? value : null;
4051
- return summaryIfProvides(summary, { value: stringValueOrNull, icon, image });
4051
+ return summaryIfProvides(summary, { value: stringValueOrNull, icon, image, media });
4052
4052
  };
4053
4053
  var getConstSummary = (schema, model) => {
4054
4054
  const { summary, icon, image, media } = schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "4.18.2",
3
+ "version": "4.18.4",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -78,8 +78,8 @@
78
78
  "stylelint-value-no-unknown-custom-properties": "6.0.1",
79
79
  "tsx": "4.20.5",
80
80
  "typescript": "5.9.2",
81
- "@wise/dynamic-flow-fixtures": "0.0.1",
82
- "@wise/dynamic-flow-renderers": "0.0.0"
81
+ "@wise/dynamic-flow-renderers": "0.0.0",
82
+ "@wise/dynamic-flow-fixtures": "0.0.1"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@transferwise/components": "^46.104.0",