@nebula.js/stardust 5.1.1 → 5.1.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.
- package/core/esm/dev.js +3 -13
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +3 -13
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +3 -3
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.1.
|
|
2
|
+
* @nebula.js/stardust v5.1.2
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -12678,7 +12678,7 @@
|
|
|
12678
12678
|
return cache[key];
|
|
12679
12679
|
}
|
|
12680
12680
|
|
|
12681
|
-
const NEBULA_VERSION_HASH = "
|
|
12681
|
+
const NEBULA_VERSION_HASH = "4acd" ;
|
|
12682
12682
|
ClassNameGenerator.configure(componentName => {
|
|
12683
12683
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
12684
12684
|
});
|
|
@@ -12910,7 +12910,7 @@
|
|
|
12910
12910
|
const appRef = React$1.createRef();
|
|
12911
12911
|
const element = document.createElement('div');
|
|
12912
12912
|
element.style.display = 'none';
|
|
12913
|
-
element.setAttribute('data-nebulajs-version', "5.1.
|
|
12913
|
+
element.setAttribute('data-nebulajs-version', "5.1.2" );
|
|
12914
12914
|
element.setAttribute('data-app-id', app.id);
|
|
12915
12915
|
document.body.appendChild(element);
|
|
12916
12916
|
if (context) {
|
|
@@ -36441,15 +36441,10 @@
|
|
|
36441
36441
|
}
|
|
36442
36442
|
return false;
|
|
36443
36443
|
}
|
|
36444
|
-
function logHook(message, component) {
|
|
36445
|
-
var _ref;
|
|
36446
|
-
console.log("ID: ".concat((_ref = component || currentComponent) === null || _ref === void 0 || (_ref = _ref.context) === null || _ref === void 0 || (_ref = _ref.model) === null || _ref === void 0 ? void 0 : _ref.id, " index: ").concat(currentIndex, ", ").concat(message));
|
|
36447
|
-
}
|
|
36448
36444
|
function initiate(component) {
|
|
36449
36445
|
let {
|
|
36450
36446
|
explicitResize = false
|
|
36451
36447
|
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
36452
|
-
logHook('initiate');
|
|
36453
36448
|
component.__hooks = {
|
|
36454
36449
|
obsolete: false,
|
|
36455
36450
|
error: false,
|
|
@@ -36684,7 +36679,6 @@
|
|
|
36684
36679
|
const v = typeof s === 'function' ? s(h.value[0]) : s;
|
|
36685
36680
|
if (v !== h.value[0]) {
|
|
36686
36681
|
h.value[0] = v;
|
|
36687
|
-
logHook("setState: ".concat(v), h.component);
|
|
36688
36682
|
scheduleMicro(h.component);
|
|
36689
36683
|
}
|
|
36690
36684
|
};
|
|
@@ -36735,13 +36729,10 @@
|
|
|
36735
36729
|
}
|
|
36736
36730
|
const h = getHook(++currentIndex);
|
|
36737
36731
|
if (depsChanged(h.value ? h.value[1] : undefined, deps)) {
|
|
36738
|
-
logHook('useEffect: deps changed');
|
|
36739
36732
|
h.value = [cb, deps];
|
|
36740
36733
|
if (currentComponent.__hooks.pendingEffects.indexOf(h) === -1) {
|
|
36741
36734
|
currentComponent.__hooks.pendingEffects.push(h);
|
|
36742
36735
|
}
|
|
36743
|
-
} else {
|
|
36744
|
-
logHook('useEffect: no change');
|
|
36745
36736
|
}
|
|
36746
36737
|
}
|
|
36747
36738
|
|
|
@@ -36855,7 +36846,6 @@
|
|
|
36855
36846
|
h.teardown && h.teardown();
|
|
36856
36847
|
};
|
|
36857
36848
|
}, deps);
|
|
36858
|
-
logHook("usePromise: ".concat(obj.state));
|
|
36859
36849
|
return [obj.resolved, obj.rejected];
|
|
36860
36850
|
}
|
|
36861
36851
|
|