ariadne_view_components 0.0.28 → 0.0.29
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aad73fe39a0f2bd10df4d2a29ad133d9b6047aaac7c07787c6bad69061edb80
|
4
|
+
data.tar.gz: 72f7979de2705e1daaeed9e8ded80c2bf0c88f2d57ad44e7856b7a1a2155acc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50c2349075778f08c96c243e0f7488dda4abeeb4bc3ca2679765e118ad02be33d38f48d70b9bde7908082f66be355edd4ccd048908eab9cdd0e566f738b8d63a
|
7
|
+
data.tar.gz: 0a7fe86d5335c079f2a888e173149006e821f64ef34c897ac3b4ca55588d80da6fe220f1c8aeac0a1796f3b72efdf955c07b56b17d7d4109566fe79202564d7c
|
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
|
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.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|