decidim-comments 0.31.5 → 0.31.6

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: 8ed6aba89df5d74fa0ef398f1bb2b245cdf79951ccc2392357750183ae185860
4
- data.tar.gz: 5cc6bb7c28a652ca7bb64b81bea00496ded104c00b734d93ae97fff85373483f
3
+ metadata.gz: 47a6931a2765bd42e7aeee4ae9510abbe50921284d4bce71ef82839eb7ab1267
4
+ data.tar.gz: 1f5b3fce5fa4468b472c5c54334a0540804380df8367669057cabe27102b2aad
5
5
  SHA512:
6
- metadata.gz: 82f281ba89222eba04049fc23bd931bfbe3deeb7ee7e30f82251451c007a4ea4970b3569f12674a0ea0a917278112bf6799bb550cfdc8b0decbd96887b9d4ffa
7
- data.tar.gz: da03531b99d35487abeb0d631164db794a6dab35349047332a206e058727b27be4af75971dc1fe7f78c1b59072eb386cea0916d2b609f40f82ece534bf5d5682
6
+ metadata.gz: c0325595a7cd3e26dff2f8fb1a009816e45b3fbab10ec396ee7db8633a8586e44205627601c540153152d823735e692b82ad14223ff63d7b4a24ddaca5e59f26
7
+ data.tar.gz: df779b790cb424253bc6395b5a134e35e612bfd8562162343443495f0aa12bc7c47ecc9c059a06fa3c09fe8c35d2440c10ba4d9add5141fb838ab039a725f75c
@@ -115,8 +115,7 @@ describe("CommentsComponent", () => {
115
115
  data-input-emoji="true"
116
116
  name="comment[body]"
117
117
  aria-describedby="add-comment-${modelName}-${modelId}-remaining-characters_sr"
118
- data-input-emoji-initialized="true"
119
- data-tribute="true">
118
+ data-input-emoji-initialized="true">
120
119
  </textarea>
121
120
  <span class="emoji__trigger">
122
121
  <button class="emoji__button" type="button" aria-label="Add emoji">
@@ -99,5 +99,5 @@ const commentsInitializer = () => {
99
99
  window.addEventListener("resize", handleResize);
100
100
  };
101
101
 
102
- // If no jQuery is used the Tribute feature used in comments to autocomplete mentions stops working
102
+ // Keep this on turbo load so comments are mounted after each visit
103
103
  document.addEventListener("turbo:load", commentsInitializer);
@@ -1,4 +1,4 @@
1
- @use "stylesheets/decidim/tribute";
1
+ @use "stylesheets/decidim/editor_suggestions";
2
2
 
3
3
  .comments {
4
4
  &__container {
@@ -2,7 +2,7 @@
2
2
  <%= form.check_box :comments_enabled, label: t(".enabled"), data: { controller: :toggle, "toggle-toggle-value": "customize_comments_times-div" } %>
3
3
  </div>
4
4
 
5
- <div id="customize_comments_times-div" data-toggler=".hide" class="row column <%= @form.comments_enabled ? nil : "hide" %>">
5
+ <div id="customize_comments_times-div" class="row column <%= @form.comments_enabled ? nil : "hide" %>">
6
6
  <div class="mb-4">
7
7
  <%= form.datetime_field :comments_start_time, label: t(".start_time") %>
8
8
  </div>
@@ -159,7 +159,7 @@ pl:
159
159
  email_intro: Wspomniano o Tobie
160
160
  email_outro: Otrzymałeś to powiadomienie, ponieważ wspomniano o Tobie w %{resource_title}.
161
161
  email_subject: Wspomniano o Tobie w %{resource_title}
162
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> wspomniał(a) o Tobie w <a href="%{resource_path}">%{resource_title}</a>
162
+ notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> wspomniał(a) o Tobie w <a href="%{resource_path}">%{resource_title}</a>
163
163
  errors:
164
164
  messages:
165
165
  cannot_have_comments: nie może mieć komentarzy
@@ -34,17 +34,6 @@ module Decidim
34
34
  Decidim::Api::MutationType.include MutationExtensions
35
35
  end
36
36
 
37
- initializer "decidim_comments.stats" do
38
- Decidim.stats.register :comments_count,
39
- priority: StatsRegistry::HIGH_PRIORITY,
40
- icon_name: "chat-1-line",
41
- tooltip_key: "comments_count" do |organization|
42
- Decidim.component_manifests.sum do |component|
43
- component.stats.filter(tag: :comments).with_context(organization.published_components).map { |_name, value| value }.compact_blank.sum
44
- end
45
- end
46
- end
47
-
48
37
  initializer "decidim_comments.register_icons" do
49
38
  common_parameters = { category: "action", engine: :comments }
50
39
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.31.5"
7
+ "0.31.6"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.5
4
+ version: 0.31.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-05-12 00:00:00.000000000 Z
13
+ date: 2026-07-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.31.5
21
+ version: 0.31.6
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.31.5
28
+ version: 0.31.6
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: redcarpet
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -52,28 +52,28 @@ dependencies:
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.31.5
55
+ version: 0.31.6
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.31.5
62
+ version: 0.31.6
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: decidim-dev
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.31.5
69
+ version: 0.31.6
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 0.31.5
76
+ version: 0.31.6
77
77
  description: Pluggable comments system for some components.
78
78
  email:
79
79
  - josepjaume@gmail.com