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