ariadne_view_components 0.0.28-x64-mingw32 → 0.0.29-x64-mingw32

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: bc95243c3712db9f9ab81cbc25e03b0f4410abdf746347359b56b9d2cfa94d2a
4
- data.tar.gz: d7f734d06dc9be948d3d18da7f67a92da1ae94e865db1facc017582f007fac63
3
+ metadata.gz: 41f9114b9567099280de2b26264c2b01fcf12ac9bc344a72917a1d61bb0584d9
4
+ data.tar.gz: 267aca8ede123eff7df225e606d2a2c2d459477b86a52c3c8d8d40f8480b0e63
5
5
  SHA512:
6
- metadata.gz: 871e124a60d1af502cdb21d04c716852c878b587aa29351ff949a7d30757e2958315d4c8c872767f0ec21bba538f24c622b4a1520f9f39edd5950ebdd4d46b59
7
- data.tar.gz: e79d29bf2e8faa9767b0cc7f3cc3bc9f3e60bb4455b13213fa9e181cb5606a2f714a6e2b52cee8ec8b0f35939a194c7431fec957e79055f1cc6e28ca08e178d2
6
+ metadata.gz: 02e83f39153073031ccb7d98a9ea020dee883ef3b5d8c93c7bb16bb6a6ba7c80e1c66639e30da439e80dbbcba21f883b00bfc8e7a6982c29a280a57ec3332e13
7
+ data.tar.gz: 3785940bef0843108a5b890c066cca147cac816317d306103f26e48e64001e27c275b03be253274d1cb5cfd12ac61a320b8a6a685cd102791bcea6b02b50e3bf
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: x64-mingw32
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