x-essential-lib 0.10.5 → 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 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -125,9 +125,9 @@ function appAppear(name, diff) {
125
125
  const appElement = document.getElementById("single-spa-application:" + name);
126
126
  if (!appElement) return;
127
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-fade");
130
+ else appElement.classList.add("app-right");
131
131
  setTimeout(() => {
132
132
  appElement.classList.add("app-reset");
133
133
  }, 50);
@@ -590,7 +590,7 @@ function onBeforeChange(toPath, fromPath, lastAppPath) {
590
590
  const diff = toRouteMeta.level - fromRouteMeta.level;
591
591
  if (sameApp) if (diff > 0) routeTransName.value = "inner-left";
592
592
  else if (diff < 0) routeTransName.value = "inner-right";
593
- else routeTransName.value = "inner-fade";
593
+ else routeTransName.value = "";
594
594
  else {
595
595
  routeTransName.value = "";
596
596
  appAppear(toRouteMeta.app, diff);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],