@masterteam/components 0.0.326 → 0.0.327

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.
@@ -3992,8 +3992,11 @@ function buildDefaultFunctionRegistry() {
3992
3992
  },
3993
3993
  };
3994
3994
  }
3995
+ // The catalog's wrappers are `SHOW_IF` / `HIDE_IF` / `ENABLE_IF` / `DISABLE_IF`;
3996
+ // the bare `show` / `hide` / `enable` / `disable` names are accepted too.
3997
+ // Without the suffix strip every wrapper fell through to the default `show`.
3995
3998
  function normalizeWrapperAction(name) {
3996
- const normalized = name.trim().toLowerCase();
3999
+ const normalized = name.trim().toLowerCase().replace(/_if$/, '');
3997
4000
  return CONDITION_WRAPPER_NAMES.has(normalized)
3998
4001
  ? normalized
3999
4002
  : null;