vira 28.19.2 → 28.19.4
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.
|
@@ -51,21 +51,8 @@ export class PopUpManager {
|
|
|
51
51
|
this.navController = navController;
|
|
52
52
|
this.options = { ...this.options, ...options };
|
|
53
53
|
}
|
|
54
|
-
attachGlobalListeners(
|
|
55
|
-
let firstFired = false;
|
|
56
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
57
|
-
if (firstFired) {
|
|
58
|
-
this.removePopUp();
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
firstFired = true;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
resizeObserver.observe(container);
|
|
54
|
+
attachGlobalListeners() {
|
|
65
55
|
this.cleanupCallbacks = [
|
|
66
|
-
() => {
|
|
67
|
-
resizeObserver.disconnect();
|
|
68
|
-
},
|
|
69
56
|
listenToPageActivation(false, (isPageActive) => {
|
|
70
57
|
if (!isPageActive) {
|
|
71
58
|
this.removePopUp();
|
|
@@ -192,7 +179,7 @@ export class PopUpManager {
|
|
|
192
179
|
diff.bottom < currentOptions.minDownSpace;
|
|
193
180
|
const useLeft = diff.left > diff.right + currentOptions.horizontalDiffThreshold &&
|
|
194
181
|
diff.right < currentOptions.minRightSpace;
|
|
195
|
-
this.attachGlobalListeners(
|
|
182
|
+
this.attachGlobalListeners();
|
|
196
183
|
return {
|
|
197
184
|
popDown: !useUp,
|
|
198
185
|
popRight: !useLeft,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vira",
|
|
3
|
-
"version": "28.19.
|
|
3
|
+
"version": "28.19.4",
|
|
4
4
|
"description": "A simple and highly versatile design system using element-vir.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"esbuild": "^0.27.2",
|
|
62
62
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
63
63
|
"markdown-code-example-inserter": "^3.0.3",
|
|
64
|
-
"theme-vir": "^28.
|
|
64
|
+
"theme-vir": "^28.17.0",
|
|
65
65
|
"typedoc": "^0.28.15",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
|
-
"vite": "^7.3.
|
|
68
|
-
"vite-tsconfig-paths": "^6.0.
|
|
67
|
+
"vite": "^7.3.1",
|
|
68
|
+
"vite-tsconfig-paths": "^6.0.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"element-vir": "^26.9.1",
|