x-essential-lib 0.10.4 → 0.10.6

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -124,9 +124,10 @@ async function waitUtil(conditionFunc, timeout, interval) {
124
124
  function appAppear(name, diff) {
125
125
  const appElement = document.getElementById("single-spa-application:" + name);
126
126
  if (!appElement) return;
127
- appElement.classList.remove("app-left", "app-right", "app-reset");
127
+ appElement.classList.remove("app-fade", "app-left", "app-right", "app-reset");
128
+ if (diff === 0) return;
128
129
  if (diff > 0) appElement.classList.add("app-left");
129
- else if (diff < 0) appElement.classList.add("app-right");
130
+ else appElement.classList.add("app-right");
130
131
  setTimeout(() => {
131
132
  appElement.classList.add("app-reset");
132
133
  }, 50);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],