codengage_view_components 0.1.0 → 0.1.2

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: ebf99eb2f36d77f141dd24398a34f78a016ac7b029afcb89e633a8a13793fcfa
4
- data.tar.gz: 431697508165c85ae1ad6e8d87576163c3eba78e43d322001a9f0577866eea40
3
+ metadata.gz: fd8bfa06c6670d6a79a99bdfa9ec11f87015b41b19b2b2d79ffb2c029ceb886b
4
+ data.tar.gz: 28bc4937cca703c2a610fd0006f0049cb2a721ddf66f7c9d3330aab01b4b25d6
5
5
  SHA512:
6
- metadata.gz: a8b828d6ad4cf064b302e20ff16b5c4794a15374a295c552f23ff29ab7c04d8dfd90cf0cc0cd93f59153777112b50fea9e963304080b91bf643951af595048d4
7
- data.tar.gz: 3cc821faac6e7b8356f393afe7fa5b5629154d668ab2089a7ae164b0f6ff773c17ae4fa696f6da6b6e5f1303a113e2a1d45137cb59c4e582c5cb7f0378290069
6
+ metadata.gz: f60b5b9cba095efccd8adc439f1d1a26989e01c368bba28516cdc52c3d11fdf9b98b209f117060e1af5aa53e5623dda0bcea3a148983d316cc314c6571f6b772
7
+ data.tar.gz: 105b26173f3b39e5c45d96d3770a9e089d8fca4f97af54fcd915661f5d094d4a331d94391b428554ffc26fd9a6497da203597ea11f4147c2e20ca08ceb9e0b42
@@ -1,5 +1,5 @@
1
1
  - @messages.each do |message|
2
- .flash{ class: message.bg, data: { controller: "codengage-view-components--flash-component" } }
2
+ .flash{ class: message.bg, data: { controller: "flash-component" } }
3
3
  .flash__icon
4
4
  = lucide_icon(message.icon, stroke: message.stroke)
5
5
  .flash__text
@@ -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
  })
@@ -0,0 +1,4 @@
1
+ import { application } from "./application"
2
+ import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
3
+
4
+ eagerLoadControllersFrom("controllers", application)
data/config/importmap.rb CHANGED
@@ -1 +1 @@
1
- pin_all_from File.expand_path("../app/components", __dir__), under: "codengage_view_components"
1
+ pin_all_from File.expand_path("../app/javascript/controllers", __dir__), under: "codengage_view_components"
@@ -4,6 +4,7 @@ module CodengageViewComponents
4
4
 
5
5
  initializer "codengage_view_components.assets" do |app|
6
6
  if app.config.respond_to?(:assets)
7
+ app.config.assets.paths << root.join("app/javascript")
7
8
  app.config.assets.paths << root.join("app/components")
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module CodengageViewComponents
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codengage_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Karlinski Baldo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-13 00:00:00.000000000 Z
11
+ date: 2026-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -96,11 +96,12 @@ files:
96
96
  - app/components/codengage_view_components/flash_component.css
97
97
  - app/components/codengage_view_components/flash_component.html.haml
98
98
  - app/components/codengage_view_components/flash_component.rb
99
- - app/components/codengage_view_components/flash_component_controller.js
100
99
  - app/controllers/codengage_view_components/application_controller.rb
101
100
  - app/controllers/codengage_view_components/pages_controller.rb
102
101
  - app/helpers/codengage_view_components/application_helper.rb
103
102
  - app/helpers/codengage_view_components/pages_helper.rb
103
+ - app/javascript/controllers/flash_component_controller.js
104
+ - app/javascript/controllers/index.js
104
105
  - app/jobs/codengage_view_components/application_job.rb
105
106
  - app/mailers/codengage_view_components/application_mailer.rb
106
107
  - app/models/codengage_view_components/application_record.rb