this repo has no description
1import { ExtensionWebpackModule, Patch } from "@moonlight-mod/types"; 2 3export const patches: Patch[] = [ 4 { 5 find: "Menu API only allows Items and groups of Items as children.", 6 replace: [ 7 { 8 match: /(?<=let{navId[^}]+?}=(.),.=).+?(?=,)/, 9 replacement: (items, props) => `require("contextMenu_contextMenu")._patchMenu(${props},${items})` 10 } 11 ] 12 }, 13 { 14 find: ".getContextMenu(", 15 replace: [ 16 { 17 match: /(?<=let\{[^}]+?\}=.;return ).\({[^}]+?}\)/, 18 replacement: (render) => `require("contextMenu_contextMenu")._saveProps(this,${render})` 19 } 20 ] 21 } 22]; 23 24export const webpackModules: Record<string, ExtensionWebpackModule> = { 25 contextMenu: { 26 dependencies: [{ ext: "spacepack", id: "spacepack" }, "Menu API only allows Items and groups of Items as children."] 27 }, 28 evilMenu: { 29 dependencies: [{ ext: "spacepack", id: "spacepack" }, "Menu API only allows Items and groups of Items as children."] 30 } 31};