fix(desktop): patch @dnd-kit/solid to preserve core scroll plugins (#38119)
Co-authored-by: Brendan Allan <git@brendonovich.dev> Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
parent
9e432a6785
commit
7c898249a2
2 changed files with 41 additions and 0 deletions
|
|
@ -143,6 +143,7 @@
|
||||||
"@types/node": "catalog:"
|
"@types/node": "catalog:"
|
||||||
},
|
},
|
||||||
"patchedDependencies": {
|
"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",
|
"@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",
|
"@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",
|
"@silvia-odwyer/photon-node@0.3.4": "patches/@silvia-odwyer%2Fphoton-node@0.3.4.patch",
|
||||||
|
|
|
||||||
40
patches/@dnd-kit%2Fdom@0.5.0.patch
Normal file
40
patches/@dnd-kit%2Fdom@0.5.0.patch
Normal 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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue