@arbocollab/arbo-web-search 0.26.1-alpha.0 → 0.26.1-alpha.2

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.
@@ -50253,6 +50253,30 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
50253
50253
  });
50254
50254
  };
50255
50255
  const handleKeyDown = (event) => {
50256
+ let isDisabled = true;
50257
+ const listEl = listRef.value;
50258
+ const instanceWrapper = listEl?.closest(".arbo-instance-container");
50259
+ if (!instanceWrapper) {
50260
+ console.warn("Instance wrapper not found, cannot change module ID config");
50261
+ } else {
50262
+ const classes = instanceWrapper.className;
50263
+ const match = classes.match(/arbo-instance-([^\s]+)/);
50264
+ const instanceType = match ? match[1] : null;
50265
+ if (instanceType) {
50266
+ const appManager = globalThis.window.appManager;
50267
+ const idx = appManager.currentInstance.popupStack.findIndex((s2) => s2.type === instanceType);
50268
+ if (idx == appManager.currentInstance.popupStack.length - 1) {
50269
+ isDisabled = false;
50270
+ } else {
50271
+ isDisabled = true;
50272
+ }
50273
+ console.log("Instance type:", instanceType, "isDisabled:", isDisabled);
50274
+ } else {
50275
+ console.warn("Instance type not found in class names:", classes);
50276
+ }
50277
+ }
50278
+ console.log("List element:", { listEl, instanceWrapper, isDisabled });
50279
+ if (isDisabled) return;
50256
50280
  if (!searchResults.value || searchResults.value.length === 0) return;
50257
50281
  selectMode.value = "keyboard";
50258
50282
  const keyActions = {
@@ -52234,7 +52258,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52234
52258
  };
52235
52259
  }
52236
52260
  });
52237
- const version = "0.26.1-alpha.0";
52261
+ const version = "0.26.1-alpha.2";
52238
52262
  /*!
52239
52263
  * shared v11.2.8
52240
52264
  * (c) 2025 kazuya kawaguchi