proscenium 0.15.0.beta.5-arm64-darwin → 0.15.0.beta.6-arm64-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: ba987377abbaebbf4eb211dd824fead6dcb97676dcb7499c9edce7fc42eaafa9
4
- data.tar.gz: faaecb2565d83c961788235b906392386cfd6c423210f28752e6343fc97db035
3
+ metadata.gz: 0cc86ca359e86f6247886b0ae45bd64cfedcf371ddd9ac72dd6bdc5de19d132f
4
+ data.tar.gz: 2d064cae06399700c5ab06d3fba058815ca61003d9c95e254e1e5fcff56b828b
5
5
  SHA512:
6
- metadata.gz: 610dcbd471c985770f9a0b7a24701feb9ce098baf385b169e09929450f6d49799cc574c94ad35e5e72f1bda7a35876610820ce4d730f16889dfeb87435f29edf
7
- data.tar.gz: 9711ff219beb2ca42d60a482b2508b6c18f8a4dd49f6a68f8a2558f897e8cce9e660c3613ca505e37fee4feeb68e73a1ab57b1961a3fef0d82db59b54b3a36c6
6
+ metadata.gz: b3935a11fd5fdfa4a38304a7b4ddb9bc604e1bde3f2c60e018463492d02e895f4512234d86acfd33236ffa18e6a510b037060c6c8fb418b1f37a2fbd3ef1cfbb
7
+ data.tar.gz: c5d303f84ee3849e39025658088825f16175cda0503f523e73655832b7d8cd4d42416a4b41690435b044cb22d01a377426ef091d554a196370374122bc9e1afe
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: arm64-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