@open-slot-ui/core 0.2.1 → 0.2.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/dist/index.js CHANGED
@@ -1650,6 +1650,7 @@ var OpenUI = class {
1650
1650
  this.hidden.add("rtp");
1651
1651
  this.hidden.add("net-position");
1652
1652
  this.hidden.add("session-timer");
1653
+ this.hidden.add("bonus");
1653
1654
  this.bus.on("buttonActivated", ({ id }) => {
1654
1655
  if (id === "settings") this.settingsPanel.toggle();
1655
1656
  else if (id === "bet-plus") {
@@ -2050,7 +2051,7 @@ function createUI(spec = {}, hooks = {}) {
2050
2051
  const c = ui.control(id);
2051
2052
  if (!c) continue;
2052
2053
  if (ov.layout) c.layout = ov.layout;
2053
- if (ov.hidden) ui.hidden.add(id);
2054
+ if (ov.hidden != null) ui.setHidden(id, ov.hidden);
2054
2055
  const disable = c.disable;
2055
2056
  if (ov.disabled && typeof disable === "function") disable.call(c);
2056
2057
  if (c instanceof ValueDisplay) {