@nebula.js/stardust 3.0.0-rc.1 → 3.0.0-rc.2

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 v3.0.0-rc.1
2
+ * @nebula.js/stardust v3.0.0-rc.2
3
3
  * Copyright (c) 2022 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -17376,7 +17376,7 @@
17376
17376
  return cache[key];
17377
17377
  }
17378
17378
 
17379
- const NEBULA_VERSION_HASH = "f2d4" ;
17379
+ const NEBULA_VERSION_HASH = "6be9" ;
17380
17380
  ClassNameGenerator.configure(componentName => {
17381
17381
 
17382
17382
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
@@ -17949,7 +17949,7 @@
17949
17949
  const appRef = React.createRef();
17950
17950
  const element = document.createElement('div');
17951
17951
  element.style.display = 'none';
17952
- element.setAttribute('data-nebulajs-version', "3.0.0-rc.1" );
17952
+ element.setAttribute('data-nebulajs-version', "3.0.0-rc.2" );
17953
17953
  element.setAttribute('data-app-id', app.id);
17954
17954
  document.body.appendChild(element);
17955
17955
  ReactDOM.render( /*#__PURE__*/React.createElement(NebulaApp, {
@@ -33441,8 +33441,9 @@
33441
33441
  ref
33442
33442
  } = _ref3;
33443
33443
  local.current.listRef = ref;
33444
- return /*#__PURE__*/React.createElement(StyledFixedSizeList, {
33445
- direction: direction,
33444
+ return /*#__PURE__*/React.createElement(StyledFixedSizeList // explicitly set this as it accepts horizontal as well, leading to confusion
33445
+ , {
33446
+ direction: direction === 'rtl' ? 'rtl' : 'ltr',
33446
33447
  "data-testid": "fixed-size-list",
33447
33448
  useIsScrolling: true,
33448
33449
  height: listHeight,
@@ -43731,7 +43732,7 @@
43731
43732
  var enigmaMocker_dev = {exports: {}};
43732
43733
 
43733
43734
  /*
43734
- * @nebula.js/enigma-mocker v3.0.0-alpha13
43735
+ * @nebula.js/enigma-mocker v3.0.0-rc.1
43735
43736
  * Copyright (c) 2022 QlikTech International AB
43736
43737
  * Released under the MIT license.
43737
43738
  */
@@ -43829,138 +43830,128 @@
43829
43830
  return target;
43830
43831
  }
43831
43832
 
43832
- var extend;
43833
- var hasRequiredExtend;
43833
+ var hasOwn = Object.prototype.hasOwnProperty;
43834
+ var toStr = Object.prototype.toString;
43835
+ var defineProperty = Object.defineProperty;
43836
+ var gOPD = Object.getOwnPropertyDescriptor;
43834
43837
 
43835
- function requireExtend() {
43836
- if (hasRequiredExtend) return extend;
43837
- hasRequiredExtend = 1;
43838
- var hasOwn = Object.prototype.hasOwnProperty;
43839
- var toStr = Object.prototype.toString;
43840
- var defineProperty = Object.defineProperty;
43841
- var gOPD = Object.getOwnPropertyDescriptor;
43838
+ var isArray = function isArray(arr) {
43839
+ if (typeof Array.isArray === 'function') {
43840
+ return Array.isArray(arr);
43841
+ }
43842
43842
 
43843
- var isArray = function isArray(arr) {
43844
- if (typeof Array.isArray === 'function') {
43845
- return Array.isArray(arr);
43846
- }
43843
+ return toStr.call(arr) === '[object Array]';
43844
+ };
43847
43845
 
43848
- return toStr.call(arr) === '[object Array]';
43849
- };
43846
+ var isPlainObject = function isPlainObject(obj) {
43847
+ if (!obj || toStr.call(obj) !== '[object Object]') {
43848
+ return false;
43849
+ }
43850
43850
 
43851
- var isPlainObject = function isPlainObject(obj) {
43852
- if (!obj || toStr.call(obj) !== '[object Object]') {
43853
- return false;
43854
- }
43851
+ var hasOwnConstructor = hasOwn.call(obj, 'constructor');
43852
+ var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); // Not own constructor property must be Object
43853
+
43854
+ if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
43855
+ return false;
43856
+ } // Own properties are enumerated firstly, so to speed up,
43857
+ // if last one is own, then all properties are own.
43855
43858
 
43856
- var hasOwnConstructor = hasOwn.call(obj, 'constructor');
43857
- var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); // Not own constructor property must be Object
43858
43859
 
43859
- if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
43860
- return false;
43861
- } // Own properties are enumerated firstly, so to speed up,
43862
- // if last one is own, then all properties are own.
43860
+ var key;
43863
43861
 
43862
+ for (key in obj) {
43863
+ /**/
43864
+ }
43864
43865
 
43865
- var key;
43866
+ return typeof key === 'undefined' || hasOwn.call(obj, key);
43867
+ }; // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
43866
43868
 
43867
- for (key in obj) {
43868
- /**/
43869
- }
43870
43869
 
43871
- return typeof key === 'undefined' || hasOwn.call(obj, key);
43872
- }; // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
43870
+ var setProperty = function setProperty(target, options) {
43871
+ if (defineProperty && options.name === '__proto__') {
43872
+ defineProperty(target, options.name, {
43873
+ enumerable: true,
43874
+ configurable: true,
43875
+ value: options.newValue,
43876
+ writable: true
43877
+ });
43878
+ } else {
43879
+ target[options.name] = options.newValue;
43880
+ }
43881
+ }; // Return undefined instead of __proto__ if '__proto__' is not an own property
43873
43882
 
43874
43883
 
43875
- var setProperty = function setProperty(target, options) {
43876
- if (defineProperty && options.name === '__proto__') {
43877
- defineProperty(target, options.name, {
43878
- enumerable: true,
43879
- configurable: true,
43880
- value: options.newValue,
43881
- writable: true
43882
- });
43883
- } else {
43884
- target[options.name] = options.newValue;
43884
+ var getProperty = function getProperty(obj, name) {
43885
+ if (name === '__proto__') {
43886
+ if (!hasOwn.call(obj, name)) {
43887
+ return void 0;
43888
+ } else if (gOPD) {
43889
+ // In early versions of node, obj['__proto__'] is buggy when obj has
43890
+ // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
43891
+ return gOPD(obj, name).value;
43885
43892
  }
43886
- }; // Return undefined instead of __proto__ if '__proto__' is not an own property
43893
+ }
43887
43894
 
43895
+ return obj[name];
43896
+ };
43888
43897
 
43889
- var getProperty = function getProperty(obj, name) {
43890
- if (name === '__proto__') {
43891
- if (!hasOwn.call(obj, name)) {
43892
- return void 0;
43893
- } else if (gOPD) {
43894
- // In early versions of node, obj['__proto__'] is buggy when obj has
43895
- // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
43896
- return gOPD(obj, name).value;
43897
- }
43898
- }
43898
+ var extend = function extend() {
43899
+ var options, name, src, copy, copyIsArray, clone;
43900
+ var target = arguments[0];
43901
+ var i = 1;
43902
+ var length = arguments.length;
43903
+ var deep = false; // Handle a deep copy situation
43899
43904
 
43900
- return obj[name];
43901
- };
43905
+ if (typeof target === 'boolean') {
43906
+ deep = target;
43907
+ target = arguments[1] || {}; // skip the boolean and the target
43902
43908
 
43903
- extend = function extend() {
43904
- var options, name, src, copy, copyIsArray, clone;
43905
- var target = arguments[0];
43906
- var i = 1;
43907
- var length = arguments.length;
43908
- var deep = false; // Handle a deep copy situation
43909
+ i = 2;
43910
+ }
43909
43911
 
43910
- if (typeof target === 'boolean') {
43911
- deep = target;
43912
- target = arguments[1] || {}; // skip the boolean and the target
43912
+ if (target == null || typeof target !== 'object' && typeof target !== 'function') {
43913
+ target = {};
43914
+ }
43913
43915
 
43914
- i = 2;
43915
- }
43916
+ for (; i < length; ++i) {
43917
+ options = arguments[i]; // Only deal with non-null/undefined values
43916
43918
 
43917
- if (target == null || typeof target !== 'object' && typeof target !== 'function') {
43918
- target = {};
43919
- }
43919
+ if (options != null) {
43920
+ // Extend the base object
43921
+ for (name in options) {
43922
+ src = getProperty(target, name);
43923
+ copy = getProperty(options, name); // Prevent never-ending loop
43920
43924
 
43921
- for (; i < length; ++i) {
43922
- options = arguments[i]; // Only deal with non-null/undefined values
43923
-
43924
- if (options != null) {
43925
- // Extend the base object
43926
- for (name in options) {
43927
- src = getProperty(target, name);
43928
- copy = getProperty(options, name); // Prevent never-ending loop
43929
-
43930
- if (target !== copy) {
43931
- // Recurse if we're merging plain objects or arrays
43932
- if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
43933
- if (copyIsArray) {
43934
- copyIsArray = false;
43935
- clone = src && isArray(src) ? src : [];
43936
- } else {
43937
- clone = src && isPlainObject(src) ? src : {};
43938
- } // Never move original objects, clone them
43939
-
43940
-
43941
- setProperty(target, {
43942
- name: name,
43943
- newValue: extend(deep, clone, copy)
43944
- }); // Don't bring in undefined values
43945
- } else if (typeof copy !== 'undefined') {
43946
- setProperty(target, {
43947
- name: name,
43948
- newValue: copy
43949
- });
43950
- }
43925
+ if (target !== copy) {
43926
+ // Recurse if we're merging plain objects or arrays
43927
+ if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
43928
+ if (copyIsArray) {
43929
+ copyIsArray = false;
43930
+ clone = src && isArray(src) ? src : [];
43931
+ } else {
43932
+ clone = src && isPlainObject(src) ? src : {};
43933
+ } // Never move original objects, clone them
43934
+
43935
+
43936
+ setProperty(target, {
43937
+ name: name,
43938
+ newValue: extend(deep, clone, copy)
43939
+ }); // Don't bring in undefined values
43940
+ } else if (typeof copy !== 'undefined') {
43941
+ setProperty(target, {
43942
+ name: name,
43943
+ newValue: copy
43944
+ });
43951
43945
  }
43952
43946
  }
43953
43947
  }
43954
- } // Return the modified object
43955
-
43948
+ }
43949
+ } // Return the modified object
43956
43950
 
43957
- return target;
43958
- };
43959
43951
 
43960
- return extend;
43961
- }
43952
+ return target;
43953
+ }; // eslint-disable-next-line no-undef
43962
43954
 
43963
- var extendExports = requireExtend(); // eslint-disable-next-line no-undef
43964
43955
 
43965
43956
  const crt = globalThis.crypto || {
43966
43957
  getRandomValues: () => 123456
@@ -43973,7 +43964,7 @@
43973
43964
 
43974
43965
  function CreateSessionObjectMock() {
43975
43966
  return props => {
43976
- const properties = extendExports({}, props);
43967
+ const properties = extend({}, props);
43977
43968
  properties.qInfo = properties.qInfo || {};
43978
43969
  properties.qInfo.qId = properties.qInfo.qId || "mock-".concat(uuidv4());
43979
43970
  const mockedInclusions = properties._mock;
@@ -43981,7 +43972,7 @@
43981
43972
 
43982
43973
  if (mockedInclusions) {
43983
43974
  delete properties._mock;
43984
- layout = extendExports({}, properties, mockedInclusions);
43975
+ layout = extend({}, properties, mockedInclusions);
43985
43976
  }
43986
43977
 
43987
43978
  return Promise.resolve(_objectSpread2({