@wise/dynamic-flow-client-internal 4.24.1-experimental-e343995 → 4.25.0-experimental-1ff696a

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
@@ -62,7 +62,7 @@ __export(index_exports, {
62
62
  DynamicFlowLegacy: () => DynamicFlowLegacy,
63
63
  DynamicFlowRevamp: () => DynamicFlowRevamp,
64
64
  DynamicForm: () => DynamicForm,
65
- Header: () => Header10,
65
+ Header: () => Header11,
66
66
  JsonSchemaForm: () => import_dynamic_flow_client4.JsonSchemaForm,
67
67
  findRendererPropsByType: () => import_dynamic_flow_client4.findRendererPropsByType,
68
68
  getMargin: () => getMargin2,
@@ -312,7 +312,6 @@ function Help({ help, onClick }) {
312
312
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
313
313
  import_components4.Info,
314
314
  {
315
- className: "m-l-1",
316
315
  content: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_components4.Markdown, { config: { link: { target: "_blank" } }, children: help }),
317
316
  presentation: "POPOVER",
318
317
  size: "sm",
@@ -530,86 +529,6 @@ var DateInputRenderer_default = DateInputRenderer;
530
529
 
531
530
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
532
531
  var import_components14 = require("@transferwise/components");
533
- var import_react_intl7 = require("react-intl");
534
-
535
- // ../renderers/src/messages/decision.messages.ts
536
- var import_react_intl5 = require("react-intl");
537
- var decision_messages_default = (0, import_react_intl5.defineMessages)({
538
- all: {
539
- id: "df.wise.Decision.all",
540
- defaultMessage: "All",
541
- description: "Label for the group of options that encompasses all options"
542
- },
543
- popular: {
544
- id: "df.wise.Decision.popular",
545
- defaultMessage: "Popular",
546
- description: "Label for the group of options that are tagged as popular"
547
- },
548
- recent: {
549
- id: "df.wise.Decision.recent",
550
- defaultMessage: "Recent",
551
- description: "Label for the group of options that are tagged as recent"
552
- },
553
- filterPlaceholder: {
554
- id: "df.wise.Decision.filterPlaceholder",
555
- defaultMessage: "Start typing to search",
556
- description: "Placeholder for the filter input"
557
- },
558
- results: {
559
- id: "df.wise.Decision.results",
560
- defaultMessage: "Search results",
561
- description: "Label for the results section"
562
- },
563
- noResults: {
564
- id: "df.wise.Decision.noResults",
565
- defaultMessage: "No results",
566
- description: "Message for if there are no results"
567
- }
568
- });
569
-
570
- // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
571
- var import_react3 = require("react");
572
-
573
- // ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
574
- function filterAndSortDecisionOptions(selectOptions, query) {
575
- const upperQuery = query.toUpperCase().trim();
576
- const filteredItems = selectOptions.filter((option) => {
577
- var _a, _b, _c, _d;
578
- const searchableWords = [
579
- option.title,
580
- option.description,
581
- option.additionalText,
582
- (_a = option.supportingValues) == null ? void 0 : _a.value,
583
- (_b = option.supportingValues) == null ? void 0 : _b.subvalue,
584
- ...(_c = option.keywords) != null ? _c : []
585
- ];
586
- return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
587
- });
588
- return [...filteredItems].sort((a, b) => {
589
- const aTitleUpper = a.title.toUpperCase();
590
- const bTitleUpper = b.title.toUpperCase();
591
- const aTitleStarts = aTitleUpper.startsWith(upperQuery);
592
- const bTitleStarts = bTitleUpper.startsWith(upperQuery);
593
- if (aTitleStarts && !bTitleStarts) {
594
- return -1;
595
- }
596
- if (!aTitleStarts && bTitleStarts) {
597
- return 1;
598
- }
599
- const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
600
- const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
601
- if (aWordStarts && !bWordStarts) {
602
- return -1;
603
- }
604
- if (!aWordStarts && bWordStarts) {
605
- return 1;
606
- }
607
- return a.title.localeCompare(b.title);
608
- });
609
- }
610
-
611
- // ../renderers/src/DecisionRenderer/DecisionList.tsx
612
- var import_components12 = require("@transferwise/components");
613
532
 
614
533
  // ../renderers/src/utils/UrnFlag.tsx
615
534
  var import_art = require("@wise/art");
@@ -874,64 +793,71 @@ var import_jsx_runtime22 = require("react/jsx-runtime");
874
793
  var getInlineMedia = (media) => media ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Media, { media, preferAvatar: false, size: 24 }) : null;
875
794
 
876
795
  // ../renderers/src/DecisionRenderer/DecisionList.tsx
877
- var import_jsx_runtime23 = require("react/jsx-runtime");
878
- var DecisionList = ({
879
- options,
880
- control,
881
- className
882
- }) => {
883
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.NavigationOptionsList, { children: options.map((option) => {
884
- const { description, disabled, media, title: itemTitle, tag, onClick } = option;
885
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
886
- import_components12.NavigationOption,
887
- {
888
- title: itemTitle,
889
- content: description,
890
- disabled,
891
- media: media ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
892
- OptionMedia,
893
- {
894
- media,
895
- preferAvatar: control === "with-avatar" || tag === "with-avatar"
896
- }
897
- ) : null,
898
- showMediaCircle: false,
899
- showMediaAtAllSizes: true,
900
- onClick
901
- },
902
- JSON.stringify(option)
903
- );
904
- }) }) });
905
- };
906
- var DecisionList_default = DecisionList;
796
+ var import_components13 = require("@transferwise/components");
907
797
 
908
798
  // ../renderers/src/DecisionRenderer/GroupedList.tsx
909
- var import_components13 = require("@transferwise/components");
799
+ var import_components12 = require("@transferwise/components");
910
800
  var import_react_intl6 = require("react-intl");
911
- var import_jsx_runtime24 = require("react/jsx-runtime");
801
+
802
+ // ../renderers/src/messages/decision.messages.ts
803
+ var import_react_intl5 = require("react-intl");
804
+ var decision_messages_default = (0, import_react_intl5.defineMessages)({
805
+ all: {
806
+ id: "df.wise.Decision.all",
807
+ defaultMessage: "All",
808
+ description: "Label for the group of options that encompasses all options"
809
+ },
810
+ popular: {
811
+ id: "df.wise.Decision.popular",
812
+ defaultMessage: "Popular",
813
+ description: "Label for the group of options that are tagged as popular"
814
+ },
815
+ recent: {
816
+ id: "df.wise.Decision.recent",
817
+ defaultMessage: "Recent",
818
+ description: "Label for the group of options that are tagged as recent"
819
+ },
820
+ filterPlaceholder: {
821
+ id: "df.wise.Decision.filterPlaceholder",
822
+ defaultMessage: "Start typing to search",
823
+ description: "Placeholder for the filter input"
824
+ },
825
+ results: {
826
+ id: "df.wise.Decision.results",
827
+ defaultMessage: "Search results",
828
+ description: "Label for the results section"
829
+ },
830
+ noResults: {
831
+ id: "df.wise.Decision.noResults",
832
+ defaultMessage: "No results",
833
+ description: "Message for if there are no results"
834
+ }
835
+ });
836
+
837
+ // ../renderers/src/DecisionRenderer/GroupedList.tsx
838
+ var import_jsx_runtime23 = require("react/jsx-runtime");
912
839
  var OPTION_GROUPS = {
913
840
  popular: "popular",
914
841
  recent: "recent"
915
842
  };
916
- var GroupedList = ({
917
- options,
918
- control
919
- }) => {
843
+ var GroupedList = (_a) => {
844
+ var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
920
845
  const { formatMessage } = (0, import_react_intl6.useIntl)();
846
+ const { options } = rest;
921
847
  const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
922
848
  const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
923
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
924
- popularOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
925
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
926
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options: popularOptions, control })
849
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
850
+ popularOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components12.Section, { children: [
851
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
852
+ renderDecisionList2(__spreadProps(__spreadValues({}, rest), { options: popularOptions }))
927
853
  ] }) : null,
928
- recentOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
929
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
930
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options: recentOptions, control })
854
+ recentOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components12.Section, { children: [
855
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
856
+ renderDecisionList2(__spreadProps(__spreadValues({}, rest), { options: recentOptions }))
931
857
  ] }) : null,
932
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_components13.Section, { children: [
933
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
934
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DecisionList_default, { options, control })
858
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_components12.Section, { children: [
859
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components12.Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
860
+ renderDecisionList2(rest)
935
861
  ] })
936
862
  ] });
937
863
  };
@@ -940,26 +866,69 @@ var isGroupedDecision = (options) => {
940
866
  return options.some(({ tag }) => tag && possibleGroups.includes(tag));
941
867
  };
942
868
 
943
- // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
944
- var import_jsx_runtime25 = require("react/jsx-runtime");
945
- var DecisionRenderer = {
946
- canRenderType: "decision",
947
- render: (props) => {
948
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getMargin(props.margin), children: [
949
- props.title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.Header, { as: "h2", title: props.title }),
950
- props.control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
951
- ] });
952
- }
869
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
870
+ var import_react_intl7 = require("react-intl");
871
+ var import_react3 = require("react");
872
+
873
+ // ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
874
+ function filterAndSortDecisionOptions(selectOptions, query) {
875
+ const upperQuery = query.toUpperCase().trim();
876
+ const filteredItems = selectOptions.filter((option) => {
877
+ var _a, _b, _c, _d;
878
+ const searchableWords = [
879
+ option.title,
880
+ option.description,
881
+ option.additionalText,
882
+ (_a = option.supportingValues) == null ? void 0 : _a.value,
883
+ (_b = option.supportingValues) == null ? void 0 : _b.subvalue,
884
+ ...(_c = option.keywords) != null ? _c : []
885
+ ];
886
+ return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
887
+ });
888
+ return [...filteredItems].sort((a, b) => {
889
+ const aTitleUpper = a.title.toUpperCase();
890
+ const bTitleUpper = b.title.toUpperCase();
891
+ const aTitleStarts = aTitleUpper.startsWith(upperQuery);
892
+ const bTitleStarts = bTitleUpper.startsWith(upperQuery);
893
+ if (aTitleStarts && !bTitleStarts) {
894
+ return -1;
895
+ }
896
+ if (!aTitleStarts && bTitleStarts) {
897
+ return 1;
898
+ }
899
+ const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
900
+ const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
901
+ if (aWordStarts && !bWordStarts) {
902
+ return -1;
903
+ }
904
+ if (!aWordStarts && bWordStarts) {
905
+ return 1;
906
+ }
907
+ return a.title.localeCompare(b.title);
908
+ });
909
+ }
910
+
911
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
912
+ var import_jsx_runtime24 = require("react/jsx-runtime");
913
+ var DecisionWrapper = (props) => {
914
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getMargin(props.margin), children: [
915
+ props.title && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: props.title }),
916
+ props.control === "filtered" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UnfilteredDecisionList, __spreadValues({}, props))
917
+ ] });
918
+ };
919
+ var UnfilteredDecisionList = (_a) => {
920
+ var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
921
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(GroupedList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
953
922
  };
954
- var UnfilteredDecisionList = ({ control, options }) => isGroupedDecision(options) ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedList, { options, control }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DecisionList_default, { options, control });
955
- var FilteredDecisionList = ({ options, control }) => {
923
+ var FilteredDecisionList = (props) => {
956
924
  const { formatMessage } = (0, import_react_intl7.useIntl)();
957
925
  const [query, setQuery] = (0, import_react3.useState)("");
926
+ const { control, options, renderDecisionList: renderDecisionList2 } = props;
958
927
  const filteredOptions = filterAndSortDecisionOptions(options, query);
959
928
  const isGrouped = isGroupedDecision(options);
960
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
961
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
962
- import_components14.SearchInput,
929
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
930
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
931
+ import_components13.SearchInput,
963
932
  {
964
933
  placeholder: formatMessage(decision_messages_default.filterPlaceholder),
965
934
  value: query,
@@ -969,19 +938,49 @@ var FilteredDecisionList = ({ options, control }) => {
969
938
  }
970
939
  }
971
940
  ),
972
- isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupedList, { options, control }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
973
- query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.Header, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
974
- filteredOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
975
- DecisionList_default,
976
- {
977
- options: filteredOptions,
978
- control,
979
- className: query.length === 0 ? "m-t-3" : ""
980
- }
981
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { children: formatMessage(decision_messages_default.noResults) })
941
+ isGrouped && query.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(GroupedList, __spreadValues({}, props)) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
942
+ query.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components13.Header, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
943
+ filteredOptions.length > 0 ? renderDecisionList2({
944
+ control,
945
+ className: query.length === 0 ? "m-t-3" : "",
946
+ options: filteredOptions
947
+ }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { children: formatMessage(decision_messages_default.noResults) })
982
948
  ] })
983
949
  ] });
984
950
  };
951
+
952
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
953
+ var import_jsx_runtime25 = require("react/jsx-runtime");
954
+ var DecisionRenderer = {
955
+ canRenderType: "decision",
956
+ render: (props) => {
957
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
958
+ }
959
+ };
960
+ var renderDecisionList = ({ options, className, control }) => {
961
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_components14.NavigationOptionsList, { children: options.map((option) => {
962
+ const { description, disabled, media, title: itemTitle, tag, onClick } = option;
963
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
964
+ import_components14.NavigationOption,
965
+ {
966
+ title: itemTitle,
967
+ content: description,
968
+ disabled,
969
+ media: media ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
970
+ OptionMedia,
971
+ {
972
+ media,
973
+ preferAvatar: control === "with-avatar" || tag === "with-avatar"
974
+ }
975
+ ) : null,
976
+ showMediaCircle: false,
977
+ showMediaAtAllSizes: true,
978
+ onClick
979
+ },
980
+ JSON.stringify(option)
981
+ );
982
+ }) }) });
983
+ };
985
984
  var DecisionRenderer_default = DecisionRenderer;
986
985
 
987
986
  // ../renderers/src/DividerRenderer.tsx
@@ -2102,11 +2101,10 @@ var ReviewRenderer = {
2102
2101
  definitions: fields.map(
2103
2102
  ({ label, value, help, analyticsId: fieldAnalyticsId }, index) => ({
2104
2103
  key: String(index),
2105
- title: label,
2106
- value: getFieldValue(
2107
- value,
2104
+ value,
2105
+ title: getFieldLabel(
2106
+ label,
2108
2107
  help,
2109
- orientation,
2110
2108
  () => trackEvent("Help Pressed", { layoutItemId: fieldAnalyticsId })
2111
2109
  )
2112
2110
  })
@@ -2132,19 +2130,15 @@ var mapControlToDefinitionListLayout = (control) => {
2132
2130
  return "VERTICAL_ONE_COLUMN";
2133
2131
  }
2134
2132
  };
2135
- var getFieldValue = (value, help, orientation, onClick) => {
2133
+ var getFieldLabel = (label, help, onClick) => {
2136
2134
  if (help) {
2137
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2138
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Help_default, { help, onClick }),
2139
- " ",
2140
- value
2141
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2142
- value,
2135
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
2136
+ label,
2143
2137
  " ",
2144
2138
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Help_default, { help, onClick })
2145
2139
  ] });
2146
2140
  }
2147
- return value;
2141
+ return label;
2148
2142
  };
2149
2143
 
2150
2144
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
@@ -3152,6 +3146,36 @@ var LargeUploadRenderer = {
3152
3146
  }
3153
3147
  };
3154
3148
 
3149
+ // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3150
+ var import_components53 = require("@transferwise/components");
3151
+
3152
+ // ../renderers/src/NewListItem/getInlineAlert.tsx
3153
+ var import_components51 = require("@transferwise/components");
3154
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3155
+
3156
+ // ../renderers/src/NewListItem/getMedia.tsx
3157
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3158
+
3159
+ // ../renderers/src/NewListItem/getAdditionalInfo.tsx
3160
+ var import_components52 = require("@transferwise/components");
3161
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3162
+
3163
+ // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3164
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3165
+
3166
+ // ../renderers/src/NewListItem/NewListRenderer.tsx
3167
+ var import_components54 = require("@transferwise/components");
3168
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3169
+
3170
+ // ../renderers/src/NewListItem/NewReviewRenderer.tsx
3171
+ var import_components55 = require("@transferwise/components");
3172
+ var import_icons4 = require("@transferwise/icons");
3173
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3174
+
3175
+ // ../renderers/src/NewListItem/NewStatusListRenderer.tsx
3176
+ var import_components56 = require("@transferwise/components");
3177
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3178
+
3155
3179
  // ../renderers/src/getWiseRenderers.ts
3156
3180
  var getWiseRenderers = () => [
3157
3181
  AddressValidationButtonRenderer_default,
@@ -3195,12 +3219,12 @@ var getWiseRenderers = () => [
3195
3219
  ];
3196
3220
 
3197
3221
  // ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
3198
- var import_components51 = require("@transferwise/components");
3222
+ var import_components57 = require("@transferwise/components");
3199
3223
  var import_react18 = require("react");
3200
- var import_jsx_runtime73 = require("react/jsx-runtime");
3224
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3201
3225
 
3202
3226
  // src/dynamicFlow/renderers.ts
3203
- var Header10 = Header7;
3227
+ var Header11 = Header7;
3204
3228
  var getMargin2 = getMargin;
3205
3229
 
3206
3230
  // src/i18n/index.ts
@@ -4092,12 +4116,12 @@ var messages_default = (0, import_react_intl21.defineMessages)({
4092
4116
  });
4093
4117
 
4094
4118
  // src/dynamicFlow/DynamicFlow.tsx
4095
- var import_jsx_runtime74 = require("react/jsx-runtime");
4119
+ var import_jsx_runtime81 = require("react/jsx-runtime");
4096
4120
  var wiseRenderers = getWiseRenderers();
4097
4121
  function DynamicFlowLegacy(props) {
4098
4122
  const { customFetch = globalThis.fetch } = props;
4099
4123
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
4100
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
4124
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_dynamic_flow_client2.DynamicFlow, __spreadValues({}, coreProps));
4101
4125
  }
4102
4126
  function DynamicFlowRevamp(props) {
4103
4127
  const {
@@ -4134,7 +4158,7 @@ function DynamicFlowRevamp(props) {
4134
4158
  onLink,
4135
4159
  onCopy
4136
4160
  });
4137
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4161
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_dynamic_flow_client2.DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4138
4162
  }
4139
4163
  var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, ref) {
4140
4164
  const {
@@ -4171,7 +4195,7 @@ var DynamicForm = (0, import_react19.forwardRef)(function DynamicForm2(props, re
4171
4195
  onLink,
4172
4196
  onCopy
4173
4197
  });
4174
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4198
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_dynamic_flow_client2.DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4175
4199
  });
4176
4200
  var useWiseHttpClient = (httpClient) => {
4177
4201
  const { locale } = (0, import_react_intl22.useIntl)();
package/build/main.mjs CHANGED
@@ -272,7 +272,6 @@ function Help({ help, onClick }) {
272
272
  return /* @__PURE__ */ jsx5(
273
273
  Info,
274
274
  {
275
- className: "m-l-1",
276
275
  content: /* @__PURE__ */ jsx5(Markdown, { config: { link: { target: "_blank" } }, children: help }),
277
276
  presentation: "POPOVER",
278
277
  size: "sm",
@@ -489,86 +488,6 @@ var DateInputRenderer = {
489
488
  var DateInputRenderer_default = DateInputRenderer;
490
489
 
491
490
  // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
492
- import { Header as Header2, SearchInput } from "@transferwise/components";
493
- import { useIntl as useIntl4 } from "react-intl";
494
-
495
- // ../renderers/src/messages/decision.messages.ts
496
- import { defineMessages as defineMessages3 } from "react-intl";
497
- var decision_messages_default = defineMessages3({
498
- all: {
499
- id: "df.wise.Decision.all",
500
- defaultMessage: "All",
501
- description: "Label for the group of options that encompasses all options"
502
- },
503
- popular: {
504
- id: "df.wise.Decision.popular",
505
- defaultMessage: "Popular",
506
- description: "Label for the group of options that are tagged as popular"
507
- },
508
- recent: {
509
- id: "df.wise.Decision.recent",
510
- defaultMessage: "Recent",
511
- description: "Label for the group of options that are tagged as recent"
512
- },
513
- filterPlaceholder: {
514
- id: "df.wise.Decision.filterPlaceholder",
515
- defaultMessage: "Start typing to search",
516
- description: "Placeholder for the filter input"
517
- },
518
- results: {
519
- id: "df.wise.Decision.results",
520
- defaultMessage: "Search results",
521
- description: "Label for the results section"
522
- },
523
- noResults: {
524
- id: "df.wise.Decision.noResults",
525
- defaultMessage: "No results",
526
- description: "Message for if there are no results"
527
- }
528
- });
529
-
530
- // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
531
- import { useState as useState3 } from "react";
532
-
533
- // ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
534
- function filterAndSortDecisionOptions(selectOptions, query) {
535
- const upperQuery = query.toUpperCase().trim();
536
- const filteredItems = selectOptions.filter((option) => {
537
- var _a, _b, _c, _d;
538
- const searchableWords = [
539
- option.title,
540
- option.description,
541
- option.additionalText,
542
- (_a = option.supportingValues) == null ? void 0 : _a.value,
543
- (_b = option.supportingValues) == null ? void 0 : _b.subvalue,
544
- ...(_c = option.keywords) != null ? _c : []
545
- ];
546
- return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
547
- });
548
- return [...filteredItems].sort((a, b) => {
549
- const aTitleUpper = a.title.toUpperCase();
550
- const bTitleUpper = b.title.toUpperCase();
551
- const aTitleStarts = aTitleUpper.startsWith(upperQuery);
552
- const bTitleStarts = bTitleUpper.startsWith(upperQuery);
553
- if (aTitleStarts && !bTitleStarts) {
554
- return -1;
555
- }
556
- if (!aTitleStarts && bTitleStarts) {
557
- return 1;
558
- }
559
- const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
560
- const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
561
- if (aWordStarts && !bWordStarts) {
562
- return -1;
563
- }
564
- if (!aWordStarts && bWordStarts) {
565
- return 1;
566
- }
567
- return a.title.localeCompare(b.title);
568
- });
569
- }
570
-
571
- // ../renderers/src/DecisionRenderer/DecisionList.tsx
572
491
  import { NavigationOption, NavigationOptionsList } from "@transferwise/components";
573
492
 
574
493
  // ../renderers/src/utils/UrnFlag.tsx
@@ -834,64 +753,71 @@ import { jsx as jsx22 } from "react/jsx-runtime";
834
753
  var getInlineMedia = (media) => media ? /* @__PURE__ */ jsx22(Media, { media, preferAvatar: false, size: 24 }) : null;
835
754
 
836
755
  // ../renderers/src/DecisionRenderer/DecisionList.tsx
837
- import { jsx as jsx23 } from "react/jsx-runtime";
838
- var DecisionList = ({
839
- options,
840
- control,
841
- className
842
- }) => {
843
- return /* @__PURE__ */ jsx23("div", { className, children: /* @__PURE__ */ jsx23(NavigationOptionsList, { children: options.map((option) => {
844
- const { description, disabled, media, title: itemTitle, tag, onClick } = option;
845
- return /* @__PURE__ */ jsx23(
846
- NavigationOption,
847
- {
848
- title: itemTitle,
849
- content: description,
850
- disabled,
851
- media: media ? /* @__PURE__ */ jsx23(
852
- OptionMedia,
853
- {
854
- media,
855
- preferAvatar: control === "with-avatar" || tag === "with-avatar"
856
- }
857
- ) : null,
858
- showMediaCircle: false,
859
- showMediaAtAllSizes: true,
860
- onClick
861
- },
862
- JSON.stringify(option)
863
- );
864
- }) }) });
865
- };
866
- var DecisionList_default = DecisionList;
756
+ import { Header as Header2, SearchInput } from "@transferwise/components";
867
757
 
868
758
  // ../renderers/src/DecisionRenderer/GroupedList.tsx
869
759
  import { Header, Section } from "@transferwise/components";
870
760
  import { useIntl as useIntl3 } from "react-intl";
871
- import { Fragment, jsx as jsx24, jsxs as jsxs4 } from "react/jsx-runtime";
761
+
762
+ // ../renderers/src/messages/decision.messages.ts
763
+ import { defineMessages as defineMessages3 } from "react-intl";
764
+ var decision_messages_default = defineMessages3({
765
+ all: {
766
+ id: "df.wise.Decision.all",
767
+ defaultMessage: "All",
768
+ description: "Label for the group of options that encompasses all options"
769
+ },
770
+ popular: {
771
+ id: "df.wise.Decision.popular",
772
+ defaultMessage: "Popular",
773
+ description: "Label for the group of options that are tagged as popular"
774
+ },
775
+ recent: {
776
+ id: "df.wise.Decision.recent",
777
+ defaultMessage: "Recent",
778
+ description: "Label for the group of options that are tagged as recent"
779
+ },
780
+ filterPlaceholder: {
781
+ id: "df.wise.Decision.filterPlaceholder",
782
+ defaultMessage: "Start typing to search",
783
+ description: "Placeholder for the filter input"
784
+ },
785
+ results: {
786
+ id: "df.wise.Decision.results",
787
+ defaultMessage: "Search results",
788
+ description: "Label for the results section"
789
+ },
790
+ noResults: {
791
+ id: "df.wise.Decision.noResults",
792
+ defaultMessage: "No results",
793
+ description: "Message for if there are no results"
794
+ }
795
+ });
796
+
797
+ // ../renderers/src/DecisionRenderer/GroupedList.tsx
798
+ import { Fragment, jsx as jsx23, jsxs as jsxs4 } from "react/jsx-runtime";
872
799
  var OPTION_GROUPS = {
873
800
  popular: "popular",
874
801
  recent: "recent"
875
802
  };
876
- var GroupedList = ({
877
- options,
878
- control
879
- }) => {
803
+ var GroupedList = (_a) => {
804
+ var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
880
805
  const { formatMessage } = useIntl3();
806
+ const { options } = rest;
881
807
  const popularOptions = options.filter((option) => option.tag === OPTION_GROUPS.popular);
882
808
  const recentOptions = options.filter((option) => option.tag === OPTION_GROUPS.recent);
883
809
  return /* @__PURE__ */ jsxs4(Fragment, { children: [
884
810
  popularOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
885
- /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
886
- /* @__PURE__ */ jsx24(DecisionList_default, { options: popularOptions, control })
811
+ /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.popular) }),
812
+ renderDecisionList2(__spreadProps(__spreadValues({}, rest), { options: popularOptions }))
887
813
  ] }) : null,
888
814
  recentOptions.length > 0 ? /* @__PURE__ */ jsxs4(Section, { children: [
889
- /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
890
- /* @__PURE__ */ jsx24(DecisionList_default, { options: recentOptions, control })
815
+ /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.recent) }),
816
+ renderDecisionList2(__spreadProps(__spreadValues({}, rest), { options: recentOptions }))
891
817
  ] }) : null,
892
818
  /* @__PURE__ */ jsxs4(Section, { children: [
893
- /* @__PURE__ */ jsx24(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
894
- /* @__PURE__ */ jsx24(DecisionList_default, { options, control })
819
+ /* @__PURE__ */ jsx23(Header, { as: "h2", title: formatMessage(decision_messages_default.all) }),
820
+ renderDecisionList2(rest)
895
821
  ] })
896
822
  ] });
897
823
  };
@@ -900,25 +826,68 @@ var isGroupedDecision = (options) => {
900
826
  return options.some(({ tag }) => tag && possibleGroups.includes(tag));
901
827
  };
902
828
 
903
- // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
904
- import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
905
- var DecisionRenderer = {
906
- canRenderType: "decision",
907
- render: (props) => {
908
- return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
909
- props.title && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: props.title }),
910
- props.control === "filtered" ? /* @__PURE__ */ jsx25(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx25(UnfilteredDecisionList, __spreadValues({}, props))
911
- ] });
912
- }
829
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
830
+ import { useIntl as useIntl4 } from "react-intl";
831
+ import { useState as useState3 } from "react";
832
+
833
+ // ../renderers/src/DecisionRenderer/filter-and-sort-decision-options.ts
834
+ function filterAndSortDecisionOptions(selectOptions, query) {
835
+ const upperQuery = query.toUpperCase().trim();
836
+ const filteredItems = selectOptions.filter((option) => {
837
+ var _a, _b, _c, _d;
838
+ const searchableWords = [
839
+ option.title,
840
+ option.description,
841
+ option.additionalText,
842
+ (_a = option.supportingValues) == null ? void 0 : _a.value,
843
+ (_b = option.supportingValues) == null ? void 0 : _b.subvalue,
844
+ ...(_c = option.keywords) != null ? _c : []
845
+ ];
846
+ return (_d = searchableWords.some((word) => word == null ? void 0 : word.toUpperCase().includes(upperQuery))) != null ? _d : false;
847
+ });
848
+ return [...filteredItems].sort((a, b) => {
849
+ const aTitleUpper = a.title.toUpperCase();
850
+ const bTitleUpper = b.title.toUpperCase();
851
+ const aTitleStarts = aTitleUpper.startsWith(upperQuery);
852
+ const bTitleStarts = bTitleUpper.startsWith(upperQuery);
853
+ if (aTitleStarts && !bTitleStarts) {
854
+ return -1;
855
+ }
856
+ if (!aTitleStarts && bTitleStarts) {
857
+ return 1;
858
+ }
859
+ const aWordStarts = aTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
860
+ const bWordStarts = bTitleUpper.split(" ").some((word) => word.startsWith(upperQuery));
861
+ if (aWordStarts && !bWordStarts) {
862
+ return -1;
863
+ }
864
+ if (!aWordStarts && bWordStarts) {
865
+ return 1;
866
+ }
867
+ return a.title.localeCompare(b.title);
868
+ });
869
+ }
870
+
871
+ // ../renderers/src/DecisionRenderer/DecisionList.tsx
872
+ import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs5 } from "react/jsx-runtime";
873
+ var DecisionWrapper = (props) => {
874
+ return /* @__PURE__ */ jsxs5("div", { className: getMargin(props.margin), children: [
875
+ props.title && /* @__PURE__ */ jsx24(Header2, { as: "h2", title: props.title }),
876
+ props.control === "filtered" ? /* @__PURE__ */ jsx24(FilteredDecisionList, __spreadValues({}, props)) : /* @__PURE__ */ jsx24(UnfilteredDecisionList, __spreadValues({}, props))
877
+ ] });
878
+ };
879
+ var UnfilteredDecisionList = (_a) => {
880
+ var _b = _a, { renderDecisionList: renderDecisionList2 } = _b, rest = __objRest(_b, ["renderDecisionList"]);
881
+ return isGroupedDecision(rest.options) ? /* @__PURE__ */ jsx24(GroupedList, __spreadProps(__spreadValues({}, rest), { renderDecisionList: renderDecisionList2 })) : renderDecisionList2(rest);
913
882
  };
914
- var UnfilteredDecisionList = ({ control, options }) => isGroupedDecision(options) ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsx25(DecisionList_default, { options, control });
915
- var FilteredDecisionList = ({ options, control }) => {
883
+ var FilteredDecisionList = (props) => {
916
884
  const { formatMessage } = useIntl4();
917
885
  const [query, setQuery] = useState3("");
886
+ const { control, options, renderDecisionList: renderDecisionList2 } = props;
918
887
  const filteredOptions = filterAndSortDecisionOptions(options, query);
919
888
  const isGrouped = isGroupedDecision(options);
920
889
  return /* @__PURE__ */ jsxs5(Fragment2, { children: [
921
- /* @__PURE__ */ jsx25(
890
+ /* @__PURE__ */ jsx24(
922
891
  SearchInput,
923
892
  {
924
893
  placeholder: formatMessage(decision_messages_default.filterPlaceholder),
@@ -929,19 +898,49 @@ var FilteredDecisionList = ({ options, control }) => {
929
898
  }
930
899
  }
931
900
  ),
932
- isGrouped && query.length === 0 ? /* @__PURE__ */ jsx25(GroupedList, { options, control }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
933
- query.length > 0 && /* @__PURE__ */ jsx25(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
934
- filteredOptions.length > 0 ? /* @__PURE__ */ jsx25(
935
- DecisionList_default,
936
- {
937
- options: filteredOptions,
938
- control,
939
- className: query.length === 0 ? "m-t-3" : ""
940
- }
941
- ) : /* @__PURE__ */ jsx25("p", { children: formatMessage(decision_messages_default.noResults) })
901
+ isGrouped && query.length === 0 ? /* @__PURE__ */ jsx24(GroupedList, __spreadValues({}, props)) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
902
+ query.length > 0 && /* @__PURE__ */ jsx24(Header2, { as: "h2", title: formatMessage(decision_messages_default.results), className: "m-t-4" }),
903
+ filteredOptions.length > 0 ? renderDecisionList2({
904
+ control,
905
+ className: query.length === 0 ? "m-t-3" : "",
906
+ options: filteredOptions
907
+ }) : /* @__PURE__ */ jsx24("p", { children: formatMessage(decision_messages_default.noResults) })
942
908
  ] })
943
909
  ] });
944
910
  };
911
+
912
+ // ../renderers/src/DecisionRenderer/DecisionRenderer.tsx
913
+ import { jsx as jsx25 } from "react/jsx-runtime";
914
+ var DecisionRenderer = {
915
+ canRenderType: "decision",
916
+ render: (props) => {
917
+ return /* @__PURE__ */ jsx25(DecisionWrapper, __spreadProps(__spreadValues({}, props), { renderDecisionList }));
918
+ }
919
+ };
920
+ var renderDecisionList = ({ options, className, control }) => {
921
+ return /* @__PURE__ */ jsx25("div", { className, children: /* @__PURE__ */ jsx25(NavigationOptionsList, { children: options.map((option) => {
922
+ const { description, disabled, media, title: itemTitle, tag, onClick } = option;
923
+ return /* @__PURE__ */ jsx25(
924
+ NavigationOption,
925
+ {
926
+ title: itemTitle,
927
+ content: description,
928
+ disabled,
929
+ media: media ? /* @__PURE__ */ jsx25(
930
+ OptionMedia,
931
+ {
932
+ media,
933
+ preferAvatar: control === "with-avatar" || tag === "with-avatar"
934
+ }
935
+ ) : null,
936
+ showMediaCircle: false,
937
+ showMediaAtAllSizes: true,
938
+ onClick
939
+ },
940
+ JSON.stringify(option)
941
+ );
942
+ }) }) });
943
+ };
945
944
  var DecisionRenderer_default = DecisionRenderer;
946
945
 
947
946
  // ../renderers/src/DividerRenderer.tsx
@@ -2065,11 +2064,10 @@ var ReviewRenderer = {
2065
2064
  definitions: fields.map(
2066
2065
  ({ label, value, help, analyticsId: fieldAnalyticsId }, index) => ({
2067
2066
  key: String(index),
2068
- title: label,
2069
- value: getFieldValue(
2070
- value,
2067
+ value,
2068
+ title: getFieldLabel(
2069
+ label,
2071
2070
  help,
2072
- orientation,
2073
2071
  () => trackEvent("Help Pressed", { layoutItemId: fieldAnalyticsId })
2074
2072
  )
2075
2073
  })
@@ -2095,19 +2093,15 @@ var mapControlToDefinitionListLayout = (control) => {
2095
2093
  return "VERTICAL_ONE_COLUMN";
2096
2094
  }
2097
2095
  };
2098
- var getFieldValue = (value, help, orientation, onClick) => {
2096
+ var getFieldLabel = (label, help, onClick) => {
2099
2097
  if (help) {
2100
- return orientation === "HORIZONTAL_RIGHT_ALIGNED" ? /* @__PURE__ */ jsxs14(Fragment5, { children: [
2101
- /* @__PURE__ */ jsx51(Help_default, { help, onClick }),
2102
- " ",
2103
- value
2104
- ] }) : /* @__PURE__ */ jsxs14(Fragment5, { children: [
2105
- value,
2098
+ return /* @__PURE__ */ jsxs14(Fragment5, { children: [
2099
+ label,
2106
2100
  " ",
2107
2101
  /* @__PURE__ */ jsx51(Help_default, { help, onClick })
2108
2102
  ] });
2109
2103
  }
2110
- return value;
2104
+ return label;
2111
2105
  };
2112
2106
 
2113
2107
  // ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
@@ -3121,6 +3115,36 @@ var LargeUploadRenderer = {
3121
3115
  }
3122
3116
  };
3123
3117
 
3118
+ // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3119
+ import { ListItem as ListItem3 } from "@transferwise/components";
3120
+
3121
+ // ../renderers/src/NewListItem/getInlineAlert.tsx
3122
+ import { ListItem } from "@transferwise/components";
3123
+ import { jsx as jsx73 } from "react/jsx-runtime";
3124
+
3125
+ // ../renderers/src/NewListItem/getMedia.tsx
3126
+ import { jsx as jsx74 } from "react/jsx-runtime";
3127
+
3128
+ // ../renderers/src/NewListItem/getAdditionalInfo.tsx
3129
+ import { ListItem as ListItem2 } from "@transferwise/components";
3130
+ import { jsx as jsx75 } from "react/jsx-runtime";
3131
+
3132
+ // ../renderers/src/NewListItem/NewDecisionRenderer.tsx
3133
+ import { Fragment as Fragment12, jsx as jsx76 } from "react/jsx-runtime";
3134
+
3135
+ // ../renderers/src/NewListItem/NewListRenderer.tsx
3136
+ import { ListItem as ListItem4 } from "@transferwise/components";
3137
+ import { jsx as jsx77, jsxs as jsxs30 } from "react/jsx-runtime";
3138
+
3139
+ // ../renderers/src/NewListItem/NewReviewRenderer.tsx
3140
+ import { ListItem as ListItem5, Popover } from "@transferwise/components";
3141
+ import { QuestionMarkCircle } from "@transferwise/icons";
3142
+ import { jsx as jsx78, jsxs as jsxs31 } from "react/jsx-runtime";
3143
+
3144
+ // ../renderers/src/NewListItem/NewStatusListRenderer.tsx
3145
+ import { AvatarView as AvatarView5, Header as Header10, ListItem as ListItem6 } from "@transferwise/components";
3146
+ import { jsx as jsx79, jsxs as jsxs32 } from "react/jsx-runtime";
3147
+
3124
3148
  // ../renderers/src/getWiseRenderers.ts
3125
3149
  var getWiseRenderers = () => [
3126
3150
  AddressValidationButtonRenderer_default,
@@ -3166,10 +3190,10 @@ var getWiseRenderers = () => [
3166
3190
  // ../renderers/src/ButtonRenderer/ButtonRendererV2.tsx
3167
3191
  import { Button as Button8 } from "@transferwise/components";
3168
3192
  import { useEffect as useEffect8, useState as useState12 } from "react";
3169
- import { jsx as jsx73 } from "react/jsx-runtime";
3193
+ import { jsx as jsx80 } from "react/jsx-runtime";
3170
3194
 
3171
3195
  // src/dynamicFlow/renderers.ts
3172
- var Header10 = Header7;
3196
+ var Header11 = Header7;
3173
3197
  var getMargin2 = getMargin;
3174
3198
 
3175
3199
  // src/i18n/index.ts
@@ -4065,12 +4089,12 @@ var messages_default = defineMessages10({
4065
4089
  });
4066
4090
 
4067
4091
  // src/dynamicFlow/DynamicFlow.tsx
4068
- import { jsx as jsx74 } from "react/jsx-runtime";
4092
+ import { jsx as jsx81 } from "react/jsx-runtime";
4069
4093
  var wiseRenderers = getWiseRenderers();
4070
4094
  function DynamicFlowLegacy(props) {
4071
4095
  const { customFetch = globalThis.fetch } = props;
4072
4096
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
4073
- return /* @__PURE__ */ jsx74(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
4097
+ return /* @__PURE__ */ jsx81(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
4074
4098
  }
4075
4099
  function DynamicFlowRevamp(props) {
4076
4100
  const {
@@ -4107,7 +4131,7 @@ function DynamicFlowRevamp(props) {
4107
4131
  onLink,
4108
4132
  onCopy
4109
4133
  });
4110
- return /* @__PURE__ */ jsx74("div", { className, children: /* @__PURE__ */ jsx74(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4134
+ return /* @__PURE__ */ jsx81("div", { className, children: /* @__PURE__ */ jsx81(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
4111
4135
  }
4112
4136
  var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
4113
4137
  const {
@@ -4144,7 +4168,7 @@ var DynamicForm = forwardRef(function DynamicForm2(props, ref) {
4144
4168
  onLink,
4145
4169
  onCopy
4146
4170
  });
4147
- return /* @__PURE__ */ jsx74("div", { className, children: /* @__PURE__ */ jsx74(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4171
+ return /* @__PURE__ */ jsx81("div", { className, children: /* @__PURE__ */ jsx81(DynamicFormCore, __spreadProps(__spreadValues({}, coreProps), { ref })) });
4148
4172
  });
4149
4173
  var useWiseHttpClient = (httpClient) => {
4150
4174
  const { locale } = useIntl12();
@@ -4175,7 +4199,7 @@ export {
4175
4199
  DynamicFlowLegacy,
4176
4200
  DynamicFlowRevamp,
4177
4201
  DynamicForm,
4178
- Header10 as Header,
4202
+ Header11 as Header,
4179
4203
  JsonSchemaForm,
4180
4204
  findRendererPropsByType,
4181
4205
  getMargin2 as getMargin,
@@ -3,3 +3,4 @@ export declare const Header: ({ title, callToAction }: {
3
3
  callToAction?: import("@wise/dynamic-flow-types/build/renderers").CallToAction;
4
4
  }) => "" | import("react/jsx-runtime").JSX.Element | undefined;
5
5
  export declare const getMargin: (size: import("@wise/dynamic-flow-types/build/next").Margin) => "m-b-0" | "m-b-1" | "m-b-2" | "m-b-3" | "m-b-5" | "";
6
+ export declare const listItemRenderers: import("@wise/dynamic-flow-client").Renderers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "4.24.1-experimental-e343995",
3
+ "version": "4.25.0-experimental-1ff696a",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -75,7 +75,7 @@
75
75
  "tsx": "4.20.4",
76
76
  "typescript": "5.9.2",
77
77
  "@wise/dynamic-flow-fixtures": "0.0.1",
78
- "@wise/dynamic-flow-types": "3.11.1",
78
+ "@wise/dynamic-flow-types": "3.12.0-experimental-1ff696a",
79
79
  "@wise/dynamic-flow-renderers": "0.0.0"
80
80
  },
81
81
  "peerDependencies": {
@@ -91,8 +91,8 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "classnames": "2.5.1",
94
- "@wise/dynamic-flow-types": "3.11.1",
95
- "@wise/dynamic-flow-client": "4.14.2-experimental-e343995"
94
+ "@wise/dynamic-flow-types": "3.12.0-experimental-1ff696a",
95
+ "@wise/dynamic-flow-client": "4.15.0-experimental-1ff696a"
96
96
  },
97
97
  "scripts": {
98
98
  "dev": "pnpm build:visual-tests && storybook dev -p 3005",