Merge branch 'immediate-finds' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-06-29 04:45:09 -03:00
commit 48442aee1d
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 2 additions and 2 deletions

View file

@ -25,5 +25,5 @@ export const Menu = findByProps<t.Menu>("MenuItem", "MenuSliderControl");
export const ContextMenuApi: t.ContextMenuApi = mapMangledModule('type:"CONTEXT_MENU_OPEN', {
closeContextMenu: filters.byCode("CONTEXT_MENU_CLOSE"),
openContextMenu: filters.byCode("renderLazy:"),
openContextMenuLazy: e => typeof e === "function" && e.toString().length < 100
openContextMenuLazy: e => typeof e === "function" && String(e).length < 100
});

View file

@ -154,7 +154,7 @@ const openExpressionPickerMatcher = canonicalizeMatch(/setState\({activeView:\i,
// TODO: type
export const ExpressionPickerStore: t.ExpressionPickerStore = mapMangledModule("expression-picker-last-active-view", {
closeExpressionPicker: filters.byCode("setState({activeView:null"),
openExpressionPicker: m => typeof m === "function" && openExpressionPickerMatcher.test(m.toString()),
openExpressionPicker: m => typeof m === "function" && openExpressionPickerMatcher.test(String(m)),
});
export const PopoutActions: t.PopoutActions = mapMangledModule('type:"POPOUT_WINDOW_OPEN"', {