@nebula.js/stardust 4.2.3 → 4.2.4

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/core/esm/dev.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v4.2.3
2
+ * @nebula.js/stardust v4.2.4
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -8394,7 +8394,7 @@ function create$3(definition) {
8394
8394
  return cache[key];
8395
8395
  }
8396
8396
 
8397
- const NEBULA_VERSION_HASH = "e554" ;
8397
+ const NEBULA_VERSION_HASH = "79ef" ;
8398
8398
  ClassNameGenerator$1.configure(componentName => {
8399
8399
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
8400
8400
  });
@@ -8641,7 +8641,7 @@ function boot(_ref2) {
8641
8641
  const appRef = React__default.createRef();
8642
8642
  const element = document.createElement('div');
8643
8643
  element.style.display = 'none';
8644
- element.setAttribute('data-nebulajs-version', "4.2.3" );
8644
+ element.setAttribute('data-nebulajs-version', "4.2.4" );
8645
8645
  element.setAttribute('data-app-id', app.id);
8646
8646
  document.body.appendChild(element);
8647
8647
  if (context) {
@@ -21991,9 +21991,9 @@ function runSnaps(component, layout) {
21991
21991
  }
21992
21992
  return Promise.resolve();
21993
21993
  }
21994
- function runMenu(component, menu, event) {
21994
+ function runMenu(component, menu, event, menuBuilder) {
21995
21995
  try {
21996
- return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event)))).then(menus => menus[menus.length - 1]);
21996
+ return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event, menuBuilder)))).then(menus => menus[menus.length - 1]);
21997
21997
  } catch (e) {
21998
21998
  console.error(e);
21999
21999
  }
@@ -23272,8 +23272,8 @@ function createWithHooks(generator, opts, galaxy) {
23272
23272
  setSnapshotData(layout) {
23273
23273
  return generator.component.runSnaps(this, layout);
23274
23274
  },
23275
- onContextMenu(menu, event) {
23276
- return generator.component.runMenu(this, menu, event);
23275
+ onContextMenu(menu, event, menuBuilder) {
23276
+ return generator.component.runMenu(this, menu, event, menuBuilder);
23277
23277
  },
23278
23278
  focus() {
23279
23279
  generator.component.focus(this);