@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/core/esm/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
|
*/
|
|
@@ -9067,7 +9067,7 @@ function create$3(definition) {
|
|
|
9067
9067
|
return cache[key];
|
|
9068
9068
|
}
|
|
9069
9069
|
|
|
9070
|
-
const NEBULA_VERSION_HASH = "
|
|
9070
|
+
const NEBULA_VERSION_HASH = "4acd" ;
|
|
9071
9071
|
ClassNameGenerator.configure(componentName => {
|
|
9072
9072
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
9073
9073
|
});
|
|
@@ -9299,7 +9299,7 @@ function boot(_ref2) {
|
|
|
9299
9299
|
const appRef = React__default.createRef();
|
|
9300
9300
|
const element = document.createElement('div');
|
|
9301
9301
|
element.style.display = 'none';
|
|
9302
|
-
element.setAttribute('data-nebulajs-version', "5.1.
|
|
9302
|
+
element.setAttribute('data-nebulajs-version', "5.1.2" );
|
|
9303
9303
|
element.setAttribute('data-app-id', app.id);
|
|
9304
9304
|
document.body.appendChild(element);
|
|
9305
9305
|
if (context) {
|
|
@@ -24279,15 +24279,10 @@ function depsChanged(prevDeps, deps) {
|
|
|
24279
24279
|
}
|
|
24280
24280
|
return false;
|
|
24281
24281
|
}
|
|
24282
|
-
function logHook(message, component) {
|
|
24283
|
-
var _ref;
|
|
24284
|
-
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));
|
|
24285
|
-
}
|
|
24286
24282
|
function initiate(component) {
|
|
24287
24283
|
let {
|
|
24288
24284
|
explicitResize = false
|
|
24289
24285
|
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
24290
|
-
logHook('initiate');
|
|
24291
24286
|
component.__hooks = {
|
|
24292
24287
|
obsolete: false,
|
|
24293
24288
|
error: false,
|
|
@@ -24522,7 +24517,6 @@ function useState(initial) {
|
|
|
24522
24517
|
const v = typeof s === 'function' ? s(h.value[0]) : s;
|
|
24523
24518
|
if (v !== h.value[0]) {
|
|
24524
24519
|
h.value[0] = v;
|
|
24525
|
-
logHook("setState: ".concat(v), h.component);
|
|
24526
24520
|
scheduleMicro(h.component);
|
|
24527
24521
|
}
|
|
24528
24522
|
};
|
|
@@ -24573,13 +24567,10 @@ function useEffect(cb, deps) {
|
|
|
24573
24567
|
}
|
|
24574
24568
|
const h = getHook(++currentIndex);
|
|
24575
24569
|
if (depsChanged(h.value ? h.value[1] : undefined, deps)) {
|
|
24576
|
-
logHook('useEffect: deps changed');
|
|
24577
24570
|
h.value = [cb, deps];
|
|
24578
24571
|
if (currentComponent.__hooks.pendingEffects.indexOf(h) === -1) {
|
|
24579
24572
|
currentComponent.__hooks.pendingEffects.push(h);
|
|
24580
24573
|
}
|
|
24581
|
-
} else {
|
|
24582
|
-
logHook('useEffect: no change');
|
|
24583
24574
|
}
|
|
24584
24575
|
}
|
|
24585
24576
|
|
|
@@ -24693,7 +24684,6 @@ function usePromise(p, deps) {
|
|
|
24693
24684
|
h.teardown && h.teardown();
|
|
24694
24685
|
};
|
|
24695
24686
|
}, deps);
|
|
24696
|
-
logHook("usePromise: ".concat(obj.state));
|
|
24697
24687
|
return [obj.resolved, obj.rejected];
|
|
24698
24688
|
}
|
|
24699
24689
|
|