From de6e0739c20d02ca36aef08c1bfbf30f5bee0418 Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 16 Apr 2024 18:13:18 +0400 Subject: [PATCH] UBERF-6464: update activity mentions display (#5339) --- models/activity/src/index.ts | 4 - models/activity/src/plugin.ts | 4 - models/chunter/src/index.ts | 4 + models/chunter/src/plugin.ts | 1 + models/document/src/index.ts | 4 + models/document/src/plugin.ts | 3 +- packages/theme/styles/components.scss | 10 -- plugins/activity-assets/assets/icons.svg | 19 ++- .../src/activityMessagesUtils.ts | 21 ++-- .../ActivityReferencePresenter.svelte | 14 +-- .../ReferenceSrcPresenter.svelte | 45 +++---- plugins/activity-resources/src/index.ts | 11 +- .../src/components/ChannelPresenter.svelte | 11 +- plugins/chunter-resources/src/index.ts | 9 +- plugins/chunter-resources/src/navigation.ts | 6 + .../components/OrganizationPresenter.svelte | 6 +- .../src/components/PersonContent.svelte | 4 + .../src/components/PersonElement.svelte | 8 +- .../src/components/PersonPresenter.svelte | 3 + .../src/components/DocumentPresenter.svelte | 8 +- plugins/document-resources/src/index.ts | 4 +- .../src/components/LeadPresenter.svelte | 9 +- .../components/ApplicationPresenter.svelte | 16 ++- .../src/components/VacancyPresenter.svelte | 8 +- .../src/components/ToDoReference.svelte | 37 ------ .../presenters/DocumentPresenter.svelte | 23 +--- .../presenters/IssuePresenter.svelte | 16 +-- .../components/issues/IssuePresenter.svelte | 64 +++++----- plugins/view-assets/assets/icons.svg | 3 + plugins/view-assets/src/index.ts | 1 + .../components/DocReferencePresenter.svelte | 111 ++++++++++++++++++ plugins/view-resources/src/index.ts | 4 +- plugins/view/src/index.ts | 1 + plugins/view/src/types.ts | 2 + 34 files changed, 300 insertions(+), 194 deletions(-) delete mode 100644 plugins/time-resources/src/components/ToDoReference.svelte create mode 100644 plugins/view-resources/src/components/DocReferencePresenter.svelte diff --git a/models/activity/src/index.ts b/models/activity/src/index.ts index 8b7c096295..b1c1be217a 100644 --- a/models/activity/src/index.ts +++ b/models/activity/src/index.ts @@ -315,10 +315,6 @@ export function createModel (builder: Builder): void { presenter: activity.component.ActivityReferencePreview }) - builder.mixin(activity.class.DocUpdateMessage, core.class.Class, view.mixin.LinkProvider, { - encode: activity.function.GetFragment - }) - builder.createDoc( activity.class.ActivityMessagesFilter, core.space.Model, diff --git a/models/activity/src/plugin.ts b/models/activity/src/plugin.ts index ee62147376..d61dc2b8f4 100644 --- a/models/activity/src/plugin.ts +++ b/models/activity/src/plugin.ts @@ -16,7 +16,6 @@ import { activityId, type ActivityMessage, type DocUpdateMessageViewlet } from ' import activity from '@hcengineering/activity-resources/src/plugin' import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform' import { type Doc, type Ref } from '@hcengineering/core' -import type { Location } from '@hcengineering/ui' import { type ActionCategory } from '@hcengineering/view' import { type NotificationGroup, type NotificationType } from '@hcengineering/notification' @@ -38,9 +37,6 @@ export default mergeIds(activityId, activity, { ActivityNotificationGroup: '' as Ref, AddReactionNotification: '' as Ref }, - function: { - GetFragment: '' as Resource<(doc: Doc, props: Record) => Promise> - }, category: { Activity: '' as Ref } diff --git a/models/chunter/src/index.ts b/models/chunter/src/index.ts index d61aaf1032..05088a648e 100644 --- a/models/chunter/src/index.ts +++ b/models/chunter/src/index.ts @@ -398,6 +398,10 @@ export function createModel (builder: Builder, options = { addApplication: true ) } + builder.mixin(activity.class.ActivityMessage, core.class.Class, view.mixin.LinkProvider, { + encode: chunter.function.GetMessageLink + }) + builder.mixin(chunter.class.ThreadMessage, core.class.Class, view.mixin.LinkProvider, { encode: chunter.function.GetThreadLink }) diff --git a/models/chunter/src/plugin.ts b/models/chunter/src/plugin.ts index 0b5550b1d2..f5dd431945 100644 --- a/models/chunter/src/plugin.ts +++ b/models/chunter/src/plugin.ts @@ -100,6 +100,7 @@ export default mergeIds(chunterId, chunter, { CanCopyMessageLink: '' as Resource<(doc?: Doc | Doc[]) => Promise>, GetChunterSpaceLinkFragment: '' as Resource<(doc: Doc, props: Record) => Promise>, GetThreadLink: '' as Resource<(doc: Doc, props: Record) => Promise>, + GetMessageLink: '' as Resource<(doc: Doc, props: Record) => Promise>, ReplyToThread: '' as Resource<(doc: ActivityMessage) => Promise> }, filter: { diff --git a/models/document/src/index.ts b/models/document/src/index.ts index 6315d8c89a..9b28d92f2d 100644 --- a/models/document/src/index.ts +++ b/models/document/src/index.ts @@ -257,6 +257,10 @@ function defineDocument (builder: Builder): void { encode: document.function.GetObjectLinkFragment }) + builder.mixin(document.class.Document, core.class.Class, view.mixin.ObjectIcon, { + component: document.component.DocumentIcon + }) + // Actions createAction(builder, { diff --git a/models/document/src/plugin.ts b/models/document/src/plugin.ts index bfc75bf9e6..deae168b01 100644 --- a/models/document/src/plugin.ts +++ b/models/document/src/plugin.ts @@ -30,7 +30,8 @@ export default mergeIds(documentId, document, { NotificationDocumentPresenter: '' as AnyComponent, TeamspaceSpacePresenter: '' as AnyComponent, Move: '' as AnyComponent, - DocumentToDoPresenter: '' as AnyComponent + DocumentToDoPresenter: '' as AnyComponent, + DocumentIcon: '' as AnyComponent }, completion: { DocumentQuery: '' as Resource, diff --git a/packages/theme/styles/components.scss b/packages/theme/styles/components.scss index 639b6264ca..77a6e98baa 100644 --- a/packages/theme/styles/components.scss +++ b/packages/theme/styles/components.scss @@ -658,16 +658,6 @@ height: var(--global-extra-small-Size); } } - .hulyToDoLine-reference { - padding: 0 var(--spacing-1) 0 var(--spacing-0_75); - box-shadow: inset 0 0 0 1px var(--global-subtle-ui-BorderColor); - border-radius: var(--extra-small-BorderRadius); - background-color: var(--tag-nuance-SkyBackground); - - &:hover { - box-shadow: inset 0 0 0 1px var(--global-ui-BorderColor); - } - } &.hovered, &:hover { diff --git a/plugins/activity-assets/assets/icons.svg b/plugins/activity-assets/assets/icons.svg index 2603e3b981..a4415d8f79 100644 --- a/plugins/activity-assets/assets/icons.svg +++ b/plugins/activity-assets/assets/icons.svg @@ -2,14 +2,13 @@ - - - - - - - - - - + + + + + + + + + diff --git a/plugins/activity-resources/src/activityMessagesUtils.ts b/plugins/activity-resources/src/activityMessagesUtils.ts index 4da35164e3..2c5d7127ea 100644 --- a/plugins/activity-resources/src/activityMessagesUtils.ts +++ b/plugins/activity-resources/src/activityMessagesUtils.ts @@ -562,19 +562,6 @@ export async function getLinkData ( } } -export async function getMessageFragment (doc: Doc): Promise { - const client = getClient() - const hierarchy = client.getHierarchy() - let clazz = hierarchy.getClass(doc._class) - let label = clazz.shortLabel - while (label === undefined && clazz.extends !== undefined) { - clazz = hierarchy.getClass(clazz.extends) - label = clazz.shortLabel - } - label = label ?? doc._class - return `${label}-${doc._id}` -} - function isDocUpdateMessage (message?: ActivityMessage): message is DocUpdateMessage { if (message === undefined) { return false @@ -583,6 +570,14 @@ function isDocUpdateMessage (message?: ActivityMessage): message is DocUpdateMes return message._class === activity.class.DocUpdateMessage } +export function isActivityMessage (message?: Doc): message is ActivityMessage { + if (message === undefined) { + return false + } + + return getClient().getHierarchy().isDerived(message._class, activity.class.ActivityMessage) +} + export function isReactionMessage (message?: ActivityMessage): boolean { if (message === undefined) { return false diff --git a/plugins/activity-resources/src/components/activity-reference/ActivityReferencePresenter.svelte b/plugins/activity-resources/src/components/activity-reference/ActivityReferencePresenter.svelte index 6bf2ad9f6f..9a30b4a27c 100644 --- a/plugins/activity-resources/src/components/activity-reference/ActivityReferencePresenter.svelte +++ b/plugins/activity-resources/src/components/activity-reference/ActivityReferencePresenter.svelte @@ -110,6 +110,7 @@ {skipLabel} {hoverable} {hoverStyles} + showDatePreposition {onClick} {onReply} > @@ -131,13 +132,8 @@ {/if} {#if srcDoc} - - - - + + {/if} @@ -151,6 +147,8 @@ diff --git a/plugins/activity-resources/src/components/activity-reference/ReferenceSrcPresenter.svelte b/plugins/activity-resources/src/components/activity-reference/ReferenceSrcPresenter.svelte index 1f99b0a4e1..cef2abef7e 100644 --- a/plugins/activity-resources/src/components/activity-reference/ReferenceSrcPresenter.svelte +++ b/plugins/activity-resources/src/components/activity-reference/ReferenceSrcPresenter.svelte @@ -14,33 +14,36 @@ --> -{#if presenter} - - - -{/if} + + + {#if showParent} + + + + {/if} + + diff --git a/plugins/activity-resources/src/index.ts b/plugins/activity-resources/src/index.ts index c4f6cd47f7..1bb5fa582c 100644 --- a/plugins/activity-resources/src/index.ts +++ b/plugins/activity-resources/src/index.ts @@ -26,13 +26,7 @@ import DocUpdateMessagePreview from './components/doc-update-message/DocUpdateMe import ActivityReferencePreview from './components/activity-reference/ActivityReferencePreview.svelte' import ActivityInfoMessagePreview from './components/activity-info-message/ActivityInfoMessagePreview.svelte' -import { - getMessageFragment, - attributesFilter, - pinnedFilter, - allFilter, - referencesFilter -} from './activityMessagesUtils' +import { attributesFilter, pinnedFilter, allFilter, referencesFilter } from './activityMessagesUtils' import { updateReferences } from './references' export * from './activity' @@ -76,9 +70,6 @@ export default async (): Promise => ({ AllFilter: allFilter, ReferencesFilter: referencesFilter }, - function: { - GetFragment: getMessageFragment - }, backreference: { Update: updateReferences } diff --git a/plugins/chunter-resources/src/components/ChannelPresenter.svelte b/plugins/chunter-resources/src/components/ChannelPresenter.svelte index ed4466b2ff..6d17964162 100644 --- a/plugins/chunter-resources/src/components/ChannelPresenter.svelte +++ b/plugins/chunter-resources/src/components/ChannelPresenter.svelte @@ -15,19 +15,22 @@ -{#if value} +{#if value && type === 'link'}
{#if !inline && shouldShowAvatar} @@ -41,3 +44,7 @@
{/if} + +{#if value && type === 'text'} + {value.name} +{/if} diff --git a/plugins/chunter-resources/src/index.ts b/plugins/chunter-resources/src/index.ts index 4d8236ddf2..f3410ad898 100644 --- a/plugins/chunter-resources/src/index.ts +++ b/plugins/chunter-resources/src/index.ts @@ -64,7 +64,13 @@ import { leaveChannelAction, removeChannelAction } from './utils' -import { chunterSpaceLinkFragmentProvider, getThreadLink, getMessageLink, replyToThread } from './navigation' +import { + chunterSpaceLinkFragmentProvider, + getThreadLink, + getMessageLink, + replyToThread, + getMessageLocation +} from './navigation' export { default as ChatMessagesPresenter } from './components/chat-message/ChatMessagesPresenter.svelte' export { default as ChatMessagePopup } from './components/chat-message/ChatMessagePopup.svelte' @@ -191,6 +197,7 @@ export default async (): Promise => ({ GetChunterSpaceLinkFragment: chunterSpaceLinkFragmentProvider, GetUnreadThreadsCount: getUnreadThreadsCount, GetThreadLink: getThreadLink, + GetMessageLink: getMessageLocation, ReplyToThread: replyToThread }, actionImpl: { diff --git a/plugins/chunter-resources/src/navigation.ts b/plugins/chunter-resources/src/navigation.ts index 2464ca26f5..c090a0bb85 100644 --- a/plugins/chunter-resources/src/navigation.ts +++ b/plugins/chunter-resources/src/navigation.ts @@ -137,3 +137,9 @@ export async function replyToThread (message: ActivityMessage): Promise { navigate(buildThreadLink(loc, message.attachedTo, message.attachedToClass, message._id)) } + +export async function getMessageLocation (doc: ActivityMessage): Promise { + const loc = getCurrentResolvedLocation() + + return buildThreadLink(loc, doc.attachedTo, doc.attachedToClass, doc._id) +} diff --git a/plugins/contact-resources/src/components/OrganizationPresenter.svelte b/plugins/contact-resources/src/components/OrganizationPresenter.svelte index 4f73d37057..83450c561f 100644 --- a/plugins/contact-resources/src/components/OrganizationPresenter.svelte +++ b/plugins/contact-resources/src/components/OrganizationPresenter.svelte @@ -18,6 +18,7 @@ import { getEmbeddedLabel } from '@hcengineering/platform' import { tooltip } from '@hcengineering/ui' import { DocNavLink, ObjectMention } from '@hcengineering/view-resources' + import { ObjectPresenterType } from '@hcengineering/view' import contact from '../plugin' import Company from './icons/Company.svelte' @@ -28,6 +29,7 @@ export let accent: boolean = false export let noUnderline: boolean = false export let maxWidth = '' + export let type: ObjectPresenterType = 'link' {#if value} @@ -39,7 +41,7 @@ {noUnderline} component={contact.component.EditOrganizationPanel} /> - {:else} + {:else if type === 'link'}
@@ -50,5 +52,7 @@ >
+ {:else if type === 'text'} + {value.name} {/if} {/if} diff --git a/plugins/contact-resources/src/components/PersonContent.svelte b/plugins/contact-resources/src/components/PersonContent.svelte index fa03abcbea..05e1e9694b 100644 --- a/plugins/contact-resources/src/components/PersonContent.svelte +++ b/plugins/contact-resources/src/components/PersonContent.svelte @@ -26,6 +26,7 @@ tooltip } from '@hcengineering/ui' import { createEventDispatcher, onMount } from 'svelte' + import { ObjectPresenterType } from '@hcengineering/view' import Avatar from './Avatar.svelte' import PersonElement from './PersonElement.svelte' @@ -47,6 +48,7 @@ export let accent: boolean = false export let maxWidth = '' export let compact = false + export let type: ObjectPresenterType = 'link' const client = getClient() @@ -87,6 +89,7 @@ {enlargedText} {colorInherit} {accent} + {type} {maxWidth} /> @@ -108,6 +111,7 @@ {enlargedText} {colorInherit} {accent} + {type} {maxWidth} /> {/if} diff --git a/plugins/contact-resources/src/components/PersonElement.svelte b/plugins/contact-resources/src/components/PersonElement.svelte index 7523da2012..1f8b7c6a32 100644 --- a/plugins/contact-resources/src/components/PersonElement.svelte +++ b/plugins/contact-resources/src/components/PersonElement.svelte @@ -16,6 +16,7 @@ import { Employee, Person } from '@hcengineering/contact' import { IconSize, LabelAndProps, tooltip } from '@hcengineering/ui' import { DocNavLink, ObjectMention } from '@hcengineering/view-resources' + import { ObjectPresenterType } from '@hcengineering/view' import Avatar from './Avatar.svelte' export let value: Person | Employee | undefined | null @@ -32,12 +33,13 @@ export let colorInherit: boolean = false export let accent: boolean = false export let maxWidth: string = '' + export let type: ObjectPresenterType = 'link' {#if value} {#if inline} - {:else} + {:else if type === 'link'} + {:else if type === 'text'} + + {name} + {/if} {/if} diff --git a/plugins/contact-resources/src/components/PersonPresenter.svelte b/plugins/contact-resources/src/components/PersonPresenter.svelte index c9249a13d7..7fe56f859b 100644 --- a/plugins/contact-resources/src/components/PersonPresenter.svelte +++ b/plugins/contact-resources/src/components/PersonPresenter.svelte @@ -21,6 +21,7 @@ import { getClient } from '@hcengineering/presentation' import { Ref } from '@hcengineering/core' import ui from '@hcengineering/ui' + import { ObjectPresenterType } from '@hcengineering/view' export let value: Ref | Person | null | undefined export let inline = false @@ -40,6 +41,7 @@ export let accent: boolean = false export let maxWidth = '' export let compact = false + export let type: ObjectPresenterType = 'link' const client = getClient() $: personValue = typeof value === 'string' ? $personByIdStore.get(value) : value @@ -94,6 +96,7 @@ {accent} {maxWidth} {compact} + {type} on:accent-color /> {/if} diff --git a/plugins/document-resources/src/components/DocumentPresenter.svelte b/plugins/document-resources/src/components/DocumentPresenter.svelte index 39d0e62212..ed246977fa 100644 --- a/plugins/document-resources/src/components/DocumentPresenter.svelte +++ b/plugins/document-resources/src/components/DocumentPresenter.svelte @@ -19,6 +19,7 @@ import { Document } from '@hcengineering/document' import { tooltip } from '@hcengineering/ui' import { DocNavLink, ObjectMention } from '@hcengineering/view-resources' + import { ObjectPresenterType } from '@hcengineering/view' import document from '../plugin' import DocumentIcon from './DocumentIcon.svelte' @@ -31,12 +32,13 @@ export let breadcrumb: boolean = false export let maxWidth = '' export let shouldShowAvatar = true + export let type: ObjectPresenterType = 'link' {#if value} {#if inline} - {:else} + {:else if type === 'link'}
+ {:else if type === 'text'} + + {value.name} + {/if} {/if} diff --git a/plugins/document-resources/src/index.ts b/plugins/document-resources/src/index.ts index 26bebb7525..d7aa7d5941 100644 --- a/plugins/document-resources/src/index.ts +++ b/plugins/document-resources/src/index.ts @@ -43,6 +43,7 @@ import DocumentSearchIcon from './components/DocumentSearchIcon.svelte' import NotificationDocumentPresenter from './components/NotificationDocumentPresenter.svelte' import Move from './components/Move.svelte' import DocumentToDoPresenter from './components/DocumentToDoPresenter.svelte' +import DocumentIcon from './components/DocumentIcon.svelte' import document from './plugin' import { createEmptyDocument, documentTitleProvider, getDocumentLink, getDocumentUrl, resolveLocation } from './utils' @@ -135,7 +136,8 @@ export default async (): Promise => ({ DocumentSearchIcon, NotificationDocumentPresenter, Move, - DocumentToDoPresenter + DocumentToDoPresenter, + DocumentIcon }, completion: { DocumentQuery: async ( diff --git a/plugins/lead-resources/src/components/LeadPresenter.svelte b/plugins/lead-resources/src/components/LeadPresenter.svelte index e8b2f0ee07..927f8f2c53 100644 --- a/plugins/lead-resources/src/components/LeadPresenter.svelte +++ b/plugins/lead-resources/src/components/LeadPresenter.svelte @@ -15,9 +15,11 @@ --> {#if value} {#if inline} - {:else} + {:else if type === 'link'}
{#if shouldShowAvatar} @@ -41,5 +44,7 @@ >
+ {:else if type === 'text'} + {value.identifier} {/if} {/if} diff --git a/plugins/recruit-resources/src/components/ApplicationPresenter.svelte b/plugins/recruit-resources/src/components/ApplicationPresenter.svelte index eefc14ff4b..67d81ca1da 100644 --- a/plugins/recruit-resources/src/components/ApplicationPresenter.svelte +++ b/plugins/recruit-resources/src/components/ApplicationPresenter.svelte @@ -15,9 +15,9 @@ --> {#if value && shortLabel} {#if inline} - {:else} + {:else if type === 'link'}
{#if shouldShowAvatar} @@ -47,5 +49,9 @@
+ {:else if type === 'text'} + + {#if shortLabel}{shortLabel}-{/if}{value.number} + {/if} {/if} diff --git a/plugins/recruit-resources/src/components/VacancyPresenter.svelte b/plugins/recruit-resources/src/components/VacancyPresenter.svelte index 1f734942ac..59a011e098 100644 --- a/plugins/recruit-resources/src/components/VacancyPresenter.svelte +++ b/plugins/recruit-resources/src/components/VacancyPresenter.svelte @@ -19,6 +19,7 @@ import { Icon, getPlatformAvatarColorForTextDef, themeStore, tooltip } from '@hcengineering/ui' import { DocNavLink, ObjectMention } from '@hcengineering/view-resources' import { createEventDispatcher, onMount } from 'svelte' + import { ObjectPresenterType } from '@hcengineering/view' import recruit from '../plugin' @@ -27,6 +28,7 @@ export let disabled: boolean = false export let accent: boolean = false export let noUnderline: boolean = false + export let type: ObjectPresenterType = 'link' const dispatch = createEventDispatcher() $: accentColor = getPlatformAvatarColorForTextDef(value.name, $themeStore.dark) @@ -40,7 +42,7 @@ {#if value} {#if inline} - {:else} + {:else if type === 'link'}
@@ -49,5 +51,9 @@
+ {:else if type === 'text'} + + {value.name} + {/if} {/if} diff --git a/plugins/time-resources/src/components/ToDoReference.svelte b/plugins/time-resources/src/components/ToDoReference.svelte deleted file mode 100644 index 2e9883c0db..0000000000 --- a/plugins/time-resources/src/components/ToDoReference.svelte +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - diff --git a/plugins/time-resources/src/components/presenters/DocumentPresenter.svelte b/plugins/time-resources/src/components/presenters/DocumentPresenter.svelte index 2f3ee86a28..781dbd595c 100644 --- a/plugins/time-resources/src/components/presenters/DocumentPresenter.svelte +++ b/plugins/time-resources/src/components/presenters/DocumentPresenter.svelte @@ -14,28 +14,11 @@ --> - - - - + - + diff --git a/plugins/time-resources/src/components/presenters/IssuePresenter.svelte b/plugins/time-resources/src/components/presenters/IssuePresenter.svelte index 4076505a64..312f65055a 100644 --- a/plugins/time-resources/src/components/presenters/IssuePresenter.svelte +++ b/plugins/time-resources/src/components/presenters/IssuePresenter.svelte @@ -1,20 +1,10 @@ - - - - + - + diff --git a/plugins/tracker-resources/src/components/issues/IssuePresenter.svelte b/plugins/tracker-resources/src/components/issues/IssuePresenter.svelte index f6103d66be..538b88c4fc 100644 --- a/plugins/tracker-resources/src/components/issues/IssuePresenter.svelte +++ b/plugins/tracker-resources/src/components/issues/IssuePresenter.svelte @@ -14,12 +14,13 @@ --> + + + + diff --git a/plugins/view-resources/src/index.ts b/plugins/view-resources/src/index.ts index 41f8b81c46..d561d5d3f3 100644 --- a/plugins/view-resources/src/index.ts +++ b/plugins/view-resources/src/index.ts @@ -91,6 +91,7 @@ import UpDownNavigator from './components/UpDownNavigator.svelte' import ValueSelector from './components/ValueSelector.svelte' import ViewletContentView from './components/ViewletContentView.svelte' import ViewletSettingButton from './components/ViewletSettingButton.svelte' +import DocReferencePresenter from './components/DocReferencePresenter.svelte' import { afterResult, @@ -201,7 +202,8 @@ export { TreeNode, UpDownNavigator, ViewletContentView, - ViewletSettingButton + ViewletSettingButton, + DocReferencePresenter } function PositionElementAlignment (e?: Event): PopupAlignment | undefined { diff --git a/plugins/view/src/index.ts b/plugins/view/src/index.ts index 773fda7e7b..f00dfa51e8 100644 --- a/plugins/view/src/index.ts +++ b/plugins/view/src/index.ts @@ -223,6 +223,7 @@ const view = plugin(viewId, { Star: '' as Asset, Eye: '' as Asset, EyeCrossed: '' as Asset, + Bubble: '' as Asset, CheckCircle: '' as Asset, Add: '' as Asset, Image: '' as Asset, diff --git a/plugins/view/src/types.ts b/plugins/view/src/types.ts index 64f26a2231..dd05d95dfe 100644 --- a/plugins/view/src/types.ts +++ b/plugins/view/src/types.ts @@ -778,3 +778,5 @@ export interface IconProps { icon?: Asset color?: number } + +export type ObjectPresenterType = 'link' | 'text'