app/javascript/controllers/ui/dialog_controller.js in shadcn-ui-0.0.4 vs app/javascript/controllers/ui/dialog_controller.js in shadcn-ui-0.0.5
- old
+ new
@@ -1,7 +1,7 @@
// Inspired by https://github.com/kanety/stimulus-dialog
import { Controller } from "@hotwired/stimulus";
-import "@kanety/stimulus-static-actions";
+import "https://ga.jspm.io/npm:@kanety/stimulus-static-actions@1.0.1/dist/index.modern.js";
export default class UIDialog extends Controller {
static targets = ["dialog", "modal", "focus", "drag", "backdrop", "closeButton"];
static actions = [
["element", "keydown@window->closeByKey"],