UBERF-7239: Support short/custom links in inbox/chat/planner (#5815)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-06-18 19:21:51 +07:00
committed by GitHub
parent 61a0833ec4
commit 1e9fea356e
55 changed files with 630 additions and 244 deletions
+4 -2
View File
@@ -14,7 +14,7 @@
//
import { type Client, type Doc, type Ref } from '@hcengineering/core'
import document, { documentId } from '@hcengineering/document'
import document, { type Document, documentId } from '@hcengineering/document'
import { mergeIds, type IntlString, type Resource } from '@hcengineering/platform'
import { type AnyComponent, type Location } from '@hcengineering/ui'
@@ -29,7 +29,9 @@ export default mergeIds(documentId, document, {
function: {
DocumentTitleProvider: '' as Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<string>>,
GetDocumentLink: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>,
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
GetDocumentLinkId: '' as Resource<(doc: Doc) => Promise<string>>,
ParseDocumentId: '' as Resource<(id: string) => Promise<Ref<Document> | undefined>>
},
string: {
DocumentNamePlaceholder: '' as IntlString,