@wise/dynamic-flow-client-internal 4.27.0-experimental-edf35fb → 4.27.0-experimental-f4fee36
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
|
@@ -593,11 +593,7 @@ var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
|
|
|
593
593
|
|
|
594
594
|
// ../renderers/src/components/Media/Media.tsx
|
|
595
595
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
596
|
-
|
|
597
|
-
media,
|
|
598
|
-
preferAvatar,
|
|
599
|
-
size
|
|
600
|
-
}) {
|
|
596
|
+
var Media = ({ media, preferAvatar, size }) => {
|
|
601
597
|
switch (media == null ? void 0 : media.type) {
|
|
602
598
|
case "avatar":
|
|
603
599
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AvatarMedia, __spreadProps(__spreadValues({}, media), { size }));
|
|
@@ -611,7 +607,7 @@ function Media({
|
|
|
611
607
|
default:
|
|
612
608
|
return null;
|
|
613
609
|
}
|
|
614
|
-
}
|
|
610
|
+
};
|
|
615
611
|
|
|
616
612
|
// ../renderers/src/components/Media/OptionMedia.tsx
|
|
617
613
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
package/build/main.mjs
CHANGED
|
@@ -550,11 +550,7 @@ var LegacyMedia = ({ image, icon, preferAvatar, size }) => {
|
|
|
550
550
|
|
|
551
551
|
// ../renderers/src/components/Media/Media.tsx
|
|
552
552
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
553
|
-
|
|
554
|
-
media,
|
|
555
|
-
preferAvatar,
|
|
556
|
-
size
|
|
557
|
-
}) {
|
|
553
|
+
var Media = ({ media, preferAvatar, size }) => {
|
|
558
554
|
switch (media == null ? void 0 : media.type) {
|
|
559
555
|
case "avatar":
|
|
560
556
|
return /* @__PURE__ */ jsx16(AvatarMedia, __spreadProps(__spreadValues({}, media), { size }));
|
|
@@ -568,7 +564,7 @@ function Media({
|
|
|
568
564
|
default:
|
|
569
565
|
return null;
|
|
570
566
|
}
|
|
571
|
-
}
|
|
567
|
+
};
|
|
572
568
|
|
|
573
569
|
// ../renderers/src/components/Media/OptionMedia.tsx
|
|
574
570
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Media as RendererMedia } from '@wise/dynamic-flow-renderers';
|
|
2
1
|
/**
|
|
3
2
|
* We need to redefine these because @wise/dynamic-flow-renderers is a private package that
|
|
4
3
|
* cannot be installed. There is likely a better solution, but until we find it we can
|
|
@@ -8,7 +7,11 @@ export declare const Header: ({ title, callToAction }: {
|
|
|
8
7
|
title?: string;
|
|
9
8
|
callToAction?: import("@wise/dynamic-flow-types/build/renderers").CallToAction;
|
|
10
9
|
}) => "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
11
|
-
export declare const Media:
|
|
10
|
+
export declare const Media: ({ media, preferAvatar, size }: {
|
|
11
|
+
media: import("@wise/dynamic-flow-types/build/renderers").Media | undefined;
|
|
12
|
+
preferAvatar?: boolean;
|
|
13
|
+
size: 24 | 48;
|
|
14
|
+
}) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | null | undefined;
|
|
12
15
|
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" | "";
|
|
13
16
|
export declare const getListItemRenderers: () => import("@wise/dynamic-flow-client").Renderers;
|
|
14
17
|
export declare const getButtonV2Renderers: () => 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.27.0-experimental-
|
|
3
|
+
"version": "4.27.0-experimental-f4fee36",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
75
75
|
"tsx": "4.20.5",
|
|
76
76
|
"typescript": "5.9.2",
|
|
77
|
-
"@wise/dynamic-flow-
|
|
77
|
+
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
78
78
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
79
|
-
"@wise/dynamic-flow-
|
|
79
|
+
"@wise/dynamic-flow-types": "3.13.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@transferwise/components": "^46.104.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"classnames": "2.5.1",
|
|
94
|
-
"@wise/dynamic-flow-client": "4.16.1-experimental-
|
|
94
|
+
"@wise/dynamic-flow-client": "4.16.1-experimental-f4fee36",
|
|
95
95
|
"@wise/dynamic-flow-types": "3.13.0"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|