@nebula.js/stardust 5.0.2 → 5.1.0

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "module": "esm/index.js",
3
3
  "peerDependencies": {
4
- "@mui/material": "^5.15.17",
5
- "@mui/icons-material": "^5.15.17",
4
+ "@mui/material": "^5.15.18",
5
+ "@mui/icons-material": "^5.15.18",
6
6
  "@emotion/react": "^11.11.4",
7
7
  "@emotion/styled": "^11.11.5",
8
8
  "react": "^17.0.2 || ^18.1.0",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v5.0.2
2
+ * @nebula.js/stardust v5.1.0
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -12695,7 +12695,7 @@
12695
12695
  return cache[key];
12696
12696
  }
12697
12697
 
12698
- const NEBULA_VERSION_HASH = "656a" ;
12698
+ const NEBULA_VERSION_HASH = "06ed" ;
12699
12699
  ClassNameGenerator.configure(componentName => {
12700
12700
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
12701
12701
  });
@@ -12927,7 +12927,7 @@
12927
12927
  const appRef = React$1.createRef();
12928
12928
  const element = document.createElement('div');
12929
12929
  element.style.display = 'none';
12930
- element.setAttribute('data-nebulajs-version', "5.0.2" );
12930
+ element.setAttribute('data-nebulajs-version', "5.1.0" );
12931
12931
  element.setAttribute('data-app-id', app.id);
12932
12932
  document.body.appendChild(element);
12933
12933
  if (context) {
@@ -37979,9 +37979,16 @@
37979
37979
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37980
37980
  args[_key] = arguments[_key];
37981
37981
  }
37982
- generator.qae.properties.onChange.call({
37983
- model: opts.model
37984
- }, ...args);
37982
+ // try/catch here to guard against charts not checking properties correctly
37983
+ try {
37984
+ generator.qae.properties.onChange.call({
37985
+ model: opts.model
37986
+ }, ...args);
37987
+ } catch (_unused) {
37988
+ {
37989
+ console.warn('Error in chart setProperties interceptor onChange call '); // eslint-disable-line no-console
37990
+ }
37991
+ }
37985
37992
  return opts.model.__snInterceptor.setProperties.call(this, ...args);
37986
37993
  };
37987
37994
  opts.model.applyPatches = function applyPatches(qPatches, qSoftPatch) {
@@ -37995,10 +38002,15 @@
37995
38002
  path: p.qPath
37996
38003
  }));
37997
38004
  JSONPatch.apply(currentProperties, patches);
37998
- generator.qae.properties.onChange.call({
37999
- model: opts.model
38000
- }, currentProperties);
38001
-
38005
+ try {
38006
+ generator.qae.properties.onChange.call({
38007
+ model: opts.model
38008
+ }, currentProperties);
38009
+ } catch (_unused2) {
38010
+ {
38011
+ console.warn('Error in chart applyPatches interceptor onChange call '); // eslint-disable-line no-console
38012
+ }
38013
+ }
38002
38014
  // calculate new patches from after change
38003
38015
  const newPatches = JSONPatch.generate(original, currentProperties).map(p => ({
38004
38016
  qOp: p.op,
@@ -38009,8 +38021,10 @@
38009
38021
  });
38010
38022
  };
38011
38023
  opts.model.__snInterceptor.teardown = () => {
38012
- opts.model.setProperties = opts.model.__snInterceptor.setProperties;
38013
- delete opts.model.__snInterceptor;
38024
+ if (opts.model.__snInterceptor) {
38025
+ opts.model.setProperties = opts.model.__snInterceptor.setProperties;
38026
+ delete opts.model.__snInterceptor;
38027
+ }
38014
38028
  };
38015
38029
  teardowns.push(opts.model.__snInterceptor.teardown);
38016
38030
  }