tramway 2.3.1 → 2.3.1.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f94931c225d093e9cb11e8957ae333b66a2a6feb0e36427c77bbe864ae75433
|
|
4
|
+
data.tar.gz: a16912c9f8ea5da24eabbba7dd0f0524f1ef0f057c14a6af6f56c2d930b08b37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0174d5e8d6ed3f337bcbc01523471d651d333d30104399da24d0e9ac16dd0a7549982e3ad77b8ff15c8af26c59791e11120c4afee462215870bbf4c1a9fbdf81
|
|
7
|
+
data.tar.gz: 9e229945662dadadb01ca4075bf0a2da71b90fdca30e4b687144424d72e9929face26facbc94cee1c6e01cdda29c8c72a4ef072d0784fb46329bfc3c6ed257c2
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- waiting_placeholder = t('tramway.chat.placeholders.waiting')
|
|
14
14
|
- typing_placeholder = t('tramway.chat.placeholders.type')
|
|
15
15
|
= f.text_field :text,
|
|
16
|
-
class: 'flex-1 md:rounded-full rounded-bl-2xl md:border border-gray-300 px-4 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 disabled:cursor-not-allowed
|
|
16
|
+
class: 'flex-1 md:rounded-full rounded-bl-2xl md:border border-gray-300 px-4 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 disabled:cursor-not-allowed border-gray-600 bg-gray-800 text-white focus:border-blue-400 focus:ring-blue-500/30',
|
|
17
17
|
placeholder: send_messages_enabled ? typing_placeholder : waiting_placeholder,
|
|
18
18
|
disabled: !send_messages_enabled
|
|
19
19
|
|
|
@@ -77,7 +77,7 @@ module Tramway
|
|
|
77
77
|
component 'tramway/flash', text:, type:, options:
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
def tramway_chat(chat_id:, messages:, message_form:, send_message_path
|
|
80
|
+
def tramway_chat(chat_id:, messages:, message_form:, send_message_path:, **)
|
|
81
81
|
unless messages.all? { _1[:id].present? && _1[:type].present? }
|
|
82
82
|
raise ArgumentError, 'Each message must have :id and :type keys'
|
|
83
83
|
end
|
|
@@ -86,7 +86,7 @@ module Tramway
|
|
|
86
86
|
raise ArgumentError, 'Message :type must be either :sent or :received'
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
component 'tramway/chat', chat_id:, messages:, message_form:, send_message_path
|
|
89
|
+
component 'tramway/chat', chat_id:, messages:, message_form:, send_message_path:, **
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
private
|
data/lib/tramway/version.rb
CHANGED