@quenty/chatproviderservice 9.24.3 → 9.24.5-canary.544.d4301a8.0
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.
- package/CHANGELOG.md +16 -0
- package/package.json +28 -28
- package/src/Server/ChatProviderService.lua +26 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.24.5-canary.544.d4301a8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.24.4...@quenty/chatproviderservice@9.24.5-canary.544.d4301a8.0) (2025-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/chatproviderservice
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [9.24.4](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.24.3...@quenty/chatproviderservice@9.24.4) (2025-03-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/chatproviderservice
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [9.24.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.24.2...@quenty/chatproviderservice@9.24.3) (2025-03-20)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/chatproviderservice
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/chatproviderservice",
|
|
3
|
-
"version": "9.24.
|
|
3
|
+
"version": "9.24.5-canary.544.d4301a8.0",
|
|
4
4
|
"description": "Provide wrapper around chat system to allow tags to be set",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "
|
|
29
|
-
"@quenty/baseobject": "
|
|
30
|
-
"@quenty/binder": "
|
|
31
|
-
"@quenty/brio": "
|
|
32
|
-
"@quenty/clienttranslator": "
|
|
33
|
-
"@quenty/cmdrservice": "
|
|
34
|
-
"@quenty/color3utils": "
|
|
35
|
-
"@quenty/datastore": "
|
|
36
|
-
"@quenty/instanceutils": "
|
|
37
|
-
"@quenty/loader": "
|
|
38
|
-
"@quenty/localizedtextutils": "
|
|
39
|
-
"@quenty/maid": "
|
|
40
|
-
"@quenty/permissionprovider": "
|
|
41
|
-
"@quenty/playerbinder": "
|
|
42
|
-
"@quenty/playerutils": "
|
|
43
|
-
"@quenty/preferredparentutils": "
|
|
44
|
-
"@quenty/promise": "
|
|
45
|
-
"@quenty/remoting": "
|
|
46
|
-
"@quenty/richtext": "
|
|
47
|
-
"@quenty/rx": "
|
|
48
|
-
"@quenty/rxbinderutils": "
|
|
49
|
-
"@quenty/servicebag": "
|
|
50
|
-
"@quenty/signal": "
|
|
51
|
-
"@quenty/string": "
|
|
52
|
-
"@quenty/table": "
|
|
53
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/attributeutils": "14.16.2-canary.544.d4301a8.0",
|
|
29
|
+
"@quenty/baseobject": "10.8.0",
|
|
30
|
+
"@quenty/binder": "14.18.2-canary.544.d4301a8.0",
|
|
31
|
+
"@quenty/brio": "14.16.2-canary.544.d4301a8.0",
|
|
32
|
+
"@quenty/clienttranslator": "14.18.2-canary.544.d4301a8.0",
|
|
33
|
+
"@quenty/cmdrservice": "13.21.4-canary.544.d4301a8.0",
|
|
34
|
+
"@quenty/color3utils": "11.17.2-canary.544.d4301a8.0",
|
|
35
|
+
"@quenty/datastore": "13.19.3-canary.544.d4301a8.0",
|
|
36
|
+
"@quenty/instanceutils": "13.16.2-canary.544.d4301a8.0",
|
|
37
|
+
"@quenty/loader": "10.8.0",
|
|
38
|
+
"@quenty/localizedtextutils": "12.16.2-canary.544.d4301a8.0",
|
|
39
|
+
"@quenty/maid": "3.4.0",
|
|
40
|
+
"@quenty/permissionprovider": "14.18.2-canary.544.d4301a8.0",
|
|
41
|
+
"@quenty/playerbinder": "14.18.2-canary.544.d4301a8.0",
|
|
42
|
+
"@quenty/playerutils": "8.16.2-canary.544.d4301a8.0",
|
|
43
|
+
"@quenty/preferredparentutils": "4.3.0",
|
|
44
|
+
"@quenty/promise": "10.10.1",
|
|
45
|
+
"@quenty/remoting": "12.17.2-canary.544.d4301a8.0",
|
|
46
|
+
"@quenty/richtext": "1.3.0",
|
|
47
|
+
"@quenty/rx": "13.16.2-canary.544.d4301a8.0",
|
|
48
|
+
"@quenty/rxbinderutils": "14.18.2-canary.544.d4301a8.0",
|
|
49
|
+
"@quenty/servicebag": "11.11.1",
|
|
50
|
+
"@quenty/signal": "7.10.0",
|
|
51
|
+
"@quenty/string": "3.3.1",
|
|
52
|
+
"@quenty/table": "3.7.1",
|
|
53
|
+
"@quenty/valueobject": "13.16.2-canary.544.d4301a8.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "d4301a8c543bc4353b47b11e16841c4ade436aaa"
|
|
59
59
|
}
|
|
@@ -44,16 +44,16 @@ function ChatProviderService:Init(serviceBag)
|
|
|
44
44
|
-- note: normally we don't expose default API surfaces like this with defaults, however, because this only affects developers and this
|
|
45
45
|
-- tends to significantly improve feedback we're leaving this default configuration in place.
|
|
46
46
|
self:SetDeveloperTag(ChatTagDataUtils.createChatTagData({
|
|
47
|
-
TagText = "(dev)"
|
|
48
|
-
LocalizedText = LocalizedTextUtils.create("chatTags.dev")
|
|
49
|
-
TagPriority = 15
|
|
50
|
-
TagColor = Color3.fromRGB(245, 163, 27)
|
|
47
|
+
TagText = "(dev)",
|
|
48
|
+
LocalizedText = LocalizedTextUtils.create("chatTags.dev"),
|
|
49
|
+
TagPriority = 15,
|
|
50
|
+
TagColor = Color3.fromRGB(245, 163, 27),
|
|
51
51
|
}))
|
|
52
52
|
self:SetAdminTag(ChatTagDataUtils.createChatTagData({
|
|
53
|
-
TagText = "(mod)"
|
|
54
|
-
LocalizedText = LocalizedTextUtils.create("chatTags.mod")
|
|
55
|
-
TagPriority = 10
|
|
56
|
-
TagColor = Color3.fromRGB(78, 205, 196)
|
|
53
|
+
TagText = "(mod)",
|
|
54
|
+
LocalizedText = LocalizedTextUtils.create("chatTags.mod"),
|
|
55
|
+
TagPriority = 10,
|
|
56
|
+
TagColor = Color3.fromRGB(78, 205, 196),
|
|
57
57
|
}))
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -103,9 +103,9 @@ function ChatProviderService:SetAdminTag(chatTagData)
|
|
|
103
103
|
else
|
|
104
104
|
return Rx.EMPTY
|
|
105
105
|
end
|
|
106
|
-
end)
|
|
106
|
+
end),
|
|
107
107
|
})
|
|
108
|
-
end)
|
|
108
|
+
end),
|
|
109
109
|
})
|
|
110
110
|
|
|
111
111
|
self._maid._admin = self:_addObservablePlayerTag(observeBrio, chatTagData)
|
|
@@ -131,10 +131,9 @@ function ChatProviderService:_addObservablePlayerTag(observePlayersBrio, chatTag
|
|
|
131
131
|
local maid = brio:ToMaid()
|
|
132
132
|
local player = brio:GetValue()
|
|
133
133
|
|
|
134
|
-
maid:GivePromise(self:PromiseAddChatTag(player, chatTagData))
|
|
135
|
-
:
|
|
136
|
-
|
|
137
|
-
end)
|
|
134
|
+
maid:GivePromise(self:PromiseAddChatTag(player, chatTagData)):Then(function(chatTag)
|
|
135
|
+
maid:GiveTask(chatTag)
|
|
136
|
+
end)
|
|
138
137
|
end))
|
|
139
138
|
|
|
140
139
|
return topMaid
|
|
@@ -153,10 +152,9 @@ function ChatProviderService:PromiseAddChatTag(player, chatTagData)
|
|
|
153
152
|
|
|
154
153
|
local hasChatTagBinder = self._serviceBag:GetService(require("HasChatTags"))
|
|
155
154
|
|
|
156
|
-
return hasChatTagBinder:Promise(player)
|
|
157
|
-
:
|
|
158
|
-
|
|
159
|
-
end)
|
|
155
|
+
return hasChatTagBinder:Promise(player):Then(function(hasChatTag)
|
|
156
|
+
return hasChatTag:AddChatTag(chatTagData)
|
|
157
|
+
end)
|
|
160
158
|
end
|
|
161
159
|
|
|
162
160
|
--[=[
|
|
@@ -164,7 +162,7 @@ end
|
|
|
164
162
|
|
|
165
163
|
@param player Player
|
|
166
164
|
]=]
|
|
167
|
-
function ChatProviderService:ClearChatTags(player)
|
|
165
|
+
function ChatProviderService:ClearChatTags(player: Player)
|
|
168
166
|
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
|
|
169
167
|
|
|
170
168
|
local hasChatTagBinder = self._serviceBag:GetService(require("HasChatTags"))
|
|
@@ -185,16 +183,15 @@ function ChatProviderService:PromiseSetSpeakerTags(speakerName, chatTagDataList)
|
|
|
185
183
|
assert(type(speakerName) == "string", "Bad speakerName")
|
|
186
184
|
assert(ChatTagDataUtils.isChatTagDataList(chatTagDataList))
|
|
187
185
|
|
|
188
|
-
return self:_promiseSpeaker(speakerName)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
end
|
|
186
|
+
return self:_promiseSpeaker(speakerName):Then(function(speaker)
|
|
187
|
+
if not speaker then
|
|
188
|
+
return nil
|
|
189
|
+
end
|
|
193
190
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
speaker:SetExtraData("Tags", chatTagDataList)
|
|
192
|
+
end, function(err)
|
|
193
|
+
warn("[ChatProviderService.PromiseSetTags] - No speaker found", err)
|
|
194
|
+
end)
|
|
198
195
|
end
|
|
199
196
|
|
|
200
197
|
function ChatProviderService:_getChatServiceAsync()
|
|
@@ -230,7 +227,6 @@ function ChatProviderService:_promiseChatService()
|
|
|
230
227
|
return Promise.resolved(self._chatServicePromise)
|
|
231
228
|
end
|
|
232
229
|
|
|
233
|
-
|
|
234
230
|
function ChatProviderService:_promiseSpeaker(speakerName)
|
|
235
231
|
assert(type(speakerName) == "string", "Bad speakerName")
|
|
236
232
|
|
|
@@ -273,4 +269,4 @@ function ChatProviderService:_promiseSpeaker(speakerName)
|
|
|
273
269
|
end)
|
|
274
270
|
end
|
|
275
271
|
|
|
276
|
-
return ChatProviderService
|
|
272
|
+
return ChatProviderService
|