shimmer 0.0.27 → 0.0.28

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: 9e35d3ffd274eed6d097eecc2063480939a12f02fce8ebed8fdb044eb3d1803d
4
- data.tar.gz: 4e13f28ce0fd611a7c1c64304f3f74e16a3858bb74b5b0ff95c08ca1a4510e39
3
+ metadata.gz: c29fbc043f70767d14167a6da3f50d85790e85f3244628c207c41412a9d0db65
4
+ data.tar.gz: 8b33c52bf110c85c72427fe5dd320bbb26ff782aecba81f4aae17fe3f1eb81f3
5
5
  SHA512:
6
- metadata.gz: b729abf735db7fe90b129af95bbe00447bce77031a6e3c92fe4d467559ec23d4a6aae69076d40cad1c176902046f83b4905898ff87d7ce5d86d183b315b4a652
7
- data.tar.gz: c3cc9de1117a71a9711522cc73c072edfc018508cf2d040c52d84f25cb5295927b1e4c3e01455849ef2ad76d9fc051ca38250c54d8882e724e9d8b5a3fcc63e5
6
+ metadata.gz: 8c9bbb1b1ef81986d70a3101ec86ed3222c015ab2466d585bc5ebcc83cc0c80adfdc57e4ac223a01ae96fa2ab5be0aedebf60efeffba32507fd44402779e4f34
7
+ data.tar.gz: 0b8e06125388ce26ae9e88adfdd3616828180a46332f584d4a631630a68c69fff6cd59f0242c8d9db69ed3c0a72ab77abdee84655785ae7f8f0a861e96513814
@@ -69,22 +69,34 @@ module Shimmer
69
69
  queued_updates.push turbo_stream.append "shimmer", "<div class='hidden' data-controller='remote-navigation'>#{script}</div>"
70
70
  end
71
71
 
72
- def replace(id, with: id, **locals)
73
- queued_updates.push turbo_stream.replace(id, partial: with, locals: locals)
72
+ def append(id, with:, **locals)
73
+ queued_updates.push turbo_stream.append(id, partial: with, locals: locals)
74
74
  end
75
75
 
76
76
  def prepend(id, with:, **locals)
77
77
  queued_updates.push turbo_stream.prepend(id, partial: with, locals: locals)
78
78
  end
79
79
 
80
- def append(id, with:, **locals)
81
- queued_updates.push turbo_stream.append(id, partial: with, locals: locals)
80
+ def replace(id, with: id, **locals)
81
+ queued_updates.push turbo_stream.replace(id, partial: with, locals: locals)
82
+ end
83
+
84
+ def update(id, with: id, **locals)
85
+ queued_updates.push turbo_stream.update(id, partial: with, locals: locals)
82
86
  end
83
87
 
84
88
  def remove(id)
85
89
  queued_updates.push turbo_stream.remove(id)
86
90
  end
87
91
 
92
+ def insert_before(id, with:, **locals)
93
+ queued_updates.push turbo_stream.before(id, partial: with, locals: locals)
94
+ end
95
+
96
+ def insert_after(id, with:, **locals)
97
+ queued_updates.push turbo_stream.after(id, partial: with, locals: locals)
98
+ end
99
+
88
100
  def open_modal(url, id: nil, size: nil, close: true)
89
101
  run_javascript "ui.modal.open(#{{url: url, id: id, size: size, close: close}.to_json})"
90
102
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shimmer
4
- VERSION = "0.0.27"
4
+ VERSION = "0.0.28"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ravens
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake