@wise/dynamic-flow-client 2.9.1 → 2.9.2
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 +22 -24
- package/build/main.min.js +1 -1
- package/build/types/legacy/common/utils/schema-utils.d.ts +1 -1
- package/build/types/legacy/layout/search/SearchResults.d.ts +4 -4
- package/build/types/legacy/layout/search/useSearch.d.ts +1 -1
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ConstComponent.d.ts +9 -0
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +2 -1
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/features/persistAsync/getComponentPersistAsync.d.ts +1 -1
- package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +6 -5
- package/build/types/revamp/domain/mappers/schema/constSchemaToComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +1 -0
- package/build/types/revamp/domain/types.d.ts +6 -6
- package/build/types/revamp/step/submission/getPerformAction.d.ts +12 -0
- package/build/types/revamp/utils/component-utils.d.ts +1 -1
- package/build/types/revamp/utils/type-utils.d.ts +3 -3
- package/build/types/test-utils/fetch-utils.d.ts +1 -0
- package/package.json +2 -2
- package/build/types/revamp/domain/components/HiddenComponent.d.ts +0 -9
- package/build/types/revamp/domain/mappers/schema/hiddenSchemaToComponent.d.ts +0 -7
- /package/build/types/common/errorBoundary/{ErrorBoundary.messages.d.ts → error-boundary.messages.d.ts} +0 -0
package/build/main.js
CHANGED
|
@@ -5529,9 +5529,9 @@ var SearchInput = ({ title, value, onFocus, onChange }) => {
|
|
|
5529
5529
|
var import_components30 = require("@transferwise/components");
|
|
5530
5530
|
var import_react_intl19 = require("react-intl");
|
|
5531
5531
|
|
|
5532
|
-
// src/common/errorBoundary/
|
|
5532
|
+
// src/common/errorBoundary/error-boundary.messages.ts
|
|
5533
5533
|
var import_react_intl18 = require("react-intl");
|
|
5534
|
-
var
|
|
5534
|
+
var error_boundary_messages_default = (0, import_react_intl18.defineMessages)({
|
|
5535
5535
|
errorAlert: {
|
|
5536
5536
|
id: "dynamicFlows.ErrorBoundary.errorAlert",
|
|
5537
5537
|
defaultMessage: "Oops. Something went wrong...",
|
|
@@ -5546,29 +5546,27 @@ var ErrorBoundary_messages_default = (0, import_react_intl18.defineMessages)({
|
|
|
5546
5546
|
|
|
5547
5547
|
// src/legacy/layout/search/SearchResults.tsx
|
|
5548
5548
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5549
|
-
|
|
5549
|
+
function SearchResults({ results, emptyMessage, onSelect }) {
|
|
5550
5550
|
if (results.length === 0) {
|
|
5551
5551
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "m-t-2", children: emptyMessage });
|
|
5552
5552
|
}
|
|
5553
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components30.NavigationOptionsList, { children: results.map((result) =>
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
};
|
|
5568
|
-
var ErrorResult = ({ onRetrySearch }) => {
|
|
5553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components30.NavigationOptionsList, { children: results.map((result) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5554
|
+
import_components30.NavigationOption,
|
|
5555
|
+
{
|
|
5556
|
+
title: result.title,
|
|
5557
|
+
content: result.description,
|
|
5558
|
+
media: getNavigationOptionMedia(result),
|
|
5559
|
+
showMediaCircle: false,
|
|
5560
|
+
showMediaAtAllSizes: true,
|
|
5561
|
+
onClick: () => onSelect(result)
|
|
5562
|
+
},
|
|
5563
|
+
JSON.stringify(result)
|
|
5564
|
+
)) });
|
|
5565
|
+
}
|
|
5566
|
+
function ErrorResult({ onRetrySearch }) {
|
|
5569
5567
|
const intl = (0, import_react_intl19.useIntl)();
|
|
5570
5568
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("p", { className: "m-t-2", children: [
|
|
5571
|
-
intl.formatMessage(
|
|
5569
|
+
intl.formatMessage(error_boundary_messages_default.errorAlert),
|
|
5572
5570
|
"\xA0",
|
|
5573
5571
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5574
5572
|
"a",
|
|
@@ -5578,11 +5576,11 @@ var ErrorResult = ({ onRetrySearch }) => {
|
|
|
5578
5576
|
e.preventDefault();
|
|
5579
5577
|
onRetrySearch();
|
|
5580
5578
|
},
|
|
5581
|
-
children: intl.formatMessage(
|
|
5579
|
+
children: intl.formatMessage(error_boundary_messages_default.retry)
|
|
5582
5580
|
}
|
|
5583
5581
|
)
|
|
5584
5582
|
] });
|
|
5585
|
-
}
|
|
5583
|
+
}
|
|
5586
5584
|
|
|
5587
5585
|
// src/legacy/layout/search/useSearch.tsx
|
|
5588
5586
|
var import_react27 = require("react");
|
|
@@ -7141,10 +7139,10 @@ function ErrorBoundaryAlert({ onDismiss }) {
|
|
|
7141
7139
|
import_components37.Alert,
|
|
7142
7140
|
{
|
|
7143
7141
|
action: {
|
|
7144
|
-
text: formatMessage(
|
|
7142
|
+
text: formatMessage(error_boundary_messages_default.retry),
|
|
7145
7143
|
href: window.location.href
|
|
7146
7144
|
},
|
|
7147
|
-
message: formatMessage(
|
|
7145
|
+
message: formatMessage(error_boundary_messages_default.errorAlert),
|
|
7148
7146
|
type: import_components37.Sentiment.NEGATIVE,
|
|
7149
7147
|
className: "m-b-3",
|
|
7150
7148
|
onDismiss
|