@arbocollab/arbo-web-search 0.26.1-alpha.1 → 0.26.1-alpha.3
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 +29 -6
- 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
|
@@ -50252,12 +50252,35 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
50252
50252
|
inline: "nearest"
|
|
50253
50253
|
});
|
|
50254
50254
|
};
|
|
50255
|
-
const
|
|
50256
|
-
let isDisabled = false;
|
|
50255
|
+
const currentInstanceType = computed(() => {
|
|
50257
50256
|
const listEl = listRef.value;
|
|
50258
|
-
const
|
|
50259
|
-
if (
|
|
50260
|
-
|
|
50257
|
+
const instanceWrapper = listEl?.closest(".arbo-instance-container");
|
|
50258
|
+
if (instanceWrapper) {
|
|
50259
|
+
const classes = instanceWrapper.className;
|
|
50260
|
+
const match = classes.match(/arbo-instance-([^\s]+)/);
|
|
50261
|
+
const instanceType = match ? match[1] : null;
|
|
50262
|
+
return instanceType;
|
|
50263
|
+
} else {
|
|
50264
|
+
console.warn("Instance wrapper not found, cannot change module ID config");
|
|
50265
|
+
}
|
|
50266
|
+
return null;
|
|
50267
|
+
});
|
|
50268
|
+
const handleKeyDown = (event) => {
|
|
50269
|
+
let isDisabled = true;
|
|
50270
|
+
const instanceType = currentInstanceType.value;
|
|
50271
|
+
if (instanceType) {
|
|
50272
|
+
const appManager = globalThis.window.appManager;
|
|
50273
|
+
const popupStack = appManager?.currentInstance?.popupStack;
|
|
50274
|
+
if (Array.isArray(popupStack)) {
|
|
50275
|
+
const idx = popupStack.findIndex((s2) => s2.type === instanceType);
|
|
50276
|
+
if (idx === popupStack.length - 1) {
|
|
50277
|
+
isDisabled = false;
|
|
50278
|
+
}
|
|
50279
|
+
} else {
|
|
50280
|
+
console.warn("appManager.currentInstance.popupStack is unavailable");
|
|
50281
|
+
}
|
|
50282
|
+
} else {
|
|
50283
|
+
console.warn("Instance type not found in class names:");
|
|
50261
50284
|
}
|
|
50262
50285
|
if (isDisabled) return;
|
|
50263
50286
|
if (!searchResults.value || searchResults.value.length === 0) return;
|
|
@@ -52241,7 +52264,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52241
52264
|
};
|
|
52242
52265
|
}
|
|
52243
52266
|
});
|
|
52244
|
-
const version = "0.26.1-alpha.
|
|
52267
|
+
const version = "0.26.1-alpha.3";
|
|
52245
52268
|
/*!
|
|
52246
52269
|
* shared v11.2.8
|
|
52247
52270
|
* (c) 2025 kazuya kawaguchi
|