@arbocollab/arbo-web-search 0.26.1-alpha.1 → 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.
- package/dist/es/index.es.js +22 -5
- package/dist/es/index.es.js.map +1 -1
- package/dist/umd/index.umd.js +2 -2
- package/dist/umd/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.es.js
CHANGED
|
@@ -50253,12 +50253,29 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
50253
50253
|
});
|
|
50254
50254
|
};
|
|
50255
50255
|
const handleKeyDown = (event) => {
|
|
50256
|
-
let isDisabled =
|
|
50256
|
+
let isDisabled = true;
|
|
50257
50257
|
const listEl = listRef.value;
|
|
50258
|
-
const
|
|
50259
|
-
if (
|
|
50260
|
-
|
|
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
|
+
}
|
|
50261
50277
|
}
|
|
50278
|
+
console.log("List element:", { listEl, instanceWrapper, isDisabled });
|
|
50262
50279
|
if (isDisabled) return;
|
|
50263
50280
|
if (!searchResults.value || searchResults.value.length === 0) return;
|
|
50264
50281
|
selectMode.value = "keyboard";
|
|
@@ -52241,7 +52258,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52241
52258
|
};
|
|
52242
52259
|
}
|
|
52243
52260
|
});
|
|
52244
|
-
const version = "0.26.1-alpha.
|
|
52261
|
+
const version = "0.26.1-alpha.2";
|
|
52245
52262
|
/*!
|
|
52246
52263
|
* shared v11.2.8
|
|
52247
52264
|
* (c) 2025 kazuya kawaguchi
|