@wise/dynamic-flow-client 3.28.2 → 3.28.3

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
@@ -8482,6 +8482,9 @@ var isPartialModelMatch = (localModel, incomingModel) => {
8482
8482
  return localModel.length === incomingModel.length && localModel.every((value, index) => isPartialModelMatch(value, incomingModel[index]));
8483
8483
  }
8484
8484
  if (isObjectModel(localModel) && isObjectModel(incomingModel)) {
8485
+ if (Object.keys(localModel).length === 0 && Object.keys(incomingModel).length === 0) {
8486
+ return true;
8487
+ }
8485
8488
  const nonNullishKeysInBoth = nonNullishKeys(localModel).filter(
8486
8489
  (key) => nonNullishKeys(incomingModel).includes(key)
8487
8490
  );
@@ -11685,7 +11688,7 @@ function ButtonRendererComponent({
11685
11688
  block: true,
11686
11689
  className,
11687
11690
  disabled: isLoading || disabled,
11688
- priority: mapControl(control),
11691
+ priority,
11689
11692
  size: mapSize(size2),
11690
11693
  type,
11691
11694
  onClick,
@@ -11707,6 +11710,8 @@ var mapControl = (control) => {
11707
11710
  case "primary":
11708
11711
  case "tertiary":
11709
11712
  return control;
11713
+ case "minimal":
11714
+ return "tertiary";
11710
11715
  default:
11711
11716
  return "secondary";
11712
11717
  }
@@ -15458,6 +15463,9 @@ var priorities = {
15458
15463
  };
15459
15464
  var getButtonPriority = (control, action) => {
15460
15465
  const actionType = action ? action.type : void 0;
15466
+ if (control === "minimal") {
15467
+ return "tertiary";
15468
+ }
15461
15469
  return control != null ? control : actionType ? priorities[actionType] : "secondary";
15462
15470
  };
15463
15471
  var contextToType = {