@wise/dynamic-flow-client-internal 5.8.0 → 5.8.1
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 +10 -1
- package/build/main.mjs +25 -22
- package/build/types/dynamicFlow/renderers.d.ts +1 -1
- package/package.json +6 -6
package/build/main.js
CHANGED
|
@@ -144,7 +144,7 @@ var import_react22 = require("react");
|
|
|
144
144
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
145
145
|
var appVersion = (
|
|
146
146
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
147
|
-
typeof process !== "undefined" ? "5.8.
|
|
147
|
+
typeof process !== "undefined" ? "5.8.1" : "0.0.0"
|
|
148
148
|
);
|
|
149
149
|
|
|
150
150
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -2902,6 +2902,12 @@ function SearchResultContent({
|
|
|
2902
2902
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ErrorResult, { state });
|
|
2903
2903
|
case "results":
|
|
2904
2904
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SearchResults, { state, trackEvent });
|
|
2905
|
+
case "layout":
|
|
2906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
2907
|
+
" ",
|
|
2908
|
+
state.layout,
|
|
2909
|
+
" "
|
|
2910
|
+
] });
|
|
2905
2911
|
case "noResults":
|
|
2906
2912
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(EmptySearchResult, { state });
|
|
2907
2913
|
case "pending":
|
|
@@ -3008,6 +3014,9 @@ function mapResultToTypeaheadOption(result) {
|
|
|
3008
3014
|
}
|
|
3009
3015
|
function TypeaheadFooter({ state, isLoading }) {
|
|
3010
3016
|
const { formatMessage } = (0, import_react_intl23.useIntl)();
|
|
3017
|
+
if (state.type === "layout") {
|
|
3018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "m-x-1 m-y-1", children: state.layout });
|
|
3019
|
+
}
|
|
3011
3020
|
if (state.type === "noResults") {
|
|
3012
3021
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_components45.Markdown, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
3013
3022
|
}
|
package/build/main.mjs
CHANGED
|
@@ -126,7 +126,7 @@ import { useMemo as useMemo2 } from "react";
|
|
|
126
126
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
127
127
|
var appVersion = (
|
|
128
128
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
129
|
-
typeof process !== "undefined" ? "5.8.
|
|
129
|
+
typeof process !== "undefined" ? "5.8.1" : "0.0.0"
|
|
130
130
|
);
|
|
131
131
|
|
|
132
132
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -2792,13 +2792,7 @@ var getHelpControl = (help, ariaLabel, onClick) => {
|
|
|
2792
2792
|
var ReviewRenderer_default = ReviewRenderer2;
|
|
2793
2793
|
|
|
2794
2794
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2795
|
-
import {
|
|
2796
|
-
Input as Input4,
|
|
2797
|
-
InputGroup as InputGroup3,
|
|
2798
|
-
List,
|
|
2799
|
-
ListItem as ListItem10,
|
|
2800
|
-
Markdown as Markdown5
|
|
2801
|
-
} from "@transferwise/components";
|
|
2795
|
+
import { Input as Input4, InputGroup as InputGroup3, List, ListItem as ListItem10, Markdown as Markdown5 } from "@transferwise/components";
|
|
2802
2796
|
import { useState as useState9 } from "react";
|
|
2803
2797
|
import { useIntl as useIntl12 } from "react-intl";
|
|
2804
2798
|
|
|
@@ -2849,7 +2843,7 @@ function ErrorResult({ state }) {
|
|
|
2849
2843
|
|
|
2850
2844
|
// ../renderers/src/SearchRenderer/BlockSearchRendererComponent.tsx
|
|
2851
2845
|
import { Search } from "@transferwise/icons";
|
|
2852
|
-
import { jsx as jsx64, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2846
|
+
import { Fragment as Fragment7, jsx as jsx64, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2853
2847
|
function BlockSearchRendererComponent({
|
|
2854
2848
|
id,
|
|
2855
2849
|
hint,
|
|
@@ -2893,6 +2887,12 @@ function SearchResultContent({
|
|
|
2893
2887
|
return /* @__PURE__ */ jsx64(ErrorResult, { state });
|
|
2894
2888
|
case "results":
|
|
2895
2889
|
return /* @__PURE__ */ jsx64(SearchResults, { state, trackEvent });
|
|
2890
|
+
case "layout":
|
|
2891
|
+
return /* @__PURE__ */ jsxs17(Fragment7, { children: [
|
|
2892
|
+
" ",
|
|
2893
|
+
state.layout,
|
|
2894
|
+
" "
|
|
2895
|
+
] });
|
|
2896
2896
|
case "noResults":
|
|
2897
2897
|
return /* @__PURE__ */ jsx64(EmptySearchResult, { state });
|
|
2898
2898
|
case "pending":
|
|
@@ -2999,6 +2999,9 @@ function mapResultToTypeaheadOption(result) {
|
|
|
2999
2999
|
}
|
|
3000
3000
|
function TypeaheadFooter({ state, isLoading }) {
|
|
3001
3001
|
const { formatMessage } = useIntl13();
|
|
3002
|
+
if (state.type === "layout") {
|
|
3003
|
+
return /* @__PURE__ */ jsx65("div", { className: "m-x-1 m-y-1", children: state.layout });
|
|
3004
|
+
}
|
|
3002
3005
|
if (state.type === "noResults") {
|
|
3003
3006
|
return /* @__PURE__ */ jsx65(Markdown6, { className: "m-t-2 m-x-2", config: { link: { target: "_blank" } }, children: state.message });
|
|
3004
3007
|
}
|
|
@@ -3059,7 +3062,7 @@ var SectionRenderer_default = SectionRenderer;
|
|
|
3059
3062
|
|
|
3060
3063
|
// ../renderers/src/SelectInputRenderer/RadioInputRendererComponent.tsx
|
|
3061
3064
|
import { RadioGroup } from "@transferwise/components";
|
|
3062
|
-
import { Fragment as
|
|
3065
|
+
import { Fragment as Fragment8, jsx as jsx68, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3063
3066
|
function RadioInputRendererComponent(props) {
|
|
3064
3067
|
const {
|
|
3065
3068
|
id,
|
|
@@ -3073,7 +3076,7 @@ function RadioInputRendererComponent(props) {
|
|
|
3073
3076
|
validationState,
|
|
3074
3077
|
onSelect
|
|
3075
3078
|
} = props;
|
|
3076
|
-
return /* @__PURE__ */ jsxs19(
|
|
3079
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
3077
3080
|
/* @__PURE__ */ jsx68(
|
|
3078
3081
|
FieldInput_default,
|
|
3079
3082
|
{
|
|
@@ -3107,7 +3110,7 @@ function RadioInputRendererComponent(props) {
|
|
|
3107
3110
|
// ../renderers/src/SelectInputRenderer/TabInputRendererComponent.tsx
|
|
3108
3111
|
import { Tabs } from "@transferwise/components";
|
|
3109
3112
|
import { useEffect as useEffect6 } from "react";
|
|
3110
|
-
import { Fragment as
|
|
3113
|
+
import { Fragment as Fragment9, jsx as jsx69, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3111
3114
|
function TabInputRendererComponent(props) {
|
|
3112
3115
|
const {
|
|
3113
3116
|
id,
|
|
@@ -3126,7 +3129,7 @@ function TabInputRendererComponent(props) {
|
|
|
3126
3129
|
onSelect(0);
|
|
3127
3130
|
}
|
|
3128
3131
|
}, [selectedIndex, onSelect, options.length]);
|
|
3129
|
-
return /* @__PURE__ */ jsxs20(
|
|
3132
|
+
return /* @__PURE__ */ jsxs20(Fragment9, { children: [
|
|
3130
3133
|
/* @__PURE__ */ jsx69(
|
|
3131
3134
|
FieldInput_default,
|
|
3132
3135
|
{
|
|
@@ -3144,7 +3147,7 @@ function TabInputRendererComponent(props) {
|
|
|
3144
3147
|
title: option.title,
|
|
3145
3148
|
// if we pass null, we get some props-types console errors
|
|
3146
3149
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3147
|
-
content: /* @__PURE__ */ jsx69(
|
|
3150
|
+
content: /* @__PURE__ */ jsx69(Fragment9, {}),
|
|
3148
3151
|
disabled: option.disabled || disabled
|
|
3149
3152
|
})),
|
|
3150
3153
|
onTabSelect: onSelect
|
|
@@ -3159,7 +3162,7 @@ var isValidIndex2 = (index, options) => index !== null && index >= 0 && index <
|
|
|
3159
3162
|
|
|
3160
3163
|
// ../renderers/src/SelectInputRenderer/SelectInputRendererComponent.tsx
|
|
3161
3164
|
import { SelectInput as SelectInput2, SelectInputOptionContent as SelectInputOptionContent2 } from "@transferwise/components";
|
|
3162
|
-
import { Fragment as
|
|
3165
|
+
import { Fragment as Fragment10, jsx as jsx70, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3163
3166
|
function SelectInputRendererComponent(props) {
|
|
3164
3167
|
const {
|
|
3165
3168
|
id,
|
|
@@ -3204,7 +3207,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3204
3207
|
return /* @__PURE__ */ jsx70(SelectInputOptionContent2, __spreadValues({}, contentProps));
|
|
3205
3208
|
};
|
|
3206
3209
|
const extraProps = { autoComplete };
|
|
3207
|
-
return /* @__PURE__ */ jsxs21(
|
|
3210
|
+
return /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
3208
3211
|
/* @__PURE__ */ jsx70(
|
|
3209
3212
|
FieldInput_default,
|
|
3210
3213
|
{
|
|
@@ -3236,7 +3239,7 @@ function SelectInputRendererComponent(props) {
|
|
|
3236
3239
|
// ../renderers/src/SelectInputRenderer/SegmentedInputRendererComponent.tsx
|
|
3237
3240
|
import { useEffect as useEffect7 } from "react";
|
|
3238
3241
|
import { SegmentedControl } from "@transferwise/components";
|
|
3239
|
-
import { Fragment as
|
|
3242
|
+
import { Fragment as Fragment11, jsx as jsx71, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3240
3243
|
function SegmentedInputRendererComponent(props) {
|
|
3241
3244
|
const {
|
|
3242
3245
|
id,
|
|
@@ -3254,7 +3257,7 @@ function SegmentedInputRendererComponent(props) {
|
|
|
3254
3257
|
onSelect(0);
|
|
3255
3258
|
}
|
|
3256
3259
|
}, [selectedIndex, onSelect, options.length]);
|
|
3257
|
-
return /* @__PURE__ */ jsxs22(
|
|
3260
|
+
return /* @__PURE__ */ jsxs22(Fragment11, { children: [
|
|
3258
3261
|
/* @__PURE__ */ jsx71(
|
|
3259
3262
|
FieldInput_default,
|
|
3260
3263
|
{
|
|
@@ -3287,7 +3290,7 @@ var isValidIndex3 = (index, options) => index !== null && index >= 0 && index <
|
|
|
3287
3290
|
|
|
3288
3291
|
// ../renderers/src/SelectInputRenderer/RadioItemRendererComponent.tsx
|
|
3289
3292
|
import { Header as Header8, InlineAlert as InlineAlert4, List as List2, ListItem as ListItem11 } from "@transferwise/components";
|
|
3290
|
-
import { Fragment as
|
|
3293
|
+
import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3291
3294
|
function RadioItemRendererComponent(props) {
|
|
3292
3295
|
const {
|
|
3293
3296
|
id,
|
|
@@ -3301,7 +3304,7 @@ function RadioItemRendererComponent(props) {
|
|
|
3301
3304
|
validationState,
|
|
3302
3305
|
onSelect
|
|
3303
3306
|
} = props;
|
|
3304
|
-
return /* @__PURE__ */ jsxs23(
|
|
3307
|
+
return /* @__PURE__ */ jsxs23(Fragment12, { children: [
|
|
3305
3308
|
rootTitle && /* @__PURE__ */ jsx72(
|
|
3306
3309
|
Header8,
|
|
3307
3310
|
{
|
|
@@ -3556,7 +3559,7 @@ function SplashStepRendererComponent(props) {
|
|
|
3556
3559
|
|
|
3557
3560
|
// ../renderers/src/step/StepRenderer.tsx
|
|
3558
3561
|
import { Alert as Alert2, Title as Title2 } from "@transferwise/components";
|
|
3559
|
-
import { Fragment as
|
|
3562
|
+
import { Fragment as Fragment13, jsx as jsx80, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3560
3563
|
var StepRenderer = {
|
|
3561
3564
|
canRenderType: "step",
|
|
3562
3565
|
render: StepRendererComponent
|
|
@@ -3574,7 +3577,7 @@ function StepRendererComponent(props) {
|
|
|
3574
3577
|
}
|
|
3575
3578
|
var Header10 = ({ title, description, tags }) => {
|
|
3576
3579
|
const { titleType, alignmentClassName } = getHeaderStyle(tags);
|
|
3577
|
-
return /* @__PURE__ */ jsxs30(
|
|
3580
|
+
return /* @__PURE__ */ jsxs30(Fragment13, { children: [
|
|
3578
3581
|
title ? /* @__PURE__ */ jsx80(Title2, { as: "h1", type: titleType, className: `${alignmentClassName} m-b-2`, children: title }) : void 0,
|
|
3579
3582
|
description ? /* @__PURE__ */ jsx80("p", { className: `${alignmentClassName} np-text-body-large`, children: description }) : void 0
|
|
3580
3583
|
] });
|
|
@@ -10,7 +10,7 @@ export declare const Header: ({ title, callToAction }: {
|
|
|
10
10
|
export declare const Media: ({ media, preferAvatar, size }: {
|
|
11
11
|
media: import("@wise/dynamic-flow-types/renderers").Media | undefined;
|
|
12
12
|
preferAvatar?: boolean;
|
|
13
|
-
size:
|
|
13
|
+
size: 16 | 24 | 32 | 40 | 48 | 56 | 72;
|
|
14
14
|
}) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
|
|
15
15
|
export declare const getMargin: (size: import("@wise/dynamic-flow-types/spec").Margin) => "m-b-0" | "m-b-1" | "m-b-2" | "m-b-3" | "m-b-5" | "";
|
|
16
16
|
//# sourceMappingURL=renderers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"typescript": "5.9.3",
|
|
70
70
|
"vitest": "4.0.18",
|
|
71
71
|
"vitest-fetch-mock": "0.4.5",
|
|
72
|
-
"@wise/dynamic-flow-
|
|
73
|
-
"@wise/dynamic-flow-types": "4.8.
|
|
74
|
-
"@wise/dynamic-flow-
|
|
72
|
+
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
73
|
+
"@wise/dynamic-flow-types": "4.8.1",
|
|
74
|
+
"@wise/dynamic-flow-renderers": "0.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@transferwise/components": "^46.104.0",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"react-intl": "^6 || ^7"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@wise/dynamic-flow-client": "5.8.
|
|
89
|
-
"@wise/dynamic-flow-types": "4.8.
|
|
88
|
+
"@wise/dynamic-flow-client": "5.8.1",
|
|
89
|
+
"@wise/dynamic-flow-types": "4.8.1"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"dev": "pnpm build:visual-tests && storybook dev -p 3005",
|