proscenium 0.15.0.beta.5-x86_64-darwin → 0.15.0.beta.6-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e01519ca50eae22b78bd8f55b6f55ad4c24327a06dc7ee13667a2d5b3baae5f
4
- data.tar.gz: e767cff16534ad0092093a5654f6b4af5fdad769203fe4ae25b3855cd1d380b6
3
+ metadata.gz: a498ef4b92e703e95804cc28c0076df3da4331533aec7fd0e314cd598a532de6
4
+ data.tar.gz: 141c88e143f857910ad7544322bd6ea11fc280a1a8db359ffeb063e2decdbc12
5
5
  SHA512:
6
- metadata.gz: 7aeedbf4df14e6f770e1666dd64ff66f0a4c38187ea1cd4bf1688a57a52709f76da67daa12dd296e36bf0107e05fb86092e7d1668714c60daf6da6ec0b8f7ed9
7
- data.tar.gz: 499918efe5c3f447160bc49f5ae3287526cf5e5b1cb4cdff6bd1211bd95df7001068ea8285acddceb725425b8a236115732ad75a78780a7c3524736ec8f05867
6
+ metadata.gz: 686b3850a3ebc2bdfbc457a66174525ff2b4b8e1646d4da150204d15c1ff2d77a14e5900ff07db68486ac61746d798db16ae71a07362a3e90fe2799cff76aab0
7
+ data.tar.gz: b4d0d9b54c30b23b0cc21b9a35018af89cc414f99e0d1ba1557bd4bea519d194ead89aa783ea0dac723da7719ea9e2cb1858ebae1078838649b9e8a3446a3147
Binary file
@@ -1,16 +1,23 @@
1
1
  export default class DataConfirm {
2
- onSubmit = event => {
3
- if (!event.target.matches('[data-turbo=true]') && 'confirm' in event.submitter.dataset) {
4
- const v = event.submitter.dataset.confirm
2
+ onSubmit = (event) => {
3
+ if (
4
+ !event.target.matches("[data-turbo=true]") &&
5
+ event.submitter &&
6
+ "confirm" in event.submitter.dataset
7
+ ) {
8
+ const v = event.submitter.dataset.confirm;
5
9
 
6
- if (v !== 'false' && !confirm(v === 'true' || v === '' ? 'Are you sure?' : v)) {
7
- event.preventDefault()
8
- event.stopPropagation()
9
- event.stopImmediatePropagation()
10
- return false
10
+ if (
11
+ v !== "false" &&
12
+ !confirm(v === "true" || v === "" ? "Are you sure?" : v)
13
+ ) {
14
+ event.preventDefault();
15
+ event.stopPropagation();
16
+ event.stopImmediatePropagation();
17
+ return false;
11
18
  }
12
19
  }
13
20
 
14
- return true
15
- }
21
+ return true;
22
+ };
16
23
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.15.0.beta.5'
4
+ VERSION = '0.15.0.beta.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta.5
4
+ version: 0.15.0.beta.6
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -217,11 +217,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  version: 2.7.0
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - ">"
221
221
  - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: 1.3.1
223
223
  requirements: []
224
- rubygems_version: 3.5.7
224
+ rubygems_version: 3.4.19
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: The engine powering your Rails frontend