plutonium 0.24.6 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24278,6 +24278,21 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
24278
24278
  }
24279
24279
  };
24280
24280
 
24281
+ // src/js/controllers/remote_modal_controller.js
24282
+ var remote_modal_controller_default = class extends Controller {
24283
+ connect() {
24284
+ this.originalScrollPosition = window.scrollY;
24285
+ this.element.showModal();
24286
+ this.element.addEventListener("close", this.handleClose.bind(this));
24287
+ }
24288
+ disconnect() {
24289
+ this.element.removeEventListener("close", this.handleClose);
24290
+ }
24291
+ handleClose() {
24292
+ window.scrollTo(0, this.originalScrollPosition);
24293
+ }
24294
+ };
24295
+
24281
24296
  // src/js/controllers/register_controllers.js
24282
24297
  function register_controllers_default(application2) {
24283
24298
  application2.register("password-visibility", password_visibility_controller_default);
@@ -24299,6 +24314,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
24299
24314
  application2.register("attachment-input", attachment_input_controller_default);
24300
24315
  application2.register("attachment-preview", attachment_preview_controller_default);
24301
24316
  application2.register("attachment-preview-container", attachment_preview_container_controller_default);
24317
+ application2.register("remote-modal", remote_modal_controller_default);
24302
24318
  }
24303
24319
 
24304
24320
  // node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js