@wise/dynamic-flow-client 3.19.1 → 3.19.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 +6 -6
- package/build/main.min.js +1 -1
- package/build/main.mjs +6 -6
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -7016,7 +7016,11 @@ var getActionByReference = ($ref, actions = []) => {
|
|
|
7016
7016
|
// src/revamp/domain/mappers/layout/buttonLayoutToComponent.ts
|
|
7017
7017
|
var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
7018
7018
|
const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
|
|
7019
|
-
const action = inlineAction(button.action, step == null ? void 0 : step.actions);
|
|
7019
|
+
const action = button.action ? inlineAction(button.action, step == null ? void 0 : step.actions) : {};
|
|
7020
|
+
const onClick = button.action ? () => {
|
|
7021
|
+
void onAction(action);
|
|
7022
|
+
} : () => {
|
|
7023
|
+
};
|
|
7020
7024
|
return createButtonComponent({
|
|
7021
7025
|
uid,
|
|
7022
7026
|
context: getButtonContext({ context, action }),
|
|
@@ -7026,9 +7030,7 @@ var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
|
7026
7030
|
pinOrder,
|
|
7027
7031
|
size,
|
|
7028
7032
|
title: getButtonTitle({ title, action }),
|
|
7029
|
-
onClick
|
|
7030
|
-
void onAction(action);
|
|
7031
|
-
}
|
|
7033
|
+
onClick
|
|
7032
7034
|
});
|
|
7033
7035
|
};
|
|
7034
7036
|
var getButtonTitle = ({ title, action }) => {
|
|
@@ -11910,7 +11912,6 @@ var MultiUploadInputRenderer = {
|
|
|
11910
11912
|
{
|
|
11911
11913
|
id,
|
|
11912
11914
|
"aria-describedby": descriptionId,
|
|
11913
|
-
className: "form-control",
|
|
11914
11915
|
description,
|
|
11915
11916
|
disabled,
|
|
11916
11917
|
fileTypes: getAcceptsString(accepts),
|
|
@@ -15071,7 +15072,6 @@ function MultipleFileUploadSchema(props) {
|
|
|
15071
15072
|
const maxSize = "maxSize" in fileSchemaDescriptor && fileSchemaDescriptor.maxSize;
|
|
15072
15073
|
const uploadInputProps = __spreadProps(__spreadValues(__spreadValues({
|
|
15073
15074
|
multiple: true,
|
|
15074
|
-
className: "form-control",
|
|
15075
15075
|
files,
|
|
15076
15076
|
fileInputName: uid,
|
|
15077
15077
|
id: uid
|