@budibase/frontend-core 3.44.1 → 3.45.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "v3.
|
|
3
|
+
"version": "v3.45.0",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"vitest": "^4.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "39146fbea58fca5022556582a42e57a794fdf8ad"
|
|
27
27
|
}
|
package/src/api/chatLinks.ts
CHANGED
|
@@ -26,8 +26,8 @@ export interface PagedChannels<T> {
|
|
|
26
26
|
|
|
27
27
|
export interface ChatLinksEndpoints {
|
|
28
28
|
fetchChatIdentityLinks: (
|
|
29
|
-
provider
|
|
30
|
-
agentId
|
|
29
|
+
provider: ChatIdentityLinkProvider,
|
|
30
|
+
agentId: string
|
|
31
31
|
) => Promise<ChatIdentityLink[]>
|
|
32
32
|
fetchSlackChannels: (
|
|
33
33
|
agentId: string,
|
|
@@ -43,12 +43,8 @@ export const buildChatLinksEndpoints = (
|
|
|
43
43
|
API: BaseAPIClient
|
|
44
44
|
): ChatLinksEndpoints => ({
|
|
45
45
|
fetchChatIdentityLinks: async (provider, agentId) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
...(agentId ? { agentId } : {}),
|
|
49
|
-
}).toString()
|
|
50
|
-
const query = params ? `?${params}` : ""
|
|
51
|
-
return await API.get({ url: `/api/chat-links${query}` })
|
|
46
|
+
const query = new URLSearchParams({ provider, agentId }).toString()
|
|
47
|
+
return await API.get({ url: `/api/chat-links?${query}` })
|
|
52
48
|
},
|
|
53
49
|
fetchSlackChannels: async (agentId, cursor) => {
|
|
54
50
|
const query = new URLSearchParams({
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Avatar, AbsTooltip, TooltipPosition } from "@budibase/bbui"
|
|
3
3
|
import { helpers } from "@budibase/shared-core"
|
|
4
|
-
import type { User } from "@budibase/types"
|
|
5
4
|
|
|
6
|
-
export let user:
|
|
5
|
+
export let user: helpers.UserDisplayInfo | undefined
|
|
7
6
|
export let size: "XS" | "S" | "M" = "S"
|
|
8
7
|
export let tooltipPosition: TooltipPosition = TooltipPosition.Top
|
|
9
8
|
export let showTooltip: boolean = true
|