@wise/dynamic-flow-client 2.8.6 → 2.8.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/build/main.js CHANGED
@@ -4161,20 +4161,16 @@ var mapConstSchemaToOption = (schema, controlType) => {
4161
4161
  return mapConstSchemaToRadioOption(schema);
4162
4162
  }
4163
4163
  };
4164
- var mapConstSchemaToRadioOption = (schema) => {
4165
- return __spreadValues(__spreadValues(__spreadValues({
4166
- // TODO: LOW avoid type assertion -- using || '' would fail some tests
4167
- label: schema.title,
4168
- value: schema.const
4169
- }, getOptionDescription(schema.title, schema.description)), getAvatarPropertyForRadioOption(schema)), getDisabled(schema.disabled));
4170
- };
4171
- var mapConstSchemaToSelectOption = (schema) => {
4172
- return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
4173
- // TODO: LOW avoid type assertion -- using || '' would fail some tests
4174
- label: schema.title,
4175
- value: schema.const
4176
- }, getOptionDescription(schema.title, schema.description)), getIconPropertyForSelectOption(schema.icon)), mapImage(schema.image)), getDisabled(schema.disabled)), mapKeywordsToSearchStrings(schema.keywords));
4177
- };
4164
+ var mapConstSchemaToRadioOption = (schema) => __spreadValues(__spreadValues(__spreadValues({
4165
+ // TODO: LOW avoid type assertion -- using || '' would fail some tests
4166
+ label: schema.title,
4167
+ value: schema.const
4168
+ }, getRadioOptionDescription(schema.title, schema.description)), getAvatarPropertyForRadioOption(schema)), getDisabled(schema.disabled));
4169
+ var mapConstSchemaToSelectOption = (schema) => __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
4170
+ // TODO: LOW avoid type assertion -- using || '' would fail some tests
4171
+ label: schema.title,
4172
+ value: schema.const
4173
+ }, getOptionDescription(schema.title, schema.description)), getIconPropertyForSelectOption(schema.icon)), mapImage(schema.image)), getDisabled(schema.disabled)), mapKeywordsToSearchStrings(schema.keywords));
4178
4174
  var mapKeywordsToSearchStrings = (searchStrings) => isArray(searchStrings) ? { searchStrings } : {};
4179
4175
  var mapImage = (image) => {
4180
4176
  if (image == null ? void 0 : image.url) {
@@ -4222,6 +4218,12 @@ var getOptionDescription = (title, description) => {
4222
4218
  }
4223
4219
  return void 0;
4224
4220
  };
4221
+ var getRadioOptionDescription = (title, description) => {
4222
+ if (title && description) {
4223
+ return { note: description };
4224
+ }
4225
+ return void 0;
4226
+ };
4225
4227
  var getDisabled = (disabled) => {
4226
4228
  if (!isUndefined(disabled) && !isNull(disabled)) {
4227
4229
  return { disabled };