fix(app): preserve dnd core plugins

This commit is contained in:
Brendan Allan 2026-07-28 17:40:09 +08:00
commit a6768da519
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
2 changed files with 41 additions and 0 deletions

View file

@ -143,6 +143,7 @@
"@types/node": "catalog:"
},
"patchedDependencies": {
"@dnd-kit/dom@0.5.0": "patches/@dnd-kit%2Fdom@0.5.0.patch",
"@ff-labs/fff-bun@0.9.3": "patches/@ff-labs%2Ffff-bun@0.9.3.patch",
"@npmcli/agent@4.0.2": "patches/@npmcli%2Fagent@4.0.2.patch",
"@silvia-odwyer/photon-node@0.3.4": "patches/@silvia-odwyer%2Fphoton-node@0.3.4.patch",

View file

@ -0,0 +1,40 @@
--- a/index.js
+++ b/index.js
@@ -2195,6 +2195,17 @@
sensors,
modifiers
}));
+ }
+ get plugins() {
+ return super.plugins;
+ }
+ set plugins(plugins) {
+ super.plugins = [
+ ScrollListener,
+ Scroller,
+ StyleInjector,
+ ...plugins
+ ];
}
};
var _element_dec, _handle_dec, _c, _init5, _handle, _element;
--- a/index.cjs
+++ b/index.cjs
@@ -2196,6 +2196,17 @@
sensors,
modifiers
}));
+ }
+ get plugins() {
+ return super.plugins;
+ }
+ set plugins(plugins) {
+ super.plugins = [
+ ScrollListener,
+ Scroller,
+ StyleInjector,
+ ...plugins
+ ];
}
};
var _element_dec, _handle_dec, _c, _init5, _handle, _element;