@sovovs/bycli 2.1.5 → 2.1.7

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.
@@ -151,6 +151,29 @@ async function captureSearchBizFingerprintOwned(page, query, timeoutMs) {
151
151
  }
152
152
 
153
153
  if (allowClick) {
154
+ const wechatOverflowTriggers = Array.from(document.querySelectorAll('#editor_showmore'))
155
+ .filter(visible);
156
+ if (wechatOverflowTriggers.length === 1) {
157
+ const trigger = wechatOverflowTriggers[0];
158
+ const scopedMenus = Array.from(trigger.querySelectorAll(
159
+ '.editor_showmore_dropdown_menu',
160
+ )).filter(visible);
161
+ if (scopedMenus.length === 1) {
162
+ const profileTargets = new Set(Array.from(scopedMenus[0].querySelectorAll(
163
+ '#js_editor_insertProfile',
164
+ )).filter(element => visible(element) && exactText(element) === '账号名片')
165
+ .map(clickable));
166
+ if (profileTargets.size === 1) {
167
+ const [target] = profileTargets;
168
+ target.click();
169
+ return { dialogVisible: false, entryClicked: true, overflowClicked: false };
170
+ }
171
+ } else if (scopedMenus.length === 0 && allowOverflowClick) {
172
+ clickable(trigger).click();
173
+ return { dialogVisible: false, entryClicked: false, overflowClicked: true };
174
+ }
175
+ }
176
+
154
177
  const menuTargets = new Set();
155
178
  const menus = Array.from(document.querySelectorAll(
156
179
  '[role="menu"], [class*="menu"], [class*="dropdown"], [class*="popover"]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sovovs/bycli",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },