@nebula.js/stardust 4.2.2 → 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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v4.2.2
2
+ * @nebula.js/stardust v4.2.4
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -14784,7 +14784,7 @@
14784
14784
  return cache[key];
14785
14785
  }
14786
14786
 
14787
- const NEBULA_VERSION_HASH = "7f71" ;
14787
+ const NEBULA_VERSION_HASH = "79ef" ;
14788
14788
  ClassNameGenerator$1.configure(componentName => {
14789
14789
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
14790
14790
  });
@@ -15031,7 +15031,7 @@
15031
15031
  const appRef = React.createRef();
15032
15032
  const element = document.createElement('div');
15033
15033
  element.style.display = 'none';
15034
- element.setAttribute('data-nebulajs-version', "4.2.2" );
15034
+ element.setAttribute('data-nebulajs-version', "4.2.4" );
15035
15035
  element.setAttribute('data-app-id', app.id);
15036
15036
  document.body.appendChild(element);
15037
15037
  if (context) {
@@ -24775,7 +24775,7 @@
24775
24775
  const {
24776
24776
  fontSize = '12px',
24777
24777
  fontFamily = 'Source sans pro'
24778
- } = ((_theme$listBox = theme.listBox) === null || _theme$listBox === void 0 ? void 0 : _theme$listBox.content) || {};
24778
+ } = (theme === null || theme === void 0 ? void 0 : (_theme$listBox = theme.listBox) === null || _theme$listBox === void 0 ? void 0 : _theme$listBox.content) || {};
24779
24779
  const font = "".concat(fontSize, " ").concat(fontFamily); // font format as supported by HTML canvas
24780
24780
  const textWidth = useTextWidth({
24781
24781
  text: getMeasureText(layout),
@@ -27084,7 +27084,8 @@
27084
27084
  selectionState: selectionState$1,
27085
27085
  direction: "ltr",
27086
27086
  onSetListCount: c => setListCount(c),
27087
- onCtrlF: onCtrlF
27087
+ onCtrlF: onCtrlF,
27088
+ theme: theme
27088
27089
  }))));
27089
27090
  }
27090
27091
 
@@ -33590,9 +33591,9 @@
33590
33591
  }
33591
33592
  return Promise.resolve();
33592
33593
  }
33593
- function runMenu(component, menu, event) {
33594
+ function runMenu(component, menu, event, menuBuilder) {
33594
33595
  try {
33595
- return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event)))).then(menus => menus[menus.length - 1]);
33596
+ return Promise.all(component.__hooks.menus.map(h => Promise.resolve(h.fn(menu, event, menuBuilder)))).then(menus => menus[menus.length - 1]);
33596
33597
  } catch (e) {
33597
33598
  console.error(e);
33598
33599
  }
@@ -34871,8 +34872,8 @@
34871
34872
  setSnapshotData(layout) {
34872
34873
  return generator.component.runSnaps(this, layout);
34873
34874
  },
34874
- onContextMenu(menu, event) {
34875
- return generator.component.runMenu(this, menu, event);
34875
+ onContextMenu(menu, event, menuBuilder) {
34876
+ return generator.component.runMenu(this, menu, event, menuBuilder);
34876
34877
  },
34877
34878
  focus() {
34878
34879
  generator.component.focus(this);