Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit d72e7c3

Browse files
committed
Fix all (but one CSS) currently broken mappings
1 parent 2c6620b commit d72e7c3

8 files changed

Lines changed: 10 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonlight-mod/mappings",
3-
"version": "1.1.28",
3+
"version": "1.1.29",
44
"license": "MIT",
55
"packageManager": "pnpm@10.7.1",
66
"engineStrict": false,

src/mappings/discord/components/common/Alerts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ register((moonmap) => {
3030
const name = "discord/components/common/Alerts";
3131
moonmap.register({
3232
name,
33-
find: ["secondaryConfirmText:", "this.show({"],
33+
find: ["secondaryConfirmText:", "this.show("],
3434
process({ id }) {
3535
moonmap.addModule(id, name);
3636

src/mappings/discord/components/modals/ConfirmModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ register((moonmap) => {
2727
const name = "discord/components/modals/ConfirmModal";
2828
moonmap.register({
2929
name,
30-
find: ".minorContainer,children:",
30+
find: 'parentComponent:"Alert",',
3131
process({ id }) {
3232
moonmap.addModule(id, name);
3333

src/mappings/discord/lib/BaseRecord.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ register((moonmap) => {
1717
const name = "discord/lib/BaseRecord";
1818
moonmap.register({
1919
name,
20-
find: "{toJS(){return{...this}}set(",
20+
find: ["{toJS(){return", "})):this}merge("],
2121
process({ id }) {
2222
moonmap.addModule(id, name);
2323

src/mappings/discord/modules/user_profile/web/UserProfileActivityCardWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ register((moonmap) => {
55
const name = "discord/modules/user_profile/web/UserProfileActivityCardWrapper";
66
moonmap.register({
77
name,
8-
find: 'location:"UserProfileActivityCardWrapper"},',
8+
find: 'location:"UserProfileActivityCardWrapper"}',
99
process({ id }) {
1010
moonmap.addModule(id, name);
1111

src/mappings/discord/uikit/ListSectionItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ register((moonmap) => {
44
const name = "discord/uikit/ListSectionItem";
55
moonmap.register({
66
name,
7-
find: ["let{className:", '.container),"aria-label":'],
7+
find: '("ListSectionItem")',
88
process({ id }) {
99
moonmap.addModule(id, name);
1010

src/mappings/discord/uikit/OverflowTooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ register((moonmap) => {
44
const name = "discord/uikit/OverflowTooltip";
55
moonmap.register({
66
name,
7-
find: [".overflow),", ".Tooltip,{"],
7+
find: ".overflow),ref:",
88
process({ id }) {
99
moonmap.addModule(id, name);
1010

src/mappings/discord/utils/PermissionUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ register((moonmap) => {
44
const name = "discord/utils/PermissionUtils";
55
moonmap.register({
66
name,
7-
find: ".computeLurkerPermissionsAllowList())&&void 0",
7+
find: ".computeLurkerPermissionsAllowList())",
88
process({ id }) {
99
moonmap.addModule(id, name);
1010

11+
// TODO: needs remappings
12+
1113
return true;
1214
}
1315
});

0 commit comments

Comments
 (0)