@invopop/popui 0.0.53 → 0.0.55

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.
@@ -1,4 +1,4 @@
1
- <script>import { flip, shift, offset } from "svelte-floating-ui/dom";
1
+ <script>import { offset } from "svelte-floating-ui/dom";
2
2
  import clsx from "clsx";
3
3
  import ProfileAvatar from "./ProfileAvatar.svelte";
4
4
  import { createFloatingActions } from "svelte-floating-ui";
@@ -11,10 +11,10 @@ export let picture = "";
11
11
  export let collapsed = false;
12
12
  export let enableSwitchOrg = false;
13
13
  const dispatch = createEventDispatcher();
14
- const [floatingRef, floatingContent] = createFloatingActions({
14
+ const [floatingRef, floatingContent, updatePosition] = createFloatingActions({
15
15
  strategy: "absolute",
16
16
  placement: "top-start",
17
- middleware: [offset(4), flip(), shift()]
17
+ middleware: [offset(4)]
18
18
  });
19
19
  let hovered = false;
20
20
  let leaveHoverTimeout = null;
@@ -34,7 +34,7 @@ $:
34
34
  },
35
35
  {
36
36
  label: `Configure ${orgName || "Organization"}`,
37
- value: "profile",
37
+ value: "organization",
38
38
  icon: Company,
39
39
  rightIcon: ExternalLink,
40
40
  footer: true
@@ -56,6 +56,7 @@ function handleHover() {
56
56
  clearTimeout(leaveHoverTimeout);
57
57
  }
58
58
  hovered = true;
59
+ updatePosition();
59
60
  }
60
61
  function handleBlur() {
61
62
  leaveHoverTimeout = setTimeout(() => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.0.53",
4
+ "version": "0.0.55",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",