codengage_view_components 0.1.1 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d57874e0097706bbbea5213f9f500282c9ec30d0c7b7cd5af8902ffc9b9c28b1
4
- data.tar.gz: bfa2e6ee10aecd3824adb57a7587780bb04f4e841147ae6599ae886e2376de0a
3
+ metadata.gz: 8bbb26385e5c3c18b2163c818dd1b297e945fd73caf2dc8cd24e6bc8c4232ec0
4
+ data.tar.gz: 2b620a3ee177618f11ab02e94e332931259f2c710414b0f9e145a2ca708a7f32
5
5
  SHA512:
6
- metadata.gz: 255fff1d02a7619792c3a22c2b46ea19936fdb794945047923474cf20be27103ab2fabde75911305b03fa4c36991cfc0e7b31473066a0653d7769802c044af3b
7
- data.tar.gz: 282bc016c1a2c2398871b7328b3cdcb2bddf08dee5942f472942eecff672df3b00c4e606a20ef30dda48b02f526049fa11f05896e7724c8a5ad9c924a15a233b
6
+ metadata.gz: 3b7a36a0ce0d50c33c2e457878bb11b94578a7f61c5a6dc727b0096fc02ae8ce23b404ab864399b0f15fcc1abf4b337fbd93ecaee64037ce6575b7af8e8cc238
7
+ data.tar.gz: 8fe639b200b7535481cbe3088a349004e991309a0ee8f6f7ae8953253fbcfc7a778e96c57c888719b5e1b5d1b597311321a3f97bfd11a3e4f568d3f6b8491cba
@@ -2,6 +2,8 @@ import { Controller } from "@hotwired/stimulus"
2
2
 
3
3
  export default class extends Controller {
4
4
  connect() {
5
+ console.log("Flash controller conectado!")
6
+
5
7
  requestAnimationFrame(() => {
6
8
  this.element.classList.add('flash--visible')
7
9
  })
data/config/importmap.rb CHANGED
@@ -1 +1 @@
1
- pin_all_from File.expand_path("../app/javascript/controllers", __dir__), under: "codengage_view_components"
1
+ pin_all_from File.expand_path("../app/javascript/controllers", __dir__), under: "controllers"
@@ -14,5 +14,11 @@ module CodengageViewComponents
14
14
  app.config.importmap.paths << root.join("config/importmap.rb")
15
15
  end
16
16
  end
17
+
18
+ initializer "codengage_view_components.stimulus_paths" do |app|
19
+ if app.config.respond_to?(:stimulus)
20
+ app.config.stimulus.directories << root.join("app/javascript/controllers")
21
+ end
22
+ end
17
23
  end
18
24
  end
@@ -1,3 +1,3 @@
1
1
  module CodengageViewComponents
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codengage_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Karlinski Baldo