瀏覽代碼

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>
Robin Andrew 1 周之前
父節點
當前提交
7c898249a2
共有 2 個文件被更改,包括 41 次插入0 次删除
  1. 1 0
      package.json
  2. 40 0
      patches/@dnd-kit%2Fdom@0.5.0.patch

+ 1 - 0
package.json

@@ -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",

+ 40 - 0
patches/@dnd-kit%2Fdom@0.5.0.patch

@@ -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;