@strands.gg/accui 2.11.26 → 2.11.28

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/dist/index.es.js CHANGED
@@ -2036,10 +2036,13 @@ function useFloatingPosition(options) {
2036
2036
  zIndex: "9999"
2037
2037
  });
2038
2038
  const calculatePosition = async () => {
2039
+ await nextTick();
2039
2040
  if (!trigger.value || !floating.value) {
2040
2041
  return;
2041
2042
  }
2042
- await nextTick();
2043
+ if (typeof trigger.value.getBoundingClientRect !== "function" || typeof floating.value.getBoundingClientRect !== "function") {
2044
+ return;
2045
+ }
2043
2046
  const triggerRect = trigger.value.getBoundingClientRect();
2044
2047
  const floatingRect = floating.value.getBoundingClientRect();
2045
2048
  const [basePlacement, alignment = "start"] = placement.split("-");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.11.26",
3
+ "version": "2.11.28",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",