ariadne_view_components 0.0.28-arm64-darwin → 0.0.29-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: 62fd497b3d3593f9e1dc0a59d0674199edc19ccb26025e2749760ed6ff783474
4
- data.tar.gz: a21877573689c3092e70440e7980f8d6ba29bd06af2a2e5471cac4c29b1b09ab
3
+ metadata.gz: 700245ddd5377f838fe7f17b490eaad04a4c29535b0255d30ff751a2300dcb0f
4
+ data.tar.gz: 7fdda518da157992fbfd6398908120b5b559ed01e3ba75f26c44f22bf5d69a64
5
5
  SHA512:
6
- metadata.gz: c0dc1dc48d1b20abdeee4bae30b29b0d29ab8a9e411ab1518869354e6c9080c70fd479a8b5c53d60802faa7fd85478c0b9bcea0f9dc4430fef907e7112d21d4e
7
- data.tar.gz: 9615285afb7ab6d4de309137560329d5e024aa6c4952ef8634dca7c7467184a080c0ce8aaea9bf99fbfad3b2394eef3c6e2c0c35a2110efe73f91bf62fa9feb1
6
+ metadata.gz: 382662cc49b1f862471e6f920ce28e348fa06037e7f5bdfcc5b79e49364f6474bea4331605113853eaeb38b8bba8a50e9b171c77d10ac437e4b418f482633a2e
7
+ data.tar.gz: 7480974273c4b25716832e437006f5baeaba75ae94ed489ee8014a5e690111aef85e7f295a9eec8d44fd5c980681d2d2685a246a742275701a40895f9dc9ec0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.29](https://github.com/yettoapp/ariadne/tree/v0.0.29) (2023-02-21)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.28...v0.0.29)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Add ability to add hidden tags to commentcomponent [\#152](https://github.com/yettoapp/ariadne/pull/152) ([gjtorikian](https://github.com/gjtorikian))
10
+ - Bump @tiptap/core from 2.0.0-beta.217 to 2.0.0-beta.218 [\#151](https://github.com/yettoapp/ariadne/pull/151) ([dependabot[bot]](https://github.com/apps/dependabot))
11
+ - Bump @tiptap/extension-history from 2.0.0-beta.217 to 2.0.0-beta.218 [\#150](https://github.com/yettoapp/ariadne/pull/150) ([dependabot[bot]](https://github.com/apps/dependabot))
12
+ - Bump @tiptap/extension-paragraph from 2.0.0-beta.217 to 2.0.0-beta.218 [\#149](https://github.com/yettoapp/ariadne/pull/149) ([dependabot[bot]](https://github.com/apps/dependabot))
13
+ - Bump @tiptap/extension-hard-break from 2.0.0-beta.217 to 2.0.0-beta.218 [\#148](https://github.com/yettoapp/ariadne/pull/148) ([dependabot[bot]](https://github.com/apps/dependabot))
14
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.217 to 2.0.0-beta.218 [\#147](https://github.com/yettoapp/ariadne/pull/147) ([dependabot[bot]](https://github.com/apps/dependabot))
15
+ - Bump @tiptap/extension-gapcursor from 2.0.0-beta.217 to 2.0.0-beta.218 [\#146](https://github.com/yettoapp/ariadne/pull/146) ([dependabot[bot]](https://github.com/apps/dependabot))
16
+ - Bump @tiptap/extension-document from 2.0.0-beta.217 to 2.0.0-beta.218 [\#145](https://github.com/yettoapp/ariadne/pull/145) ([dependabot[bot]](https://github.com/apps/dependabot))
17
+ - Bump @tiptap/extension-text from 2.0.0-beta.217 to 2.0.0-beta.218 [\#144](https://github.com/yettoapp/ariadne/pull/144) ([dependabot[bot]](https://github.com/apps/dependabot))
18
+
3
19
  ## [v0.0.28](https://github.com/yettoapp/ariadne/tree/v0.0.28) (2023-02-17)
4
20
 
5
21
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.27...v0.0.28)
@@ -4,6 +4,9 @@
4
4
  <% tab.text { @public_tab_text } %>
5
5
  <% tab.panel(attributes: {:"data-public" => true}) do %>
6
6
  <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
7
+ <% @hidden_fields.each do |name, value| %>
8
+ <%= hidden_field_tag name, value %>
9
+ <% end %>
7
10
  <div class="ariadne-overflow-hidden ariadne-border ariadne-border-slate-300 ariadne-shadow-sm">
8
11
  <%= hidden_field_tag 'message_is_public', true %>
9
12
  <%= render(Ariadne::RichTextAreaComponent.new(name: :message_public_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
@@ -50,9 +50,10 @@ module Ariadne
50
50
  # @param url [String] The URL to take action against.
51
51
  # @param method [String] The method to use when submitting the form.
52
52
  # @param sr_label [String] A label to introduce these tabs for screen readers.
53
+ # @param hidden_fields [[String]] An array of arrays of additional (hidden) fields to add to the form.
53
54
  # @param classes [String] <%= link_to_classes_docs %>
54
55
  # @param attributes [Hash] <%= link_to_attributes_docs %>
55
- def initialize(url:, method: :post, sr_label:, classes: "", attributes: {})
56
+ def initialize(url:, method: :post, sr_label:, hidden_fields: [], classes: "", attributes: {})
56
57
  @tag = DEFAULT_TAG
57
58
  @classes = class_names(
58
59
  DEFAULT_CLASSES,
@@ -63,6 +64,7 @@ module Ariadne
63
64
  @sr_label = sr_label
64
65
 
65
66
  @tab_idx = -1
67
+ @hidden_fields = hidden_fields
66
68
  @attributes = attributes
67
69
  end
68
70
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.28"
5
+ VERSION = "0.0.29"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge